I have a linux client that when i restart it doesnt answer my ping requests on its DNS name, but it does on its IP. Say that i have a hostname of "Linux" with ip "192.168.1.100" .. My router is working as a DNS gateway, which another client (my pc) is set to use. Same goes for the Linux Client..
When the Linux client is online, i can ping it using both the IP and DNS from my PC.. If i then restart the linux client, and continue to ping its ip address and dns from my pc, i will ofcourse stop getting responses while its restarting, however i will begin getting responses when its back up, but only from the IP address, not from the DNS.. Why is this? The short time the linux machine has been offline shouldnt change any DNS records should it?
I will continue to not get replies from its DNS name for a longer time, unless i do a ipconfig /flushdns
on my pc, then i immediately begin getting replies from DNS ping requests. However i do not understand why the flushing is neccesary as the linux clients ip hasn't changed.
Is there a way to fix this ? Is it something i have to configure on the linux device somehow ?
nslookup
for the host before you flush dns? and after?