Paul on 18 Jul 2004 05:37:02 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] Setting up DNS on Fedora Core 2


Michael Lazin wrote:

[root@doppelbock BOOTLINUX]# nslookup macdaddy

Server:         204.183.80.2
Address:        204.183.80.2#53

** server can't find macdaddy: NXDOMAIN


dig -x 204.183.80.2

ns1.dca.net.            106729  IN      A       204.183.80.2

So, nslookup was trying to use DCA's DNS server instead of your own. Try one of the following commands, replacing "server" with the IP of your local DNS server:

dig @server macdaddy
nslookup macdaddy server
host macdaddy server

[root@doppelbock BOOTLINUX]# nslookup 192.168.0.191
Server:         204.183.80.2
Address:        204.183.80.2#53

** server can't find 191.0.168.192.in-addr.arpa: NXDOMAIN


Again, DCA's DNS server is being used and will never be able to resolve a private address within your private network.

dig @server -x 192.168.0.191
nslookup 192.168.0.191 server
host 192.168.0.191 server

To make Linux always use your local DNS server you would have to change /etc/resolv.conf to point to it. You could point to 127.0.0.1 if you are on the server itself.
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug