DNS Server failed

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
tperrin
OpenVpn Newbie
Posts: 1
Joined: Tue Jan 11, 2022 4:02 pm

DNS Server failed

Post by tperrin » Sat Jan 15, 2022 9:08 am

Hello everyone,

I am using a OpenVPN server running on a pfsense to connect to a network remotely.

Once I get connected, everything works fine in terms of pure networking, I can connect to any IP on any port without any problem, except that I cannot request DNS information.

The config works (ie I get the DNS servers on my TAP connection), I can ping the DNS server, but if I open a nslookup and point to that server to request an address, any request answers with "Server failed".

Of course the DNS works because every server inside my network can use it properly, and there is only via VPN that this problem appears.

Any help is more than welcome.

Code: Select all

dev tun
persist-tun
persist-key
ncp-disable
cipher AES-256-CBC
auth SHA256
tls-client
client
resolv-retry infinite
remote 10.24.1.250 42229 tcp4
auth-user-pass
ca pfsense-TCP4-42229-ca.crt
tls-auth pfsense-TCP4-42229-tls.key 1
remote-cert-tls server
ipconfig :

Code: Select all

Unknown adapter OpenVPN TAP-Windows6:

   Connection-specific DNS Suffix  . : mynetwork.local
   Description . . . . . . . . . . . : TAP-Windows Adapter V9
   Physical Address. . . . . . . . . : 00-FF-AB-E0-C8-2D
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::f06a:a34c:aa35:f773%21(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.249.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Tuesday, January 11, 2022 10:26:28
   Lease Expires . . . . . . . . . . : Wednesday, January 11, 2023 10:26:28
   Default Gateway . . . . . . . . . :
   DHCP Server . . . . . . . . . . . : 192.168.249.254
   DHCPv6 IAID . . . . . . . . . . . : 1275133867
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-28-9E-AA-F9-98-E7-43-62-26-C7
   DNS Servers . . . . . . . . . . . : 192.168.100.1
                                       192.168.100.2
   NetBIOS over Tcpip. . . . . . . . : Enabled
   
When trying to query my DNS server :

Code: Select all

>nslookup server.mynetwork.local 192.168.100.1
Server:  UnKnown
Address:  192.168.100.1

*** UnKnown can't find server.mynetwork.local: Server failed
The DNS server is an active directory controller with DNS role, and works for everyone in the local network with no issue at all.

Any ideas?

Post Reply