LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 12-10-2009, 04:34 PM   #1
sportivo888
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Rep: Reputation: 0
Question 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
 
Old 12-10-2009, 05:40 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 12-10-2009, 06:16 PM   #3
sportivo888
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 12-10-2009, 06:36 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 12-10-2009, 08:17 PM   #5
sportivo888
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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
 
Old 12-10-2009, 11:31 PM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
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
 
Old 12-13-2009, 05:39 PM   #7
sportivo888
LQ Newbie
 
Registered: Dec 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you for your guide kbp ,

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

Thanks,
SG
 
Old 12-13-2009, 09:47 PM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Take a look at the 'rndc' command

cheers
 
  


Reply


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
A DNS learner's question->Is my DNS configuration right? saagar Linux - Newbie 4 01-12-2009 08:44 AM
Debian Etch Gateway setup, DNS server question. jvedi Linux - Networking 4 10-04-2008 12:55 AM
Win2k3 DNS + PFsense DNS Forwarder = No internal DNS resolution Panopticon Linux - Networking 1 11-19-2007 09:59 PM
Does this DNS setup look correct and question about what IP to point to? Oskare100 Linux - Server 2 11-30-2006 03:46 PM
DNS setup question radam Linux - Networking 9 08-07-2004 05:47 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

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

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