summaryrefslogtreecommitdiffstats
path: root/etc/namedb
diff options
context:
space:
mode:
Diffstat (limited to 'etc/namedb')
-rw-r--r--etc/namedb/PROTO.localhost.rev15
-rwxr-xr-xetc/namedb/make-localhost35
-rw-r--r--etc/namedb/root.cache29
3 files changed, 66 insertions, 13 deletions
diff --git a/etc/namedb/PROTO.localhost.rev b/etc/namedb/PROTO.localhost.rev
new file mode 100644
index 0000000..bc4e8ac
--- /dev/null
+++ b/etc/namedb/PROTO.localhost.rev
@@ -0,0 +1,15 @@
+; From: @(#)localhost.rev 5.1 (Berkeley) 6/30/90
+; $Id$
+;
+; This file is automatically edited by the `make-localhost' script in
+; the /etc/namedb directory.
+;
+
+@ IN SOA @host@. root.@host@. (
+ @date@ ; Serial
+ 3600 ; Refresh
+ 300 ; Retry
+ 3600000 ; Expire
+ 3600 ) ; Minimum
+ IN NS @host@.
+1 IN PTR localhost.@domain@.
diff --git a/etc/namedb/make-localhost b/etc/namedb/make-localhost
new file mode 100755
index 0000000..e321da6
--- /dev/null
+++ b/etc/namedb/make-localhost
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+# make-localhost - edit the appropriate local information into
+# /etc/namedb/localhost.rev
+#
+
+if [ "`hostname -s`" != "`hostname`" ]; then
+ # hostname must contain domain
+
+ host=`hostname -s`
+ fullhost=`hostname`
+ domain=`echo $fullhost | sed "s/^$host\.//"`
+else
+ host=`hostname`
+
+ if [ -z "$1" ]; then
+ echo -n 'Enter your domain name: '
+ read domain
+ else
+ domain="$1"
+ fi
+
+ # strip trailing dot, if any
+ domain=`echo $domain | sed 's/\.$//'`
+ fullhost="$host.$domain"
+fi
+
+date=`date +"%y%m%d"`
+
+mv -f localhost.rev localhost.rev.BAK 2>/dev/null
+
+exec sed -e "s/@host@/$fullhost/g" \
+ -e "s/@domain@/$domain/g" \
+ -e "s/@date@/$date/g" \
+ < PROTO.localhost.rev > localhost.rev
diff --git a/etc/namedb/root.cache b/etc/namedb/root.cache
index d60ff15..56e5d72 100644
--- a/etc/namedb/root.cache
+++ b/etc/namedb/root.cache
@@ -1,23 +1,26 @@
-; @(#)root.cache 5.1 (Berkeley) 6/30/90
+; Updated from ns.internic.net root NS record 21.3.1995 by wollman
+;
+; $Id$
; Initial cache data for root domain servers.
. IN NS NS.INTERNIC.NET.
IN NS AOS.ARL.ARMY.MIL.
- IN NS KAVA.NISC.SRI.COM.
- IN NS C.NYSER.NET.
+ IN NS NS1.ISI.EDU.
+ IN NS C.PSI.NET.
IN NS TERP.UMD.EDU.
IN NS NS.NASA.GOV.
IN NS NIC.NORDU.NET.
+ IN NS NS.ISC.ORG.
IN NS NS.NIC.DDN.MIL.
; Prep the cache (hotwire the addresses). Order does not matter.
-NS.NIC.DDN.MIL. IN A 192.112.36.4
-AOS.ARL.ARMY.MIL. IN A 128.63.4.82
- IN A 192.5.25.82
-KAVA.NISC.SRI.COM. IN A 192.33.33.24
-C.NYSER.NET. IN A 192.33.4.12
-TERP.UMD.EDU. IN A 128.8.10.90
-NS.INTERNIC.NET. IN A 198.41.0.4
-NS.NASA.GOV. IN A 128.102.16.10
- IN A 192.52.195.10
-NIC.NORDU.NET. IN A 192.36.148.17
+NS.INTERNIC.NET. IN A 198.41.0.4
+AOS.ARL.ARMY.MIL. IN A 128.63.4.82
+ IN A 192.5.25.82
+NS1.ISI.EDU. IN A 128.9.0.107
+C.PSI.NET. IN A 192.33.4.12
+TERP.UMD.EDU. IN A 128.8.10.90
+NS.NASA.GOV. IN A 128.102.16.10
+ IN A 192.52.195.10
+NIC.NORDU.NET. IN A 192.36.148.17
+NS.ISC.ORG. IN A 192.5.5.241
OpenPOWER on IntegriCloud