How to update Windows DNS server with Linux DHCP client hostname?
ignored_mailbox at yahoo.com.au
Fri May 25 02:27:38 UTC 2007
>> I haven't run DNS+DHCP where Windows was the server, mine's the other
>> way around. Perhaps you should post your /etc/dhclient-*.conf script.
> Right now, it looks like:
> send fqdn.fqdn "engr.ourdomain.local.";
> send fqdn.encoded off;
The man file suggests the encoding depends on the server.
> send fqdn.server-udpate off;
I'd expect you want that on. You're hoping the DNS records will get
updated with your DHCP details. A gotcha is that some servers won't
update the records until after some delay, so if you test for changes
too soon, you mightn't get the results you expect (that depends on how
you test, though). It's supposed to be a delay in rewriting the zone
record files (for file system efficiency reasons), not a delay in having
an answer to queries, though.
Other things mentioned in the man files is using a common authentication
key file between client and server. That prevents rogues diddling
things. It may be required on your system.
Going from memory, what I've read about configuring this, the usual
practice is for you to request a particular "hostname", and to re-use
your last IP address (specifying it explictly), the server may honor
either of those requests. It may tell you a hostname that you will be
given, and it allocates you an IP address, and tells you the domain
name. (And that means "hostname" in the sense of a single word to be
prepended to a domain name.)
Of the one Fedora boxes I have, here, using DHCP to get allocated an
address, it has just one line it its /etc/dhclient-eth0.conf file:
send host-name "serge"; # temporary RHL ifup addition
That's to a DHCP server running on a FC4 box, though. And my DHCP and
DNS servers, on that FC4 box, are co-operating together. My server's
been configured to send specific answers for the server-name,
ddns-domainname, ddns-rev-domainname, option domain-name, amongst other
parameters, which the client makes use of in determining what it's FQDN
(This box runs FC5, my others run FC4 & FC6, in case that's
important to the thread.)
Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.
More information about the users