(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
dns question
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: dns question
Does 'ftp' have
nameserver 192.168.0.1
in /etc/resolv.conf ?
nameserver 192.168.0.1
in /etc/resolv.conf ?
Re: dns question
Make sure there is also a "search youdomain.com" line in /etc/resolv.conf to better enable "short" name resolution.
Re: dns question
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
Sorry, I did't know that I had to activate a DHCP to make DNS work.
Can somebody explain why?
Thanks
-
- Posts: 10642
- Joined: 2005/08/05 15:19:54
- Location: Northern Illinois, USA
Re: dns question
You don't.
You just have to have resolv.conf set up correctly,
and a route to your dns server.
You just have to have resolv.conf set up correctly,
and a route to your dns server.