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
Can only ping hostname.local not hostname by itself
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Oct 25, 2023 12:52 am
Can only ping hostname.local not hostname by itself
Last edited by gabecz on Thu Oct 26, 2023 1:57 am, edited 1 time in total.
-
- OpenVpn Newbie
- Posts: 5
- Joined: Wed Oct 25, 2023 12:52 am
Re: Can only ping hostname.local not hostname by itself
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.
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.