summaryrefslogtreecommitdiff
path: root/src/conf_mode/host_name.py
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-02-16 15:36:34 +0100
committerChristian Poessinger <christian@poessinger.com>2019-02-16 15:36:34 +0100
commitfbb394ec243baba2cb94470d271bd3460ed9b7ae (patch)
tree7ac807bffd6da707851bbadef9d66004610bc8ec /src/conf_mode/host_name.py
parent8343d6ee7a38e23829b2f68a69b616c8bc087739 (diff)
downloadvyos-1x-fbb394ec243baba2cb94470d271bd3460ed9b7ae.tar.gz
vyos-1x-fbb394ec243baba2cb94470d271bd3460ed9b7ae.zip
Add header to resolver configuration file
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-xsrc/conf_mode/host_name.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py
index 0f8d3b719..8ad6000be 100755
--- a/src/conf_mode/host_name.py
+++ b/src/conf_mode/host_name.py
@@ -35,6 +35,7 @@ config_file_hosts = '/etc/hosts'
config_file_resolv = '/etc/resolv.conf'
config_tmpl_hosts = """
+### Autogenerated by host_name.py ###
127.0.0.1 localhost {{ hostname }}{% if domain_name %}.{{ domain_name }}{% endif %}
# The following lines are desirable for IPv6 capable hosts