-   Linux - Enterprise (
-   -   Before setup DNS and after DNS question (

sportivo888 12-10-2009 04:34 PM

Before setup DNS and after DNS question
Hi All,

I have a few question regard to setting up a LAN dns.
  1. Do i require to setup DHCP server before setup DNS?
  2. I think i have setup DNS already but don't know if it's correct, how to dns?
  3. if my dns correct, how come i can't add an xp client to the domain?
  4. do i have to configure more file?
I have setup my configuration from this website

Oh, by the way i use bind-chroot directory.
i use router dhcp server at the moment
i have spend a month to do, i have too muc information on other site and i got confuse,

i can post the config of the named.conf if you require

Thanks in advance :)

kbp 12-10-2009 05:40 PM

DNS and DHCP provide 2 different functions and do not depend on each other, I'd suggest you leave the router performing DHCP but reduce the range of addresses it provides - eg. - Then you can give your DNS server an IP address somewhere between - assuming your router is at

Unfortunately, correct DNS setup will require some reading otherwise you may be opening yourself up to exploitation. There is a great book that is available online - .. please read it thoroughly.


sportivo888 12-10-2009 06:16 PM

does dhcp server also distribute dns to it client, when xp client has request for an ip address from dhcp server?

it is a great site you give me, i will spend time to read.
  1. How come i can't add domain on my xp client?

i did setup on my router
dns 1 = 192.168.20.x my dns server
dns 2 = my isp dns server

my xp client did pick up these setting after that i have change in the router.


kbp 12-10-2009 06:36 PM

Usually you would configure the workstations with only your internal dns server/s ip address, then configure forwarders in your dns server/s to resolve external domains


sportivo888 12-10-2009 08:17 PM

does the forwarder setup in the named.cond file?
i have test the server, below are the result does it make sense?


[root@dns /]# dig @ any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> @ any
; (1 server found)
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49290
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 1


;; ANSWER SECTION: 259200 IN SOA 200211152 3600 3600 3600 3600 259200 IN NS 259200 IN MX 10


;; Query time: 0 msec
;; WHEN: Fri Dec 11 13:14:31 2009
;; MSG SIZE rcvd: 139

kbp 12-10-2009 11:31 PM

Yes, configure forwarders in named.conf

Something like:


options {
  forwarders {;; };

.. just realised there's a sample config:


sportivo888 12-13-2009 05:39 PM

Thank you for your guide kbp :),

si there a command to test if my DNS server status is running local or external?


kbp 12-13-2009 09:47 PM

Take a look at the 'rndc' command


All times are GMT -5. The time now is 08:29 PM.