-   Linux - Networking (
-   -   DHCP autoupdate DNS issue (wrong hostname) (

ScottChapman 12-20-2008 08:31 PM

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?

mackdav 12-21-2008 12:18 AM

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.

ScottChapman 12-21-2008 08:23 AM

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?

All times are GMT -5. The time now is 05:20 AM.