<p dir="ltr">Hi I just have a quick question,<br>
I have recently set up dynamic dns with dhcp 4 and bind 9.<br>
Everything is working as it should except for a handful of hosts on the network which don't resolve. Upon investigating I found they had been dynamically added into the bind zone file but they had their host name appended with the domain name.</p>

<p dir="ltr">for example server1 is fine but server2 wont resolve:</p>
<p dir="ltr">    $TTL 1800      ; 30 minutes<br>
    server1                     A       192.168.0.10<br>
                        TXT     "00ecbb5990a60bb0b138272611cae0f56d"<br>
    <a href="http://server2.reh.favsys.net">server2.reh.favsys.net</a>    A       192.168.0.11<br>
                        TXT     "00ecbb5990a60bb0b138272611cae0f56d"</p>
<p dir="ltr">I checked out server2 to see what was different<br>
I found that in the /etc/sysconfig/netowrk-scripts/ifcfg-eth0 file the <br>
DHCP_HOSTNAME option was set with a fqdn:<br>
DHCP_HOSTNAME=<a href="http://server2.my.domain.net">server2.my.domain.net</a><br>
where as server1 had just the host name:<br>
DHCP_HOSTNAME=server1<br></p>
<p dir="ltr">Right so I guess I just have to find all the servers with this problem and change the interface file to just contain the host name.</p>
<p dir="ltr">That's fine and could be done but is this the right way to configure the interface file?<br>
should the the DHCP_HOSTNAME option be an unqualified name.</p>
<p dir="ltr">Or is there a setting I can turn on in the DHCP server's configuration file to stop this kind of behaviour from happening. If there was a way to configure dhcp to disregard the domain part if a client sent in its host name fully qualified I would much rather take this approach.</p>

<p dir="ltr">my current dhcpd.conf options are:</p>
<p dir="ltr">    include "/etc/rndc.key";<br>
    ddns-update-style interim;<br>
    ddns-domainname         "<a href="http://my.domain.net">my.domain.net</a>.";<br>
    ddns-rev-domainname     "in-addr.arpa.";<br>
    ddns-updates            on;<br>
    ignore client-updates;<br>
    option domain-search "<a href="http://my.domain.net">my.domain.net</a>";<br>
    default-lease-time 1800;<br>
    max-lease-time 7200;<br>
    log-facility local7;<br>
    authoritative;<br></p>
<p dir="ltr">I also tried configuring the dhcp server with allow client-updates to see if it would make a difference. However this just led to a dynamic update entry in the zone file like this:<br></p>
<p dir="ltr">    $ORIGIN <a href="http://my.domain.net">my.domain.net</a>.<br>
    $TTL 1800   ; 30 minutes<br>
    server1                     A       192.168.0.10<br>
                        TXT     "009ddasdr32rfdsfksdfpdsadsad3343fcdsd"<br>
    $ORIGIN <a href="http://my.domain.net.my.domain.net">my.domain.net.my.domain.net</a>.<br>
    server2             A       192.168.0.11<br>
                        TXT     "dasdasdsadasdsddvc0b1382726dsdadasdsd"<br></p>
<p dir="ltr">A new origin was created with the domain name repeated and the host name was still not resolvable.</p>
<p dir="ltr">I would really appreciate any pointers on the correct way to configure sending host names from clients  when using dhcp and bind for ddns thanks.<br>
</p>