Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

named won't resolv (outside) hosts

Status
Not open for further replies.

Dsilence

ISP
Jan 31, 2002
4
FI
I've installed a new red hat 7.3 server with (all RPM) bind DNS, sendmail, httpd etc everything works fine except one BIG problem :(

The DNS (same machine) won't find hosts,
if I ping an outside (e.g. redhat) IP-address it works, but if I e.g. ping nothing :(

If I ping something entered in /etc/hosts
it works.

I red somewhere that when DNS is installed and conffed it should automatic use DNS instead of (or both) /etc/hosts to resolve IP well it dosen't do it for me!!!!

this is not a DNS bsic configuration error as I have the exact same working configuration on a slower machine.

anyone know why the "better" machine dosen't use DNS to resolv? I suspect it's just a basic option that's wrong...

Thanks
D-Silence
 
You use the hosts file in addition to DNS.

Did you set your server up to resolve names on the internet? Probably not. You need to forward outside requests to your ISP's name server (or whoever you want to use). You need an entry similar to this in your /etc/named.conf...

options {
directory "/var/named";
forwarders {
123.45.67.89;
123.45.67.88;
};

The IPs above are the addresses of my ISP's name servers.


ChrisP ------------------------------------------------------------------------------
If somebody helps you, please vote for them for "Tipmaster of the Week" by giving them a "purple star". This can be done by clicking the "Mark this post as a helpful/expert post" button.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top