Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add date/time to hosts + ethers and add domain to hosts entries #37

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions templates/etc/dnsmasq.conf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Automatically generated by DJEEP.
# Please be wary of manually editing!
# Last written {% now "jS F Y H:i" %}

dhcp-ignore=tag:!known
dhcp-ignore-names
Expand Down
1 change: 1 addition & 0 deletions templates/etc/ethers
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Automatically generated by DJEEP.
# Please be wary of manually editing!
# Last written {% now "jS F Y H:i" %}
{% for h in hosts %}{{h.mac_address}} {{h.hostname}}
{% endfor %}
4 changes: 3 additions & 1 deletion templates/etc/hosts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Automatically generated by DJEEP.
# Please be wary of manually editing!
# Last written {% now "jS F Y H:i" %}

127.0.0.1 localhost

# The following lines are desirable for IPv6 capable hosts
Expand All @@ -9,5 +11,5 @@ ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

{% for h in hosts %}{{h.ip_address}} {{h.hostname}}
{% for h in hosts %}{{h.ip_address}} {{h.hostname}} {{h.hostname}}.{{site.domainname}}
{% endfor %}