My router is set to use DHCP on my wireless LAN. I am using a hacked Linksys router running DD-WRT, which allows you to set local hostnames via dnsmasq. So instead of trying to remember IP addresses, I can ping each of my computers via their assigned hostname instead. Handy.
I noticed that I could ping hostnames outside of my network (ie. google.com), but not hosts on the local LAN (ie. macbook or macbook.home). When I looked at the contents of the /etc/resolv.conf file, I saw:
Code: Select all
nameserver 127.0.0.1
Code: Select all
search home
nameserver 192.168.24.1
I simply deleted the symbolic link and created a new one to resolv.conf.auto instead:
Code: Select all
ln -s /tmp/resolv.conf.auto /etc/resolv.conf