Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Jan 2001 00:03:52 -0600
From:      lanehol@bellsouth.net
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Local DNS Server
Message-ID:  <004201c07a01$f1b06880$e3951442@windows.home>

next in thread | raw e-mail | index | archive | help
I want to set up my FreeBSD box to act as a DNS server for local addresses.
I have a Mac, Unix, and Windows box and I'm using Samba and Netatalk to
negotiate for them ... how complex?!!!

Anyway ...All three computers are used for html development projects but I
have to edit the HOSTS file on each machine in order to get them each to
know the ip address of the other ...

I'd like to have one of  them (preferably FreeBSD) maintain the ip address
for all local boxes and have the local boxes query the FreeBSD box for those
addresses.

I have enabled the named daemon and I can verify that the Mac and the
Windows boxes are querying FreeBSD (by setting the named debug level to 4
and examining named.run file).  When I look at the named.run file I see
misleading words like "succeeded" and I think that maybe the local lookup
succeeded.  Howver, even though all three machines are able to access any
site OUTSIDE of the local network, I am unable to access sites INSIDE the
local network (unless I manually add the entries to the HOSTS files on each
machine).

I have executed /etc/namedb/make-localhost and edited /etc/namedb/named.conf
to include:

zone "server.unix.home" {
 type master;
 file "/etc/namedb/lane.unix.rev";
};

My FreeBSD box is server.unix.home at 192.168.0.4 (I'm not real original
with these)
My Windows box is lane.windows.home at 192.168.0.1
My Mac box is joe.mac.home at 192.168.0.2

Is there an easy way to make this work ... that is .. is there an easy way
to make it work WITHOUT having to add each new computer ip address to every
computer's HOSTS file?


Thanks,
lane

What follows is a partial dump of named run when I requested
http://server.unix.home (192.168.0.4) from address 192.168.0.1 (windows)

datagram from [192.168.0.1].1428, fd 20, len 34
ns_req(from [192.168.0.1].1428)
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; server.unix.home, type = A, class = IN
req: nlookup(server.unix.home) id 1 type=1 class=1
req: found 'server.unix.home' as 'server.unix.home' (cname=0)
req: found 'server.unix.home' as 'server.unix.home' (cname=0)
wanted(0x8116064, IN SOA) [IN SOA]
wantedtsig(0x8116064, IN SOA) [IN SOA]
finddata: added 1 class 1 type 6 RRs
NXDOMAIN aa = 0
doaddinfo() addcount = 1
do additional "" (from "")
found it
ns_req: answer -> [192.168.0.1].1428 fd=20 id=1 size=110 rc=3
pselect(24, 0xf00060, 0x0, 0x0, 3524.396370000)
select() returns 1 (err: none)
datagram from [192.168.0.1].1430, fd 20, len 39
ns_req(from [192.168.0.1].1430)
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 2
;; flags: rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
;; server.unix.home.home, type = A, class = IN
req: nlookup(server.unix.home.home) id 2 type=1 class=1
req: found 'server.unix.home.home' as 'home' (cname=0)
req: found 'server.unix.home.home' as 'home' (cname=0)




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?004201c07a01$f1b06880$e3951442>