mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 12:07:10 +01:00
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.)
This commit is contained in:
parent
976a4f67ae
commit
7f0f8722f6
15
etc/namedb/PROTO.localhost.rev
Normal file
15
etc/namedb/PROTO.localhost.rev
Normal file
@ -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@.
|
35
etc/namedb/make-localhost
Executable file
35
etc/namedb/make-localhost
Executable file
@ -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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user