LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-17-2003, 09:33 PM   #1
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Rep: Reputation: 30
Dns / Dhcp


Hi guys,

I thought I'd ask the question before I actually do it, I'm pretty sure it could be done but I want to be certain.

I want to set up one Red Hat 9 server to act as both a DHCP and a DNS server. The host machines connecting to the network will be Windows machines, and about 15 -20 of them.

When one of the Windows clients obtain an IP from the DHCP server, I want the DNS to automatically update so each machine can do resolve IP to name, and name to IP.

Can this be done so after the server is set up properly there is little to do afterwards in regards to updating the DNS etc.

Thanks alot.

Regards
Craig
 
Old 09-17-2003, 10:40 PM   #2
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
This works with no problems. I'm not going to go into too much detail on how to set this up because Google can point you to some detailed info. But the highlights are:
  • In /etc/dhcpd.conf, you will need ddns-updates on and ddns-domainname
  • In /etc/named.conf, you will need allow-update.
  • In both files you will need to setup a key for security purposes.

One other thing to note. I recall that when I had a Linux (RH9) DHCP client things didn't work properly. That was because the client did not send its hostname to the server. There is a configuration option to fix that, but I don't know it offhand.
 
Old 09-17-2003, 10:44 PM   #3
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Thanks for your help mate.

I'll start googling.

Thanks again.

Regards
Craig
 
Old 09-18-2003, 06:38 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
i never managed to get ddns working correctly, the keys were annoying me for motnsh and i gave up. if you're after a much much lower level approach that's really easy to configure, try dnsmasq, which is a small dns server which can monitor changes in your dhcpd.leases file and server dns queries based directly on the contents (as well as external dns queries etc...) worth a go if you don;t need to full scale assault of bind,
 
Old 09-18-2003, 05:06 PM   #5
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hi acid,

So if I get dnsmasq downloaded and installed, that should meet my needs? A self updating dns server (for windows clients) ? That's really all I want to work.

Thanks for your reply
>Craig
 
Old 09-18-2003, 05:11 PM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
as long as you can run it local to your dhcpd server, or have similar suitable access to the lease file yeah. I know that i should be spending even more time getting bind nailed down so hard, but i have a 4 client netowrk, and no need at all for anythign more than what dnsmasq can set up in minutes.
 
Old 09-18-2003, 05:23 PM   #7
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
thanks heaps

>Craig :
 
Old 09-18-2003, 08:05 PM   #8
TheRealDeal
Member
 
Registered: Jun 2003
Location: Central Coast, NSW, Australia
Distribution: Gentoo
Posts: 438

Original Poster
Rep: Reputation: 30
Hi again,

Sorry to post again, just one last question. I've downloaded and installed dnsmasq from the "thekelleys" official website. There isn't much info on their site in regards to configuring it.

I have installed dnsmasq on my dhcpd server. Is there any file which I should be configuring? It doesn't just automatically do everything does it?

Thanks
Craig
 
Old 09-19-2003, 02:17 AM   #9
Robert0380
Guru
 
Registered: Apr 2002
Location: Atlanta
Distribution: Gentoo
Posts: 1,280

Rep: Reputation: 47
another solution to the whole thing:

setup DHCP so that each computer gets the same ip each time it requests one. that way you leave out ddns altogether.
this would involve getting the MAC address from each machine which leaves some room for error but it may be a little more straight forward.
 
Old 09-19-2003, 04:57 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
just check the dnsmasq man page, it's all there including config file locations.
 
  


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
Dns + Dhcp james.farrow Linux - Networking 0 06-01-2004 09:15 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 10:40 AM
DHCP / DNS Help!! muzicman82 Linux - Wireless Networking 4 02-25-2004 04:59 PM
Dns +dhcp james.farrow Linux - Networking 1 07-04-2003 09:17 AM
dhcp and dns tangle Linux - Networking 7 09-26-2002 06:20 PM


All times are GMT -5. The time now is 08:15 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration