0

Agaoin, this is on Windows 10. I'm bringing in a new Ubuntu test web server (hpmicro1.lovelady.com) to our internal network, which is all in the lovelady.com domain. There's a DNS server on another machine that handles all DNS lookups.

PC configuration for DNS is:

DNS configuration

When I ping the web server by name, I get 192.168.1.5:

DNS resolution

I have rebooted within the last five minutes.

Now, at a Chrome or Firefox or even Edge (which I usually avoid like the plague) web browser, when I access the server by name, I get a failure:

Failed when using hostname

But when I access via IP address, I have success:

Success via IP address

So it looks to me like the DNS lookup either isn't happening at ANY of the web browsers, or they're getting results different from the commandline ping. How can I diagnose this, and - more to the point - how can it be fixed?

11
  • You appear to be accessing two completely different machines. Jul 19, 2021 at 15:36
  • Could also be a wrong VirtualHost configuration on the server. Jul 19, 2021 at 17:16
  • Yes, that is the point, @MichaelHampton. How can that be? How can I find what Chrome (or Firefox or Edge) is using for an IP address here, and how can I cause the right values to be used?
    – Dennis
    Jul 19, 2021 at 17:26
  • Not sure what you're saying @GeraldSchneider. Since this is apparently two different servers (one mine, and one somewhere out there in etherland...), what are you suggesting I have a look at to resolve? The one that belongs to me (definitely, on the 192.168 net) seems to work fine....
    – Dennis
    Jul 19, 2021 at 17:29
  • 1
    The rest of the world thinks the IP address is 206.188.192.244 because that's what it is in the global DNS. What's going on here? Jul 19, 2021 at 17:55

2 Answers 2

1

Apparently under some circumstances, the Windows client would try to get the address of HPMICRO1.... from 8.8.8.8

This isn't a Windows bug, this is by design. You configured the Windows DNS client with a primary and a secondary DNS server. The primary server failed to respond so the Windows DNS client queried the secondary server. That's the perfectly desired behavior. Would you rather it fail on querying the primary and not query the secondary? Are you implying that other DNS clients don't behave the same? That they'll only query a single DNS server? You seem to be trying to make this a "Windows is at fault" screed when in fact, the Windows DNS client is behaving exactly as it was designed to. If the primary server doesn't respond, then try the secondary, then the tertiary, etc. This isn't a client issue, it's a server issue. Check your DNS server, that's where the problem lies.

I'm not sure what caused Windows to do that.

I've given you a link to the article that explains the behavior. It isn't a mystery. It's working as it was designed to, the same way every other DNS client resolver is designed for the same behavior. Query the primary, no response, query the secondary, and so on, and so on.

2
  • There is no evidence that the DNS failed to respond.. only that windows had two results concurrently. Shouldn’t be, and wouldn’t on other platforms. Not like others as far as caching results is concerned, but I’m done with this. The solution was to eliminate the second DNS. Why that results in a need to defend Windows is a mystery I won’t further ponder.
    – Dennis
    Jul 20, 2021 at 1:44
  • "There is no evidence that the DNS failed to respond". Likewise, you haven't presented evidence that it did respond. I'm merely telling you what the Windows DNS client is designed to do and cited Microsoft's documentation. Take it as you will. The Windows DNS client is not at fault here.
    – joeqwerty
    Jul 20, 2021 at 1:54
0

Apparently that DNS configuration I showed in the question was a poor idea. Removing the secondary DNS server resolved the issue. Apparently under some circumstances, the Windows client would try to get the address of HPMICRO1.... from 8.8.8.8, and of course that returned the catchall. I'm not sure what caused Windows to do that (I doubt anyone knows why Windows does anything ;| ) but after consideration, that secondary DNS was never going to do what I wanted.

This problem has been resolved by removal of the external (secondary) DNS from the configuration.

3
  • This isn't a Windows DNS client issue. This is a DNS server issue in that the DNS server configured as the primary DNS server for the DNS client isn't responding to the query. That's where I'd look for the problem. - docs.microsoft.com/en-us/troubleshoot/windows-server/networking/…
    – joeqwerty
    Jul 19, 2021 at 21:41
  • Agreed. Probably not a Windows issue in this case. But nobody can prove (at this point, nor will I put more time into it) that Windows did what it was supposed to do. Anyway, as I implied, I consider it a client configuration issue. @joeqwerty
    – Dennis
    Jul 19, 2021 at 23:00
  • @joeqwerty I will say that most OS will use one source, with some sort of cache, for DNS resolutions. Windows returning one address for PING and a different address for HTTP requests demonstrates that that’s not happening. And I doubt that is supportable as a feature, which puts it on the other side of that feature/bug line IMO.
    – Dennis
    Jul 19, 2021 at 23:08

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .