From owner-freebsd-questions Mon Jan 8 22: 4:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.mco.bellsouth.net (mail2.mco.bellsouth.net [205.152.111.14]) by hub.freebsd.org (Postfix) with ESMTP id 78EF337B401 for ; Mon, 8 Jan 2001 22:04:40 -0800 (PST) Received: from lane (adsl-20-149-227.bhm.bellsouth.net [66.20.149.227]) by mail2.mco.bellsouth.net (3.3.5alt/0.75.2) with SMTP id AAA05275 for ; Tue, 9 Jan 2001 00:56:29 -0500 (EST) From: lanehol@bellsouth.net Message-ID: <004201c07a01$f1b06880$e3951442@windows.home> To: Subject: Local DNS Server Date: Tue, 9 Jan 2001 00:03:52 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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