DNS TTL not honoured

Posted by Cipri on Tue 06 Jun 2006 11:07 PM — 4 posts, 17,505 views.

Netherlands #0
A MOO I run changed IP's today.
I had set the TTL on the DNS record to 1 minute in preparation for this. After the change I tried to reconnect, but couldn't. The popup warning I got still contained the old IP.
I pinged the IP and the host and everything looked fine. I then ran ipconfig /flushdns, repinged and everything looked good.
I then tried MUSHclient again but still no change. It wasn't untill I restarted the world that MUSHclient would finally connect.
USA #1
MUSHclient shouldn't have to worry about DNS TTLs; that's Winsock's job. What might be happening is that MUSHclient looks up the domain name once, and then stores the IP address and uses that from then on; sounds like in order to fix this problem, it would suffice to always look up the host's IP address on connection.

It could also be a Winsock issue where its internal state needs to be flushed or something like that, and closing/restarting the world in MUSHclient does something to Winsock that causes it to flush its caches.
Netherlands #2
As the General\Info page of the world properties dialog contains the IP address, I'd guess MUSHClient stores the resolved IP in memory somewhere too, yeah :)
Australia Forum Administrator #3
See:

http://www.gammon.com.au/scripts/doc.php?function=ResetIP