dns question

Issues related to configuring your network
Post Reply
hulyom
Posts: 60
Joined: 2006/05/26 20:40:24
Location: Latitude -2 54'16\"

dns question

Post by hulyom » 2007/01/15 12:12:41

(Using Centos 4.3)
I have installed a DNS server named "dnshost" with IP 192.168.0.1, this
and other machines are:
HOSTNAME IPADDRESS
dnshost 169.168.0.1
www 192.168.0.2
ftp 192.168.0.3

The "dnshost" is resolving the other 2 servers, if I "ping www" it
works, and also if I "ping ftp" it works!!! (from "dnshost")


but if I "ping www" or "ping dnshost" from "ftp" it doesn't work, but
if I ping their addresses, it works.


Which configuration am I missing?
named.conf
_______________________________________
zone "dmz.mydomain.org" {
type master;
file "dmz.mydomain.org.zone";
allow-query { 192.168/24; };
allow-transfer { 192.168/24; };
allow-update { 192.168/24; };
};
_______________________________________

...the firewall is disabled, so it's not a firewall problem

Thanks

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: dns question

Post by gerald_clark » 2007/01/15 14:19:11

Does 'ftp' have
nameserver 192.168.0.1
in /etc/resolv.conf ?

pjwelsh
Posts: 2629
Joined: 2007/01/07 02:18:02
Location: Central IL USA

Re: dns question

Post by pjwelsh » 2007/01/15 15:22:39

Make sure there is also a "search youdomain.com" line in /etc/resolv.conf to better enable "short" name resolution.

hulyom
Posts: 60
Joined: 2006/05/26 20:40:24
Location: Latitude -2 54'16\"

Re: dns question

Post by hulyom » 2007/01/16 09:28:44

the DNS is working now!!!

Sorry, I did't know that I had to activate a DHCP to make DNS work.

Can somebody explain why?

Thanks

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: dns question

Post by gerald_clark » 2007/01/16 14:14:32

You don't.
You just have to have resolv.conf set up correctly,
and a route to your dns server.

Post Reply

Return to “CentOS 4 - Networking Support”