I am facing a problem with my mac on a Sophos Remote IpSec VPN. The VPN IpSec is set to be the Default Gateway. I can connect to the VPN, and I can join every IP on my remote network. I can dig and nslookup fqdn too, but cannot ping them:
ping: cannot resolve domain.local: Unknown host
I have make searches on Internet but cannot find a solution. I think it comes from my mac, because the "ping fqdn" did work, and then stop. No modifications has been made on the distant firewall (I am the only one that has access).
In brief, when I am connected to the VPN, I can join every machines and services with their IP address, but not with the local DNS. I can browse Internet through the VPN with no problem (I am actually connected to post this question).
I don't know very weel how OSX handle network configuration, it seems more complicated than a simple Debian server or a windows workstation (though).
I tried things like scutil --dns
networksetup -listallnetworkservices
that i didn't know, and get interesting information to help me, but didn't manage to resolve my problem.
From now I think I need other brains to help me, then I will learn a bit more to use my Mac, and I think it's not a bad thing. It's like the NIC know which DNS to ask to resolve name when using dig, but don't send them the request when ask (like ping in this case).
My ears, or my eyes are wide opened, thank you.
dig
andnslookup
commands are for troubleshooting traditional unicast DNS servers. They have never been updated for the ZeroConf era (mDNS, etc.), so they don't know that ".local" has been reserved. To be good troubleshooting tools, they have their own built-in unicast DNS resolvers and don't use the system's DNS resolver. To use the system's DNS resolver from the command line, use thedns-sd
command.dns-sd
. The hyphen is part of the command name. BTW "example.com" is a domain name reserved for examples.