diff options
author | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-16 21:34:57 +0000 |
---|---|---|
committer | Jakob Schlyter <jakob@cvs.openbsd.org> | 2007-12-16 21:34:57 +0000 |
commit | e3decd7d9fd3045a82bf2b50e1c532e53e343e91 (patch) | |
tree | 20225a553fdac9296b114e541cbe669e69dca2e2 /etc/bind | |
parent | f1f1110d953f09c74f1fb075a2148face21acec4 (diff) |
remove localhost. zone (localhost. queries are handled by /etc/hosts)
replace IPv4 and IPv6 loopback zones with BIND's autogenerated empty zones.
move root.hint to /var/named/etc
remove empty directory /var/named/standard
Diffstat (limited to 'etc/bind')
-rw-r--r-- | etc/bind/db.localhost | 15 | ||||
-rw-r--r-- | etc/bind/db.loopback | 14 | ||||
-rw-r--r-- | etc/bind/db.loopback6.arpa | 14 | ||||
-rw-r--r-- | etc/bind/named-dual.conf | 26 | ||||
-rw-r--r-- | etc/bind/named-simple.conf | 24 |
5 files changed, 8 insertions, 85 deletions
diff --git a/etc/bind/db.localhost b/etc/bind/db.localhost deleted file mode 100644 index 340e9895904..00000000000 --- a/etc/bind/db.localhost +++ /dev/null @@ -1,15 +0,0 @@ -; $OpenBSD: db.localhost,v 1.2 2005/02/07 06:08:10 david Exp $ - -$ORIGIN localhost. -$TTL 6h - -@ IN SOA localhost. root.localhost. ( - 1 ; serial - 1h ; refresh - 30m ; retry - 7d ; expiration - 1h ) ; minimum - - NS localhost. - A 127.0.0.1 - AAAA ::1 diff --git a/etc/bind/db.loopback b/etc/bind/db.loopback deleted file mode 100644 index 9badc8bae0c..00000000000 --- a/etc/bind/db.loopback +++ /dev/null @@ -1,14 +0,0 @@ -; $OpenBSD: db.loopback,v 1.2 2005/02/07 06:08:10 david Exp $ - -$ORIGIN 127.in-addr.arpa. -$TTL 6h - -@ IN SOA localhost. root.localhost. ( - 1 ; serial - 1h ; refresh - 30m ; retry - 7d ; expiration - 1h ) ; minimum - - NS localhost. -1.0.0 PTR localhost. diff --git a/etc/bind/db.loopback6.arpa b/etc/bind/db.loopback6.arpa deleted file mode 100644 index 558fa2369c8..00000000000 --- a/etc/bind/db.loopback6.arpa +++ /dev/null @@ -1,14 +0,0 @@ -; $OpenBSD: db.loopback6.arpa,v 1.2 2005/02/07 06:08:10 david Exp $ - -$ORIGIN 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa. -$TTL 6h - -@ IN SOA localhost. root.localhost. ( - 1 ; serial - 1h ; refresh - 30m ; retry - 7d ; expiration - 1h ) ; minimum - - NS localhost. -1 PTR localhost. diff --git a/etc/bind/named-dual.conf b/etc/bind/named-dual.conf index 878c56804a2..4ce155d3b1b 100644 --- a/etc/bind/named-dual.conf +++ b/etc/bind/named-dual.conf @@ -1,4 +1,4 @@ -// $OpenBSD: named-dual.conf,v 1.7 2007/12/13 07:45:03 jakob Exp $ +// $OpenBSD: named-dual.conf,v 1.8 2007/12/16 21:34:56 jakob Exp $ // // Example file for a named configuration with dual views, // one processing recursive queries only and one processing @@ -20,6 +20,8 @@ options { listen-on { any; }; listen-on-v6 { any; }; + + empty-zones-enable yes; }; logging { @@ -31,29 +33,9 @@ view "recursive" { match-recursive-only yes; allow-recursion { clients; }; - // Standard zones - // zone "." { type hint; - file "standard/root.hint"; - }; - - zone "localhost" { - type master; - file "standard/localhost"; - allow-transfer { localhost; }; - }; - - zone "127.in-addr.arpa" { - type master; - file "standard/loopback"; - allow-transfer { localhost; }; - }; - - zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" { - type master; - file "standard/loopback6.arpa"; - allow-transfer { localhost; }; + file "etc/root.hint"; }; zone "com" { diff --git a/etc/bind/named-simple.conf b/etc/bind/named-simple.conf index 088a103a961..b50219566a4 100644 --- a/etc/bind/named-simple.conf +++ b/etc/bind/named-simple.conf @@ -1,4 +1,4 @@ -// $OpenBSD: named-simple.conf,v 1.6 2004/08/16 15:48:28 jakob Exp $ +// $OpenBSD: named-simple.conf,v 1.7 2007/12/16 21:34:56 jakob Exp $ // // Example file for a simple named configuration, processing both // recursive and authoritative queries using one cache. @@ -20,6 +20,8 @@ options { listen-on { any; }; listen-on-v6 { any; }; + empty-zones-enable yes; + allow-recursion { clients; }; }; @@ -31,25 +33,7 @@ logging { // zone "." { type hint; - file "standard/root.hint"; -}; - -zone "localhost" { - type master; - file "standard/localhost"; - allow-transfer { localhost; }; -}; - -zone "127.in-addr.arpa" { - type master; - file "standard/loopback"; - allow-transfer { localhost; }; -}; - -zone "0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa" { - type master; - file "standard/loopback6.arpa"; - allow-transfer { localhost; }; + file "etc/root.hint"; }; zone "com" { |