summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoritojun <itojun@openbsd.org>2002-01-21 04:04:18 +0000
committeritojun <itojun@openbsd.org>2002-01-21 04:04:18 +0000
commitc37ccd1aff9968ebb42f057d3aabcde49b393441 (patch)
treed375fc83cb789216fcc7ce3053cd77930b0ad880
parentfinish ericj's work. (diff)
downloadwireguard-openbsd-c37ccd1aff9968ebb42f057d3aabcde49b393441.tar.xz
wireguard-openbsd-c37ccd1aff9968ebb42f057d3aabcde49b393441.zip
do not taint ::/124 for IPv6 localhost table.
avoid lookups to localhost.berkeley.edu.
-rw-r--r--etc/namedb/localhost.rev2
-rw-r--r--etc/namedb/localhost.v6.rev10
-rw-r--r--etc/namedb/localhost.zone12
-rw-r--r--etc/namedb/named.boot3
4 files changed, 25 insertions, 2 deletions
diff --git a/etc/namedb/localhost.rev b/etc/namedb/localhost.rev
index 7956a357897..63872e27232 100644
--- a/etc/namedb/localhost.rev
+++ b/etc/namedb/localhost.rev
@@ -7,4 +7,4 @@
3600000 ; Expire
3600 ) ; Minimum
IN NS ucbvax.Berkeley.EDU.
-1 IN PTR localhost.Berkeley.EDU.
+1 IN PTR localhost.
diff --git a/etc/namedb/localhost.v6.rev b/etc/namedb/localhost.v6.rev
new file mode 100644
index 00000000000..bdf8f6ddf35
--- /dev/null
+++ b/etc/namedb/localhost.v6.rev
@@ -0,0 +1,10 @@
+; @(#)localhost.rev 5.1 (Berkeley) 6/30/90
+
+@ IN SOA ucbvax.Berkeley.EDU. rwh.ucbvax.Berkeley.EDU. (
+ 14 ; Serial
+ 3600 ; Refresh
+ 900 ; Retry
+ 3600000 ; Expire
+ 3600 ) ; Minimum
+ IN NS ucbvax.Berkeley.EDU.
+ IN PTR localhost.
diff --git a/etc/namedb/localhost.zone b/etc/namedb/localhost.zone
new file mode 100644
index 00000000000..e5af5f79a79
--- /dev/null
+++ b/etc/namedb/localhost.zone
@@ -0,0 +1,12 @@
+; @(#)localhost.rev 5.1 (Berkeley) 6/30/90
+
+@ IN SOA ucbvax.Berkeley.EDU. rwh.ucbvax.Berkeley.EDU. (
+ 14 ; Serial
+ 3600 ; Refresh
+ 900 ; Retry
+ 3600000 ; Expire
+ 3600 ) ; Minimum
+ IN NS ucbvax.Berkeley.EDU.
+localhost. IN NS localhost.
+ IN A 127.0.0.1
+ IN AAAA ::1
diff --git a/etc/namedb/named.boot b/etc/namedb/named.boot
index 9ae2aa3086c..fa591e31aa5 100644
--- a/etc/namedb/named.boot
+++ b/etc/namedb/named.boot
@@ -12,7 +12,8 @@ directory /namedb
cache . root.cache
primary 0.0.127.IN-ADDR.ARPA localhost.rev
-primary 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.int localhost.rev
+primary 1.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.int localhost.v6.rev
+primary localhost localhost.zone
; example secondary server config:
; secondary Berkeley.EDU 128.32.130.11 128.32.133.1 ucbhosts.bak