[volunteers] Update on SVLUG DNS

Rick Moen rick at linuxmafia.com
Wed Nov 29 19:43:55 PST 2006


I'm posting this here for collective knowledge, though this would be
something we'll want to put on a wiki, when we have one.  (Mailing
lists suck as a repository for collective knowledge.)  I may in the
meantime Web-ify this manually and add it to the Web Team pages on our
existing site.

Attached are the new versions of our zonefiles, and the control file at
ns1.svlug.org for NSD, the nameserver software we use, there.  NSD is a
very small, fast nameserver package for authoritative-only service:  It
doesn't do recursive DNS, i.e., can answer queries _only_ about the
domains it's charged with handling for authoritative service, and by
design cannot answer queries about arbitrary Internet domains otherwise.

At the moment, Paul, Mark, Heather, and I have the root password for
ns1.svlug.org (at Linode), and can maintain our DNS zonefiles.
Cheatsheet for doing so follows:

# cd /etc/nsd/primary

# ls
reiber.org.zone  svlug.com.zone  svlug.net.zone  svlug.org.zone

# vi svlug.org.zone

   Make desired changes.  (Zonefile format for NSD is exactly the same as
   BIND's.)  Don't forget to increment the S/N, e.g., the current value of 
   2006112900 to 2006112901 -- which is today's date plus two digits
   that can go from 00 to 99 if necessary, each day.  Save.  Exit.

# cd ..

# ls
keys  nsd.zones  primary

   "nsd.zones" is NSD's control file, describing what zones it's in 
   charge of, where their zonefiles are, and what other nameservers to
   communicate with about them.  A copy is attached.

# zonec -v nsd.zones

   The "zonec" (zone compiler) utility produces a binary equivalent of the
   ASCII-format zonefile.  NSD then uses the binary-format copy, in
   operation.

# nsdc reload

   The "nsdc" command is a control utility for NSD, very similar to
   BIND's "rndc" utility.  Alternatively, one could do 
   "/etc/init.d/nsd restart".


Please feel _very_ welcome to keep an archive copy of (in particular)
the zonefiles around, even if you yourself don't do DNS.  At one point
in the past, SVLUG had some temporary planning troubles because the guy
doing all svlug.org and svlug.net DNS was ignoring our requests for
copies -- and provided an incomplete copy when he finally semi-complied.
Spreading zonefile copies around prevents that problem from recurring.


-------------- next part --------------
$ORIGIN svlug.org.
$TTL 86400  ; 1 day
@	IN	SOA	ns1.svlug.org. root.svlug.org. (
				2006112900 ; serial
				7200       ; refresh (2 hours)
				3600       ; retry (1 hour)
				2419200    ; expire (28 days)
				259200     ; negative TTL (3 days)
                                )
	IN	NS	ns1.svlug.org.
	IN	NS	ns2.svlug.org.
	IN	NS	ns1.nylug.org.
	IN	NS	ns3.svlug.org.
	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
	IN	TXT	"v=spf1 a mx ptr -all"
ftp	IN	A	157.22.20.227
lists	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
mail	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
svlug	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
web	IN	A	157.22.20.227
www	IN	A	157.22.20.227
; ns1 is SVLUG's Linode host.
ns1	IN	A	64.62.190.98
; ns2 is Aaron T. Porter's ns.primate.net nameserver.
ns2	IN	A	198.144.194.12
; ns3 is Rick Moen's ns1.linuxmafia.com nameserver.
ns3	IN	A	198.144.195.186

-------------- next part --------------
$ORIGIN svlug.net.
$TTL 86400  ; 1 day
@	IN	SOA	ns1.svlug.net. root.svlug.org. (
				2006112900 ; serial
				7200       ; refresh (2 hours)
				3600       ; retry (1 hour)
				2419200    ; expire (28 days)
				259200     ; negative TTL (3 days)
				)
	IN	NS	ns1.svlug.net.
	IN	NS      ns.primate.net.
	IN	NS      ns2.svlug.net.
	IN	NS	ns3.svlug.net.
	IN	A       157.22.20.227
	IN	MX      10 svlug.org.
	IN	TXT     "v=spf1 a mx ptr -all"
ftp	IN	A       157.22.20.227
lists	IN	A       157.22.20.227
	IN	MX      10 svlug.org.
mail	IN	A       157.22.20.227
	IN	MX      10 svlug.org.
svlug	IN	A       157.22.20.227
	IN	MX      10 svlug.org.
web	IN	A       157.22.20.227
www	IN	A       157.22.20.227
; ns1 is SVLUG's ns1.svlug.org nameserver.
ns1	IN	A       64.62.190.98
; ns2 is Ron Guerin and Tony Marchesano's ns1.nylug.org nameserver.
ns2	IN	A	69.31.90.145
; ns3 is Rick Moen's ns1.linuxmafia.com nameserver.
ns3	IN	A	198.144.195.186
-------------- next part --------------
$ORIGIN svlug.com.
$TTL 86400  ; 1 day
@	IN	SOA	ns1.svlug.com. root.svlug.org. (
				2006112900 ; serial
				7200       ; refresh (2 hours)
				3600       ; retry (1 hour)
				2419200    ; expire (28 days)
				259200     ; negative TTL (3 days)
                                )
	IN	NS	ns1.svlug.com.
	IN	NS	ns2.svlug.com.
	IN	NS	ns3.svlug.com.
	IN	NS	ns1.linuxmafia.com.
	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
	IN	TXT	"v=spf1 a mx ptr -all"
ftp	IN	A	157.22.20.227
lists	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
mail	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
svlug	IN	A	157.22.20.227
	IN	MX	10 svlug.org.
web	IN	A	157.22.20.227
www	IN	A	157.22.20.227
; ns1 is SVLUG's Linode host.
ns1	IN	A	64.62.190.98
; ns2 is Aaron T. Porter's ns.primate.net nameserver.
ns2	IN	A	198.144.194.12
; ns3 is Ron Guerin and Tony Marchesano's ns1.nylug.org nameserver.
ns3	IN	A	69.31.90.145

-------------- next part --------------
;
; nsd.zones -- a list of the zones to be compiled into the NSD database
;
; Copyright (c) 2001-2004, NLnet Labs. All rights reserved.
;
; See LICENSE for the license.
;

; This is a comment

; The filenames are relative to ${zonesdir}
;
; The masters keyword indicates that the zone should be AXFR'd from appropriate
; ip-address of the master DNS server on subsquent nsdc(8) update if necessary.
;
; The notify keyword will trigger notify messages sent to the given ip-addreses
; on every NSD database (re)load.
;
; zone	name		filename		[ masters/notify ip-address ]
;zone	.		primary/root.zone	notify 128.9.0.107 192.33.4.12 128.8.10.90
;zone	ww.net		primary/ww.net
;zone	nlnetlabs.nl	secondary/nlnetlabs.nl	masters 213.53.69.1
zone	svlug.org	primary/svlug.org.zone	notify  198.144.194.12 69.31.90.145  216.240.40.162  198.144.195.186  216.218.255.165  207.44.185.143
zone	svlug.net	primary/svlug.net.zone	notify	198.144.194.12 69.31.90.145  216.240.40.162  198.144.195.186  216.218.255.165  207.44.185.143
zone	svlug.com	primary/svlug.com.zone	notify	198.144.194.12 69.31.90.145  216.240.40.162  198.144.195.186  216.218.255.165  207.44.185.143
zone	reiber.org	primary/reiber.org.zone	notify	216.221.162.81 216.221.162.111  198.144.195.186  198.144.194.12


More information about the volunteers mailing list