LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Before setup DNS and after DNS question (https://www.linuxquestions.org/questions/linux-enterprise-47/before-setup-dns-and-after-dns-question-774803/)

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 http://www.linuxhomenetworking.com/w...onfiguring_DNS

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 :)
sg

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. 192.168.0.50 - 192.168.0.254. Then you can give your DNS server an IP address somewhere between 192.168.0.2 - 192.168.0.49 assuming your router is at 192.168.0.1.

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 - http://www.zytrax.com/books/dns/ .. please read it thoroughly.

cheers

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 = 123.123.123.123 my isp dns server

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

Thanks,
SG

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

cheers

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?

Quote:

[root@dns /]# dig @192.168.20.101 beautyatlee.com any

; <<>> DiG 9.3.6-P1-RedHat-9.3.6-4.P1.el5 <<>> @192.168.20.101 beautyatlee.com 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

;; QUESTION SECTION:
;beautyatlee.com. IN ANY

;; ANSWER SECTION:
beautyatlee.com. 259200 IN SOA ns1.beautyatlee.com. hostmaster.beautyatlee.com. 200211152 3600 3600 3600 3600
beautyatlee.com. 259200 IN NS www.beautyatlee.com.
beautyatlee.com. 259200 IN MX 10 mail.beautyatlee.com.

;; ADDITIONAL SECTION:
mail.beautyatlee.com. 259200 IN A 123.243.204.63

;; Query time: 0 msec
;; SERVER: 192.168.20.101#53(192.168.20.101)
;; WHEN: Fri Dec 11 13:14:31 2009
;; MSG SIZE rcvd: 139
Thanks

kbp 12-10-2009 11:31 PM

Yes, configure forwarders in named.conf

Something like:

Code:

options {
  forwarders { 12.34.56.78; 23.45.67.89; };
    };

.. just realised there's a sample config:

http://www.zytrax.com/books/dns/ch6/#forwarding

cheers

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?

Thanks,
SG

kbp 12-13-2009 09:47 PM

Take a look at the 'rndc' command

cheers


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