Date: Sat, 25 May 1996 10:30:02 -0400 From: John Clark <jrclark@felix.iupui.edu> To: questions@freebsd.org Subject: DNS zone files... thought sendmail was tough! Message-ID: <2.2.32.19960525143002.00696d80@felix.iupui.edu>
next in thread | raw e-mail | index | archive | help
Hello named gurus,
I have a bad feeling that very few people run FreeBSD name servers, and I
may be clean-out-'o'-luck. :(
I have been persistently working with the FreeBSD "named" (name server) for
the past two days. I have failed. I think it may be time to ask for help.
Could someone who is running a FreeBSD name server please reply to help me
get mine up?
Here is where I am:
1) I have a ppp connection to the internet (temporary, before it goes on
the T1). The box is dynamically allocated an ip, and has full, operational
internet connectivity.
2) The box also runs on an internal ethernet at 10.10.10.8, and can
communicate properly with other machines on the internal network. The
default route is to the ppp connection.
3) "/etc/resolv.conf"
--cut-here-----cut-here-----cut-here-----cut-here---
domain fakename.net
nameserver 127.0.0.1
--cut-here-----cut-here-----cut-here-----cut-here---
4) "/etc/hosts"
--cut-here-----cut-here-----cut-here-----cut-here---
127.0.0.1 localhost
10.10.10.8 bsdbox1.fakename.net bsdbox1
10.10.10.8 fakename.net
10.10.10.8 ns.fakename.net ns
10.10.10.8 www.fakename.net www
10.10.10.8 ftp.fakename.net ftp
10.10.10.1 myworkstation.fakename.net myworkstation
--cut-here-----cut-here-----cut-here-----cut-here---
In this hosts file, I have defined the name of the server (bsdbox1) with the
nonexistent domain (fakename.net). My local workstation (on the 10.10.10.x
line is called "myworkstation"). I also want my server to respond to "ftp"
"www" and "ns" as well as to the domain without a server name. This all
appears to be fine.
5) "/etc/host.conf"
--cut-here-----cut-here-----cut-here-----cut-here---
order hosts,bind
--cut-here-----cut-here-----cut-here-----cut-here---
I want to look at the "/etc/hosts" before running a DNS search.
6) "/etc/named.boot"
--cut-here-----cut-here-----cut-here-----cut-here---
;
; boot file for name server
;
directory /usr/local/adm/named
; type domain source host/file backup file
cache . named.root
primary localhost pz/localhost
primary 0.0.127.in-addr.arpa pz/127.0.0
--cut-here-----cut-here-----cut-here-----cut-here---
7) "/usr/local/adm/named/named.root" (stock)
--cut-here-----cut-here-----cut-here-----cut-here---
; This file holds the information on root name servers needed to
; initialize cache of Internet domain name servers
; (e.g. reference this file in the "cache . <file>"
; configuration file of BIND domain name servers).
;
; This file is made available by InterNIC registration services
; under anonymous FTP as
; file /domain/named.root
; on server FTP.RS.INTERNIC.NET
; -OR- under Gopher at RS.INTERNIC.NET
; under menu InterNIC Registration Services (NSI)
; submenu InterNIC Registration Archives
; file named.root
;
; last update: Nov 8, 1995
; related version of root zone: 1995110800
;
;
; formerly NS.INTERNIC.NET
;
. 3600000 IN NS A.ROOT-SERVERS.NET.
A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4
;
; formerly NS1.ISI.EDU
;
. 3600000 NS B.ROOT-SERVERS.NET.
B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107
;
; formerly C.PSI.NET
;
. 3600000 NS C.ROOT-SERVERS.NET.
C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12
;
; formerly TERP.UMD.EDU
;
. 3600000 NS D.ROOT-SERVERS.NET.
D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
;
; formerly NS.NASA.GOV
;
. 3600000 NS E.ROOT-SERVERS.NET.
E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10
;
; formerly NS.ISC.ORG
;
. 3600000 NS F.ROOT-SERVERS.NET.
F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241
;
; formerly NS.NIC.DDN.MIL
;
. 3600000 NS G.ROOT-SERVERS.NET.
G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4
;
; formerly AOS.ARL.ARMY.MIL
;
. 3600000 NS H.ROOT-SERVERS.NET.
H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53
;
; formerly NIC.NORDU.NET
;
. 3600000 NS I.ROOT-SERVERS.NET.
I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17
; End of File
--cut-here-----cut-here-----cut-here-----cut-here---
This is the latest from Internic.
8) "/usr/local/adm/named/pz/127.0.0"
--cut-here-----cut-here-----cut-here-----cut-here---
$ORIGIN 0.0.127.IN-ADDR.ARPA.
@ IN SOA fakename.net. hostmaster.fakename.net. (
1 ; Serial
360000 ; Refresh
300 ; Retry
3600000 ; Expire
360000 ) ; Minimum
NS ns.fakename.net.
1 PTR localhost.
--cut-here-----cut-here-----cut-here-----cut-here---
9) "/usr/local/adm/named/pz/localhost"
--cut-here-----cut-here-----cut-here-----cut-here---
$ORIGIN localhost.
@ IN SOA fakename.net. hostmaster.fakename.net. (
1 ; Serial
360000 ; Refresh
300 ; Retry
3600000 ; Expire
360000 ) ; Minimum
NS ns.fakename.net.
A 127.0.0.1
--cut-here-----cut-here-----cut-here-----cut-here---
Ok, got that? Good! I had no idea how difficult setting-up a name server
was (I thought sendmail was tough!).
Now, I have "/etc/sysconfig" starting "named" with the following options:
"-b /etc/namedb/named.boot"
------------------------------------------------------------------------
------------------------------------------------------------------------
When nslookup starts, I am able to resolve any name on the 'net, however,
not my localhost. It should be a simple matter of my zone files being
hozed. Here are some sample queries:
-------------------------------
Default Server: localhost
Address: 127.0.0.1
> mit.edu
Server: localhost
Address: 127.0.0.1
Name: mit.edu
Address: 18.72.2.1
-------------------------------
and again:
-------------------------------
> mit.edu
Server: localhost
Address: 127.0.0.1
Non-authoritative answer:
Name: mit.edu
Address: 18.72.2.1
-------------------------------
Hey, the cache works... good.
-------------------------------
> 127.0.0.1
Server: localhost
Address: 127.0.0.1
Name: localhost
Address: 127.0.0.1
-------------------------------
it is able to resolve itself... (does not require zone file)
-------------------------------
> fakename.net
Server: localhost
Address: 127.0.0.1
*** localhost can't find fakename.net: Non-existent host/domain
-------------------------------
good, there is no zone file for "fakename.net" yet...
-------------------------------
> set q=any
> localhost.
Server: localhost
Address: 127.0.0.1
*** localhost can't find localhost.: Non-existent host/domain
-------------------------------
DARN, the localhost zone file must be broken?
Every time I modify "/etc/named.boot" I send a "kill -HUP named_pid" but
that never works! I must reboot, re-establish the ppp, and the routing
tables... You see how this is killing me. Killing named_pid and restarting
named brings no joy either. I feel that I am close to getting named to
resolve my localhost, however, at this point it will only resolve external
internet addresses. Have I done something fundamentally wrong? I think the
trouble is in the zone files.
THANKS FOR ANY HELP YOU ARE ABLE TO PROVIDE.
BTW -- If you are not interested in helping directly, could you give me
modified copies of your working zone files, and their "named.boot" entries?
Thanks again;
--John
[jrclark@indy.net]
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2.2.32.19960525143002.00696d80>
