Can only ping hostname.local not hostname by itself

This forum is for admins who are looking to build or expand their OpenVPN setup.

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
gabecz
OpenVpn Newbie
Posts: 5
Joined: Wed Oct 25, 2023 12:52 am

Can only ping hostname.local not hostname by itself

Post by gabecz » Wed Oct 25, 2023 2:00 am

Hi
i'm not sure what am i missing, but i'm having these lines in my server.conf file, which i believe should do the trick shouldn't it? exclusively i mean the DOMAIN line.
of course mydomain.local contains the real domain before .local and 10.10.10.10 and 10.10.10.11 are dns and wins servers.

push "dhcp-option DOMAIN mydomain.local"
push "dhcp-option DOMAIN-SEARCH mydomain.local"
push "dhcp-option DNS 10.10.10.10"
push "dhcp-option DNS 10.10.10.11"
push "block-outside-dns"

push "dhcp-option WINS 10.10.10.10"
push "dhcp-option WINS 10.10.10.11"

running 2 nslookups i get:

nslookup host-on-intranet 10.10.10.10
Server: 10.10.10.10
Address: 10.10.10.10#53

** server can't find host-on-intranet: SERVFAIL

where as
nslookup host-on-intranet.mydomain.local 10.10.10.10
Server: 10.10.10.10
Address: 10.10.10.10#53

Name: host-on-intranet.mydomain.local
Address: 10.10.0.211


testing it on a windows machine i do not see dns servers listed at the OpenVPN Connect Adapter when checking ipconfig /all
the question is if why is it not pushed out at all?

when i connect to a working (cisco) vpn, i have the search domain showing up in /etc/resolv.conf and /var/run/resolv.conf
Last edited by gabecz on Thu Oct 26, 2023 1:57 am, edited 1 time in total.

gabecz
OpenVpn Newbie
Posts: 5
Joined: Wed Oct 25, 2023 12:52 am

Re: Can only ping hostname.local not hostname by itself

Post by gabecz » Thu Oct 26, 2023 12:53 am

some update here that i found today:
cat /etc/resolv.conf (or cat /var/run/resolv.conf) doesn't show the search domain, neither the dns servers defined in the vpn server, but scutil --dns does.

Post Reply