Browse Source

revert back to using local zones for localhost. and IPv4/IPv6 reverse until

we've found a better solution for chrooted applications.
OPENBSD_4_3
jakob 17 years ago
parent
commit
3bb41b70a3
6 changed files with 88 additions and 3 deletions
  1. +7
    -1
      src/etc/Makefile
  2. +15
    -0
      src/etc/bind/db.localhost
  3. +14
    -0
      src/etc/bind/db.loopback
  4. +14
    -0
      src/etc/bind/db.loopback6.arpa
  5. +19
    -1
      src/etc/bind/named-dual.conf
  6. +19
    -1
      src/etc/bind/named-simple.conf

+ 7
- 1
src/etc/Makefile View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.257 2007/12/16 21:34:56 jakob Exp $
# $OpenBSD: Makefile,v 1.258 2008/01/03 21:20:24 jakob Exp $
TZDIR= /usr/share/zoneinfo TZDIR= /usr/share/zoneinfo
LOCALTIME= Canada/Mountain LOCALTIME= Canada/Mountain
@ -171,6 +171,12 @@ distribution-etc-root-var: distrib-dirs
${DESTDIR}/var/named/etc; \ ${DESTDIR}/var/named/etc; \
${INSTALL} -c -o root -g wheel -m 644 root.hint \ ${INSTALL} -c -o root -g wheel -m 644 root.hint \
${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; \
/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


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

@ -0,0 +1,15 @@
; $OpenBSD: db.localhost,v 1.4 2008/01/03 21:20:25 jakob 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

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

@ -0,0 +1,14 @@
; $OpenBSD: db.loopback,v 1.4 2008/01/03 21:20:25 jakob 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.

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

@ -0,0 +1,14 @@
; $OpenBSD: db.loopback6.arpa,v 1.4 2008/01/03 21:20:25 jakob 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.

+ 19
- 1
src/etc/bind/named-dual.conf View File

@ -1,4 +1,4 @@
// $OpenBSD: named-dual.conf,v 1.8 2007/12/16 21:34:56 jakob Exp $
// $OpenBSD: named-dual.conf,v 1.9 2008/01/03 21:20:25 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
@ -38,6 +38,24 @@ view "recursive" {
file "etc/root.hint"; file "etc/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; };
};
zone "com" { zone "com" {
type delegation-only; type delegation-only;
}; };


+ 19
- 1
src/etc/bind/named-simple.conf View File

@ -1,4 +1,4 @@
// $OpenBSD: named-simple.conf,v 1.7 2007/12/16 21:34:56 jakob Exp $
// $OpenBSD: named-simple.conf,v 1.8 2008/01/03 21:20:25 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.
@ -36,6 +36,24 @@ zone "." {
file "etc/root.hint"; file "etc/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; };
};
zone "com" { zone "com" {
type delegation-only; type delegation-only;
}; };


Loading…
Cancel
Save