1828450 Members
4101 Online
109978 Solutions
New Discussion

Configuring DNS server

 
Lakshmi Narayanan
Occasional Advisor

Configuring DNS server

We have configured complete DNS server. we had mad changes in /etc/named.conf and renamed the files as:
localhost.zone to rhce.for
named.local to rhce.rev
and copied the files respectively as mentioned above.
we changed our hostname to rhce.server.com and we made appropriate changes in both rhce.for & rhce.rev.

we are facing some problems, the following error is giving that when we restart the named service by giving a command : " service named restart"
Stopping named : rndc: couldn't find server 'localhost' : Temporary failure in name resolution.

can you please explain me how to configure DNS server in Red Hat Enterprise Edition 4 or in Fedora Core 2

Thanking You,
Lakshmi Narayanan
The shortest way to do many things is to do only one thing at once
2 REPLIES 2
Vitaly Karasik_1
Honored Contributor

Re: Configuring DNS server

You cannot delete localhost/localdomain records/zones.

As for DNS tutorial - you can use RH docs http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/ref-guide/ch-bind.html

or http://yolinux.com/TUTORIALS/LinuxTutorialWebSiteConfig.html#DNS

Rgds,
Vitaly
Thomas J. Harrold
Trusted Contributor

Re: Configuring DNS server

Leave the localhost.zone and named.local files alone. If anything, just copy them to new names, and modify the copies.

You'll want at least one "forward" lookup file, and one "reverse" lookup for each separate subnet.

For example:

mydomain.com.db
10.1.1.in-addr.arpa.db

After making these files (model them after examples localhost.zone, etc), you need to modify the /etc/named.conf file, so that DNS knows about the domain you are serving.

Again, you should be able to follow examples in the comment section of /etc/named.conf.

It's only 4-5 lines, something like:

zone "mydomain.com" IN {
type master;
file "mydomain.com.db;
}

zone "10.1.1.in-addr.arpa" IN {
type master;
file "10.1.1.in-addr.arpa.db";
}


-tjh
I learn something new everyday. (usually because I break something new everyday)