Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-24-2008, 05:10 PM   #1
LQ Newbie
Registered: Mar 2008
Posts: 1

Rep: Reputation: 0
Unhappy Newbie DNS server & /etc/resolv.conf problem (CentOS 5.x)

Hello all,

I am a newbie and would like to clarify the following; but first a quick summary of my simple DNS configuration:

My setup is simple - just a QA lab environment, my initial setup are just 3 hosts:

qatest2 - (DNS server Bind9 on CentOS 5.1)
qatest1 - (DHCP server)
qatest3 -

domain name:

1. I used the Bind Tool to create the default files; and automatically
"import" the /etc/hosts file of qatest2 - which contains the IP, FQDN and
hostname of a all 3 hosts.
2. Added via GUI a "forwarder" option with the IP address of the DNS server of our corporate network which is.
... So that is the simple setup.

At this point, I believe that I have setup a DNS "standard DNS server" (not a Caching Server) (pls correct me if my assumption is wrong.

My question now:

1. I would need to also configure my DNS server (qatest2) so that its /etc/resolv.conf file will contain its own IP as its DNS server, am I right?

2. I tried to do this via the GUI -> Network GUI Settings. I click on the DNS tab and enter the configuration:

hostname - qatest2
Primary DNS -
Search -

3. Upon restarting my network services OR even rebooting the host, the /etc/resolv.conf file is not updated accurately!

a. The /etc/resolv.conf does not reflect the changes I performed in the GUI:

cat /etc/resolv.conf
# generated by NetworkManager, do not edit!
; Use a local caching nameserver controlled by NetworkManager

b. Obviously the nslookups do not work and give me NXDOMAIN outputs.

c. The named status shows it is running:

[root@qatest2 ~]# service named status
number of zones: 8
debug level: 0
xfers running: 0
xfers deferred: 0
soa queries in progress: 0
query logging is OFF
recursive clients: 0/1000
tcp clients: 0/100
server is up and running

d. If I try to edit the /etc/resolv.conf manually; of course it works; but whenever I reboot the file is overwritten by the so-called "Network Manager".

What is the proper way to configure a simple DNS server in CentOS 5.x (or RHEL 5 for that matter?); and how to correctly configure /etc/resolv.conf?

thanks in advance.


> I'm still testing WITHIN the domain. My first question
> (sorry but I sort of forgot):
> 1. Do I have to configure an /etc/resolv.conf file for the DNS server
> itself? Seems like my GUI tool did not create one ...
> 2. Should the /etc/resolv.conf file of the DNS SERVER contain the following
> entries:


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS / resolv.conf newbie question Seventh Linux - Newbie 7 03-20-2007 06:47 AM
resolv.conf won't hold dns johngrinham Linux - Networking 9 07-05-2006 10:39 AM
DNS Hosts.conf or resolv.conf problem mac_casey SUSE / openSUSE 0 03-26-2006 09:21 AM
dns server and /etc/resolv.conf freeosfreesoul Linux - Laptop and Netbook 2 09-02-2005 06:45 PM
DNS & resolv.conf robeb Linux - Networking 1 06-25-2002 09:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:18 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration