LinuxQuestions.org
Support LQ: Use code LQ3H and save $3 on Web Hosting
Go Back   LinuxQuestions.org > Forums > Linux > 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
 
Thread Tools
Old 09-19-2002, 07:48 AM   #1
tangle
Senior Member
 
Registered: Apr 2002
Location: Holmesville, Ohio
Distribution: Slackware
Posts: 1,687
Thanked: 0
dhcp and dns


[Log in to get rid of this advertisement]
does anyone know how to setup dhcp to automatically update dns like windows does? Thanks
tangle is offline     Reply With Quote
Old 09-19-2002, 12:06 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 32,416
Thanked: 102
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.
acid_kewpie is offline     Reply With Quote
Old 09-19-2002, 09:38 PM   #3
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 255
Thanked: 0
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
bbeers is offline     Reply With Quote
Old 09-19-2002, 09:57 PM   #4
tangle
Senior Member
 
Registered: Apr 2002
Location: Holmesville, Ohio
Distribution: Slackware
Posts: 1,687
Thanked: 0

Original Poster
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.
tangle is offline     Reply With Quote
Old 09-19-2002, 10:26 PM   #5
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 255
Thanked: 0
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
bbeers is offline     Reply With Quote
Old 09-20-2002, 04:57 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 32,416
Thanked: 102
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.
acid_kewpie is offline     Reply With Quote
Old 09-24-2002, 09:35 AM   #7
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 32,416
Thanked: 102
reading Linux Format in the newsagents today, i saw this link...

http://www.heronforge.net/~stephen/D.../dhcp-dns.html
acid_kewpie is offline     Reply With Quote
Old 09-26-2002, 06:20 PM   #8
tangle
Senior Member
 
Registered: Apr 2002
Location: Holmesville, Ohio
Distribution: Slackware
Posts: 1,687
Thanked: 0

Original Poster
Thanks acid_kewpie, that looks like it will work.
tangle is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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 TheRealDeal Linux - Networking 9 09-19-2003 04:57 AM
Dns +dhcp james.farrow Linux - Networking 1 07-04-2003 09:17 AM


All times are GMT -5. The time now is 07:20 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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration