I am having some issues where the GetHostEntry function doesn’t return the NEW ip address after a DNS change has been done.
I have verified using NSLOOKUP on a PC against the same DNS server that the GHI module is using, and I get different results.
For me it looks like the System.dll function GetHostEntry caches the value and returns the old one…
This behaviour has been identified in 3.x runtime and in the latest 4.1 runtime.
Even changing DNS server in code - to point to another DNS server that also has the new value - doesnt help - it returns the old value.
Hell, even after removing the LAN cable the function returns the old value…
Interesting. Perhaps you could check the actual ethernet packet DNS query using netmon or wireshark to see if it’s even transmitted and if the correct response is returned from DNS but ignored in netmf.
I dont think that the DNS function actually re-queries the DNS server, it responds with a cached result.
How would you explain that even removing the LAN cable still gets the old IP address ?
And Joe,
I am afraid of doing this as I may have other TCP connections open that may get interruped.