Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-25-2011, 02:28 AM   #1
LQ Newbie
Registered: Dec 2011
Posts: 3

Rep: Reputation: Disabled
How to install DNS Server on a DHCP client


i was trying to setup a dns server here :

it looked like the only missing piece was forwarding other requests outside of my test domain, which i was about to test when i noticed that my machine has dynamic ip.

is it possible to setup a dns server that gets its ip as a dhcp client, and how?
Old 12-25-2011, 02:48 AM   #2
Registered: Apr 2009
Location: Melbourne
Distribution: Fedora & CentOS
Posts: 854

Rep: Reputation: 191Reputation: 191
Yes its possible. Look into dynamic DNS,

Although i have never used it, so i cant be of much more help than that.
Old 12-26-2011, 01:02 AM   #3
Registered: Dec 2011
Posts: 32

Rep: Reputation: 8
Originally Posted by sailE View Post
is it possible to setup a dns server that gets its ip as a dhcp client, and how?
If you are using bind/named just don't set the listen-on option in named.conf it defaults to "any".

This means that when bind starts it will bind to the address it got from the dhcp server and and start listening on both IPs on port 53.
1 members found this post helpful.


bind9, dns, dnsserver

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
Configure DHCP client to register itself to DNS server sufiah Red Hat 2 08-25-2010 02:16 PM
Problem on acquiring IP addr. on client from dhcp server through dhcp relay server haariseshu Linux - Server 5 08-10-2009 01:20 AM
DHCP RH-linux-client, windows-server, DNS-registration not happening armadilloman Linux - Networking 5 01-12-2009 08:53 AM
dhcp client .. not setting gateway and dns server scabrous1 Linux - Networking 1 05-09-2006 10:31 AM
configuring dns server on dhcp client ydpk Linux - Networking 3 11-04-2004 10:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:58 PM.

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