LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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-19-2002, 08:48 AM   #1
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Rep: Reputation: 71
dhcp and dns


does anyone know how to setup dhcp to automatically update dns like windows does? Thanks
 
Old 09-19-2002, 01:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
on the server side i presume you mean? it's possible on dhcpd 3.0+check the docs that are out there. i've tried in the recent past and had no success at all though! There are proprietry solutions availble though... but presumably you want open source.
 
Old 09-19-2002, 10:38 PM   #3
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
On the server side, do you have a line:

option domain-name-servers <your DNS IP>

in your dhcpd.conf file?

On the client side, running dhcpcd should make temporary changes to your /etc/resolv.conf file based on what the dhcp server sent to you.

If you mean that your DNS server is changing after starting the server or client, I don't have a solution.

-bbeers
 
Old 09-19-2002, 10:57 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Original Poster
Rep: Reputation: 71
I may not have asked the question right. In Windows when a client receives a lease from a DHCP server. The server updates the name to IP address on the DNS server. This makes it easy. I was wondering it there is a way to set this up using BIND and DHCP on a Linux box? Sorry for the confusion.
 
Old 09-19-2002, 11:26 PM   #5
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Is that a named config option? Have you looked at

http://www.tldp.org/HOWTO/DNS-HOWTO.html

Sorry, I don't know any more.

-bbeers
 
Old 09-20-2002, 05:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
tangle.. that was the question i tried to answer... you also need to make sure you send a hostname from the client (DHCP_HOSTNAME=whatever in ifcfg-ethX). you will need a lot of security stuff in there though, which is where i got stuck.
 
Old 09-24-2002, 10:35 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
reading Linux Format in the newsagents today, i saw this link...

http://www.heronforge.net/~stephen/D.../dhcp-dns.html
 
Old 09-26-2002, 07:20 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,745

Original Poster
Rep: Reputation: 71
Thanks acid_kewpie, that looks like it will work.
 
  


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 10:15 AM
forward dns from dhcp to dhcp Fark Linux - Networking 3 03-31-2004 11:40 AM
DHCP / DNS Help!! muzicman82 Linux - Wireless Networking 4 02-25-2004 05:59 PM
Dns / Dhcp TheRealDeal Linux - Networking 9 09-19-2003 05:57 AM
Dns +dhcp james.farrow Linux - Networking 1 07-04-2003 10:17 AM


All times are GMT -5. The time now is 02:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration