Koozali.org: home of the SME Server

dns resolves host to two ip addresses

dwater

dns resolves host to two ip addresses
« on: March 03, 2005, 03:24:09 AM »
Hi,

I just moved a computer from dhcp's dynamic range to it's static range.

Now the computer's hostname resolves to both the addresses :

% host vpn-gateway
vpn-gateway.jingmei.org has address 192.168.189.13
vpn-gateway.jingmei.org has address 192.168.189.109


Why? How can I stop it (should be only 13)?

Max.

PS I knew I shouldn't have picked 13 :(
PPS I miss dnsmasq - it was so much easier, and behaved just as I expected it to.

cc_skavenger

dns resolves host to two ip addresses
« Reply #1 on: March 03, 2005, 04:27:19 AM »
What version of SME?  Have you restarted tinydns and dnscache services?

Just a couple of ideas.

Buddha_Joe

dns resolves host to two ip addresses
« Reply #2 on: March 03, 2005, 05:14:39 AM »
If it still shows up after the above suggestion you can always remove the unwanted entry from the dhcpd.leases file and restart Both DHCP and DNS.

dwater

dns resolves host to two ip addresses
« Reply #3 on: March 03, 2005, 05:42:13 AM »
Quote from: "Buddha_Joe"
If it still shows up after the above suggestion you can always remove the unwanted entry from the dhcpd.leases file and restart Both DHCP and DNS.


I added/changed the address using the server manager. Wouldn't it have restarted any services that needed restarting?

In any case, it looks to have solved itself. Perhaps the services were restarted when I did something else, or maybe it just took a while for the change to take effect (I've heard such things with DNS).

Thanks.

Max.

Buddha_Joe

dns resolves host to two ip addresses
« Reply #4 on: March 03, 2005, 05:53:56 AM »
Reatrating the DNS services won't change what the scripts are transfering from the dhcpd.leases file to the DNS table..

What most likely happened is that that the lease for that particular host that you moved to a static address fianlly ended. the entry was removed by dhcpd and the change propagated to the DNS table. If the dhcpd server got restarted some how I believe it would have the same affect.. I'm just learning this stuff so for give me LOL.