LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-20-2008, 07:31 PM   #1
ScottChapman
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>;
fixed-address 192.168.1.10;
}

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

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
mackdav
Member
 
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:

Code:
        host cobbler # vmware
        {
                hardware ethernet 00:xx:xx:xx:xx:xx;
                fixed-address 10.0.10.17;
                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
ScottChapman
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?
 
  


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 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/Novell 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


All times are GMT -5. The time now is 05:33 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