From 7f0f8722f6f4b445242f230675dabb9e105df3ca Mon Sep 17 00:00:00 2001 From: wollman Date: Tue, 21 Mar 1995 16:33:45 +0000 Subject: Update root NS cache. Delete bogus localhost.rev. Add prototype localhost.rev and a script to create it automatically. (NB to installl people: you should ask ``do you have a full-time connection o the Internet?'', run this script, and enable named if the answer is yes.) --- etc/namedb/PROTO.localhost.rev | 15 +++++++++++++++ etc/namedb/make-localhost | 35 +++++++++++++++++++++++++++++++++++ etc/namedb/root.cache | 29 ++++++++++++++++------------- 3 files changed, 66 insertions(+), 13 deletions(-) create mode 100644 etc/namedb/PROTO.localhost.rev create mode 100755 etc/namedb/make-localhost (limited to 'etc') 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 -- cgit v1.1