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 Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dns server

Status
Not open for further replies.

therealtalkinggoat

IS-IT--Management
Jul 9, 2003
32
US
i am tring to set up a dns server on my local network, but every time i try to start the service i get the error that it can't find the localhost server... it should not be looking for a server with this name. i changed the name of the computer to linuxbox, and went through all the dns configuration files and changed the names as well. i also changed all the files in the /var/named directory to match. why is it giving me this error?

 
you MUST define a zone for localhost and ip 127.0.0.1 or nothing will work properly. google for any example zone file setups and you'll see this.

This is irrespective of your hostname, 'localhost' is always present.

Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
You MUST define zone files for the localhost entity at 127.0.0.1

You MAY define zone files for any domains that you are rightfully entitled to run. eg. If you buy the rights to "example.com", you may publicly provide DNS hostname resolution for that domain.

You MAY define zone files for any domains you would like to make up while you use those domains (and host names) in a private IP space.

Every DNS HOWTO on the Internet first begins with detailing the the zone files for Root Nameserver hints, the localhost, and the 127.0.0-inaddr-arpa files. Without these you taking a fairly illegal and ugly shortcut that will not work to your satisfaction.

see:
Don't fight the system. Make it work for you!



Surfinbox.com Business Internet Services - National Dialup, DSL, T-1 and more.
 
i changed everything back to the way that it was and the way the examples say that it should be. i also restored the hosts file. now it is giving me "connection refused." what is this things problem?
 
Do you have a firewall on this box? you need to make sure the DNS service is started and running (ps aux) and also you need to open port 53:udp in your firewall for queries.

Burke
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top