Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20867 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

#272688 9-Jul-2020 13:23
Send private message

I occasionally connect to a VPN for work, using the Windows 10 VPN built in service. It's configured automatically by group policy, and used to work fine for me. Recently it's stopped resolving DNS servers through the VPN. I know the VPN is fine as I can ping IPs down the VPN and I can use nslookup to do DNS queries if I specify the server. I don't know what caused the problem - I got a new laptop set up a bit differently from my old one, and I started using Pi Hole DHCP and Pi Hole DNS.

 

When the VPN isn't connected everything works fine. DHCP on the Pi Hole hands out IPs and sets my DNS servers as the Pi Hole. All good.

 

When I connect the VPN I expect Windows to know that it should send DNS queries to the DNS servers configured on that network interface, but it doesn't. If I explicitly tell nslookup to use the DNS server behind the VPN it works fine.

 

Question: How can I get Windows to send DNS queries to all DNS servers configured on a network interface?

 

Network Interfaces

 

Here's the relevant parts of my ipconfig/all information (some info redacted)

 

Ethernet adapter Ethernet 6:

 

   Connection-specific DNS Suffix  . : lan
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
                                       192.168.1.1
   DHCP Server . . . . . . . . . . . : PI HOLE IPv4
   DNS Servers . . . . . . . . . . . : PI HOLE IPv6
                                       PI HOLE IPv4

 


PPP adapter (work VPN)

 

   DHCP Enabled. . . . . . . . . . . : No
   Autoconfiguration Enabled . . . . : Yes
   IPv4 Address. . . . . . . . . . . : 172.(removed)
   Subnet Mask . . . . . . . . . . . : 255.255.255.255
   Default Gateway . . . . . . . . . :
   DNS Servers . . . . . . . . . . . : 172.(removed)
                                       172.(removed)

 

 

 

Here's two NSLookups

 

>> nslookup internal.domain.name 172.0.0.1
Server:  (internal DNS server name)
Address:  172.0.0.2 (success)

 

>> nslookup internal.domain.name
Server:  pihole2
Address:  fd00::6686:5777:95b:90db

 

*** No internal type for both IPv4 and IPv6 Addresses (A+AAAA) records available for internal.domain.name (failure)

 

 

 

 


Create new topic

This is a filtered page: currently showing replies marked as answers. Click here to see full discussion.

timmmay

20867 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #2523905 16-Jul-2020 08:29
Send private message

I solved this by disabling IPv6 on the network connection associated with the VPN. I did this by going into "view network connections", right clicking on the network connection, choosing properties, and unchecking "Internet Protocol Version 6".

 

My assumption (could be wrong) is that IPv6 is used in preference to IPv4 by Windows, and the VPN only offers IPv4.


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.