From owner-freebsd-questions Thu Feb 8 21:40:40 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA00711 for questions-outgoing; Thu, 8 Feb 1996 21:40:40 -0800 (PST) Received: from obie.softweyr.com (slcmodem1-p2-4.intele.net [204.118.149.119]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA00704 for ; Thu, 8 Feb 1996 21:40:36 -0800 (PST) Received: (from wes@localhost) by obie.softweyr.com (8.6.12/8.6.12) id WAA01593; Thu, 8 Feb 1996 22:39:42 -0800 Date: Thu, 8 Feb 1996 22:39:42 -0800 Message-Id: <199602090639.WAA01593@obie.softweyr.com> From: wes@intele.net To: "Timothy.Butkiewicz" Reply-To: wes@intele.net CC: Mostyn/Annabella , questions@freebsd.org Subject: DNS & BIND Sender: owner-questions@freebsd.org Precedence: bulk Timothy.Butkiewicz asked: > Can you please pass aloong your namedb / ? > thanks Mostyn Lewis chimed in with: > I may have to dabble with named for a FreeBSD machine very shortly. > I saw you message in the lists. If you would be so kind I'd like > a copy of your /etc/namedb directory also? Here goes. First of all, my /etc/sysconfig section for named reads: ~~~~~~~~~~ # Set to appropriate flags for named, if you have a full-time # connection to the Internet. # For most hosts, flags should be "-b /etc/namedb/named.boot" namedflags="-b /etc/namedb/named.boot" ~~~~~~~~~~ When named starts, it reads /etc/namedb/named.boot: ~~~~~~~~~~ ; $Id: named.boot,v 1.2 1993/11/07 00:58:34 wollman Exp $ ; From: @(#)named.boot 5.1 (Berkeley) 6/30/90 ; boot file for secondary name server ; Note that there should be one primary entry for each SOA record. ; example sortlist config: ; sortlist 128.3.0.0 directory /etc/namedb ; type domain source host/file primary softweyr.com softweyr.hosts primary 178.68.204.IN-ADDR.ARPA softweyr.rev primary 0.0.127.IN-ADDR.ARPA localhost.rev cache . root.cache ~~~~~~~~~~ The files referenced in named.boot, in order: softweyr.hosts defines hosts in SOFTWEYR-NET: ~~~~~~~~~~ ; localhost.rev for softweyr-net, from: ; @(#)localhost.rev 5.1 (Berkeley) 6/30/90 ; Wes Peters; Sat Jan 7 22:59:55 1995 @ IN SOA softweyr.com. wes.softweyr.com. ( 960126 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS ns.softweyr.com. localhost IN A 127.0.0.1 obie IN A 204.68.178.1 obie IN HINFO "486dx2/66" "FreeBSD 2.1R" gateway IN A 204.68.178.126 gateway IN HINFO "386sx/16" "FreeBSD 2.1R" ns IN CNAME obie mx IN CNAME obie gw IN CNAME gateway obie IN MX 5 mx gateway IN MX 5 mx softweyr.com. IN MX 10 mx ~~~~~~~~~~ softweyr.rev defines address-to-name mappings for hosts in SOFTWEYR-NET: ~~~~~~~~~~ ; localhost.rev for softweyr-net, from: ; @(#)localhost.rev 5.1 (Berkeley) 6/30/90 ; Wes Peters; Fri Sep 30 14:04:24 MDT 1994 @ IN SOA softweyr.com. wes.softweyr.com. ( 951227 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS obie.softweyr.com. 1 IN PTR obie.softweyr.com. 126 IN PTR gateway.softweyr.com. ~~~~~~~~~~ localhost.rev defines address-to-name mappings for hosts on net 127: ~~~~~~~~~~ ; localhost.rev for softweyr-net, from: ; @(#)localhost.rev 5.1 (Berkeley) 6/30/90 ; Wes Peters; Fri Sep 30 14:04:24 MDT 1994 @ IN SOA softweyr.com. wes.softweyr.com. ( 940930 ; Serial - date last changed 3600 ; Refresh 300 ; Retry 3600000 ; Expire 3600 ) ; Minimum IN NS obie.softweyr.com. 1 IN PTR localhost.softweyr.com. ~~~~~~~~~~ root.cache creates a cache of the root-level domain name servers, which the local name server will use when it needs to forward a request "up" the DNS heirarchy ~~~~~~~~~~ ; @(#)root.cache 5.1 (Berkeley) 6/30/90 ; 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 TERP.UMD.EDU. IN NS NS.NASA.GOV. IN NS NIC.NORDU.NET. 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 ~~~~~~~~~~ That's all, folks. Hacking up the softweyr.* files and named.boot should get your nameserver up and running. This probably isn't perfect, but "it works for me." ;^) -- Wes Peters | Yes I am a pirate, two hundred years too late Softweyr | The cannons don't thunder, there's nothing to plunder Consulting | I'm an over forty victim of fate... wes@intele.net | Jimmy Buffett