Coming here from my post on stackoverflow.
I have a webserver hosted on my company's VPN with a domain name, company.domain, registered in a private DNS hosted on the same VPN. When I connect to the VPN and configure the DNS settings on my Windows 10 work pc I am still not able to connect to the webserver because my browser wont use the configured DNS and therefore cant resolve the domain name.
When I try to resolve the IP with nslookup
I get the following result:
nslookup company.domain
Server: UnKnown
Address: fe80::1
*** UnKnown can't find company.domain: Non-existent domain
However, if I disable IPv6, as SaschaM78 mentioned in his response to a similiar post, nslookup
is able to resolve the IP but my browser displays an error message stating "company.domain didn’t send any data". Looking at Wireshark, I cant see any DNS requests while IPv6 is enabled but once disabled I can see packets being sent to the configured private DNS including the queries from my browser. Public internet domains are resolved without any issue but not company.domain pointing to the private IP of the webserver.
If i check the box "Validate settings upon exit" while configuring the IPv4 DNS settings the Windows troubleshooter is run but prompts that it "could't identify the problem"
I have tried different browsers; Brave, Firefox and IE but the issue persists.
I have tried reinitializing some network settings mentioned by Tim Penner and I have checked everything mentioned by Mathew1471 in their response to similiar questions.
If I configure my other machine running Ubuntu by adding the DNS as an entry in resolv.conf
everything works fine so the issue is obviously related to Windows 10.
I gave up on trying to resolve this issue and figured it would be easier to simply run a local DNS proxy with a rule that maps the domain name to the IP of the webserver. I have tried both Acrylic and DNSAgent but neither seem to work unless I configure both IPv4 and IPv6 DNS to localhost which, from my previous post, does not seem to be possible to do programmatically.
Any help would be highly appreciated!