Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-20-2008, 07:31 PM   #1
LQ Newbie
Registered: Dec 2008
Posts: 10

Rep: Reputation: 0
DHCP autoupdate DNS issue (wrong hostname)

So, I have setup DHCP to auto-update my DNS including static IP address. Works like a champ.

However, there are some hosts (tivo and HP printer for example) which use their own hostname rather than the one I specify in my DHCP.

For example, in my dhcpd.conf I might have:

host tivo
{ hardware ethernet <yada yada>;

But what I get in my hosts file is:
TIVO-24000008057EE7D A

How can I get it to register the hostname of my choice over-riding what the client is specifying?
Old 12-20-2008, 11:18 PM   #2
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
You should add the option host-name="name" to your reservation; if your dhcpd.conf controls the DDNS name update, you should also include the ddns-hostname and ddns-updates=on directives as so:

        host cobbler # vmware
                hardware ethernet 00:xx:xx:xx:xx:xx;
                option host-name="cobbler";
                ddns-updates on;
                ddns-hostname "cobbler";
Note that this will only work if the client is set up to accept a hostname from the dhcp server; some (dumb) appliances will insist on referring to themselves by their hardcoded names.
Old 12-21-2008, 07:23 AM   #3
LQ Newbie
Registered: Dec 2008
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks. I already have turned on DDNS updates for static IPs, so that is covered.

I will give those two a try and see.

Otherwise, I suppose I can just add aliases...

Any way of doing that?


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 and DHCP issue vortmax Linux - Networking 4 05-31-2007 06:13 PM
DHCP handing out the wrong dns servers PCC Linux - Networking 2 05-17-2007 07:25 PM
Suse static ip + dns autoupdate AhYup SUSE / openSUSE 1 08-23-2005 03:11 AM
Wrong Hostname in the DNS and DHCP Address Leases of Windows 2000 saneax Linux - Networking 1 03-03-2005 03:14 AM
Red Hat and DHCP/DNS issue. tel1jag Linux - Software 9 05-30-2003 05:48 PM > Forums > Linux Forums > Linux - Networking

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

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
Open Source Consulting | Domain Registration