DNS resolution for OpenVPN cleints



  • Hello all

    Trying to clarify some settings related to my DNS server and OpenVPN clients

    I see in information my DNS as:

    DNS server(s)
    127.0.0.1
    8.8.4.4
    156.154.71.1
    129.250.35.251

    My OpenVPN client log shows:

    2017-06-18 09:41:24 OPTIONS:
    0 [route] [192.168.90.1] [255.255.255.0]
    1 [redirect-gateway] [def1]
    2 [route-gateway] [192.168.2.1]
    3 [topology] [subnet]
    4 [ping] [10]
    5 [ping-restart] [60]
    6 [ifconfig] [192.168.2.3] [255.255.255.0]

    I'd like OpenVPN clients be able to resolve hosts by name, but not sure how to make it happen

    Thx in advance!



  • In the OpenVPN setting enable 'DNS Server enable'.

    Verify DNS1 is your own local server.



  • i tried that so far with no luck :(

    my Subnet 192.168.90.0

    i enabled in VPN-OpenVPN-Servers - "DNS Server enable" "Provide a DNS server list to clients" and added "DNS Server 1" 192.168.90.1

    looks ok?



  • I have this enabled too: Redirect Gateway - Force all client generated traffic through the tunnel.
    See if that changes it for you.

    Plus this setting, Force DNS cache update.



  • i had "Redirect Gateway Force all client generated traffic through the tunnel." enabled
    and enabled "Force DNS cache update" and no love still



  • Are you accessing the hostname with the FQDN like printer.mydomain.com ?



  • @Gentle:

    Are you accessing the hostname with the FQDN like printer.mydomain.com ?

    i do now!!!!

    seems working, thx a million !



  • Great ! :)


Log in to reply