Browse Source

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
OPENBSD_4_3
jakob 17 years ago
parent
commit
4286f51dbe
7 changed files with 11 additions and 99 deletions
  1. +2
    -8
      src/etc/Makefile
  2. +0
    -15
      src/etc/bind/db.localhost
  3. +0
    -14
      src/etc/bind/db.loopback
  4. +0
    -14
      src/etc/bind/db.loopback6.arpa
  5. +4
    -22
      src/etc/bind/named-dual.conf
  6. +4
    -20
      src/etc/bind/named-simple.conf
  7. +1
    -6
      src/etc/mtree/4.4BSD.dist

+ 2
- 8
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.256 2007/12/07 17:13:35 deraadt Exp $
# $OpenBSD: Makefile,v 1.257 2007/12/16 21:34:56 jakob Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -169,14 +169,8 @@ distribution-etc-root-var: distrib-dirs
${DESTDIR}/var/named/etc/named.conf; \ ${DESTDIR}/var/named/etc/named.conf; \
${INSTALL} -c -o root -g named -m 640 named-*.conf \ ${INSTALL} -c -o root -g named -m 640 named-*.conf \
${DESTDIR}/var/named/etc; \ ${DESTDIR}/var/named/etc; \
${INSTALL} -c -o root -g wheel -m 644 db.localhost \
${DESTDIR}/var/named/standard/localhost; \
${INSTALL} -c -o root -g wheel -m 644 db.loopback \
${DESTDIR}/var/named/standard/loopback; \
${INSTALL} -c -o root -g wheel -m 644 db.loopback6.arpa \
${DESTDIR}/var/named/standard/loopback6.arpa; \
${INSTALL} -c -o root -g wheel -m 644 root.hint \ ${INSTALL} -c -o root -g wheel -m 644 root.hint \
${DESTDIR}/var/named/standard; \
${DESTDIR}/var/named/etc; \
/bin/rm -f ${DESTDIR}/etc/localtime /bin/rm -f ${DESTDIR}/etc/localtime
ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime ln -s ${TZDIR}/${LOCALTIME} ${DESTDIR}/etc/localtime
/bin/rm -f ${DESTDIR}/etc/rmt /bin/rm -f ${DESTDIR}/etc/rmt


+ 0
- 15
src/etc/bind/db.localhost View File

@ -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

+ 0
- 14
src/etc/bind/db.loopback View File

@ -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.

+ 0
- 14
src/etc/bind/db.loopback6.arpa View File

@ -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.

+ 4
- 22
src/etc/bind/named-dual.conf View File

@ -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, // Example file for a named configuration with dual views,
// one processing recursive queries only and one processing // one processing recursive queries only and one processing
@ -20,6 +20,8 @@ options {
listen-on { any; }; listen-on { any; };
listen-on-v6 { any; }; listen-on-v6 { any; };
empty-zones-enable yes;
}; };
logging { logging {
@ -31,29 +33,9 @@ view "recursive" {
match-recursive-only yes; match-recursive-only yes;
allow-recursion { clients; }; allow-recursion { clients; };
// Standard zones
//
zone "." { zone "." {
type hint; 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" { zone "com" {


+ 4
- 20
src/etc/bind/named-simple.conf View File

@ -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 // Example file for a simple named configuration, processing both
// recursive and authoritative queries using one cache. // recursive and authoritative queries using one cache.
@ -20,6 +20,8 @@ options {
listen-on { any; }; listen-on { any; };
listen-on-v6 { any; }; listen-on-v6 { any; };
empty-zones-enable yes;
allow-recursion { clients; }; allow-recursion { clients; };
}; };
@ -31,25 +33,7 @@ logging {
// //
zone "." { zone "." {
type hint; 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" { zone "com" {


+ 1
- 6
src/etc/mtree/4.4BSD.dist View File

@ -1,4 +1,4 @@
# $OpenBSD: 4.4BSD.dist,v 1.187 2007/08/01 21:23:26 miod Exp $
# $OpenBSD: 4.4BSD.dist,v 1.188 2007/12/16 21:34:56 jakob Exp $
/set type=dir uname=root gname=wheel mode=0755 /set type=dir uname=root gname=wheel mode=0755
# . # .
@ -2565,11 +2565,6 @@ slave uname=root gname=named mode=0775
# ./var/named/slave # ./var/named/slave
.. ..
# ./var/named/standard
standard
# ./var/named/standard
..
# ./var/named/tmp # ./var/named/tmp
tmp uname=root gname=named mode=0775 tmp uname=root gname=named mode=0775
# ./var/named/tmp # ./var/named/tmp


Loading…
Cancel
Save