Browse Source

External hosts should use IPv6 NS adresses.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 4 years ago
parent
commit
9f37621be8
3 changed files with 14 additions and 1 deletions
  1. 3 1
      network/init.sls
  2. 6 0
      network/resolv.conf.H_dns01.ffho.net
  3. 5 0
      network/resolv.conf.H_mail.in.ffho.net

+ 3 - 1
network/init.sls

@@ -37,5 +37,7 @@ vnstat:
 # /etc/resolv.conf
 /etc/resolv.conf:
   file.managed:
-    - source: salt://network/resolv.conf
+    - source:
+      - salt://network/resolv.conf.H_{{ grains.id }}
+      - salt://network/resolv.conf
     - template: jinja

+ 6 - 0
network/resolv.conf.H_dns01.ffho.net

@@ -0,0 +1,6 @@
+#
+# /etc/resolv.conf (Salt managed)
+#
+search in.ffho.net
+nameserver 127.0.0.1
+nameserver 2a03:2260:2342:f251::53

+ 5 - 0
network/resolv.conf.H_mail.in.ffho.net

@@ -0,0 +1,5 @@
+#
+# /etc/resolv.conf (Salt managed)
+#
+search in.ffho.net
+nameserver 2a03:2260:2342:f251::53