Normally the Mac has a symlink from /etc/resolv.conf to /var/run/resolv.conf :-
$ ls -l /etc/resolv.conf
lrwxr-xr-x 1 root wheel 20 14 Aug 21:49 /etc/resolv.conf -> /var/run/resolv.conf
If you've dicked around and broken the symlink, then some utilities will work while others won't. To fix, just re-instate the missing symlink:-
$ sudo ln -s /var/run/resolv.conf /etc/resolv.conf
Thanks a lot for this hint. It was driving me mad not to figure out why dig and nslookup weren't working on my MacBook.
ReplyDelete