Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

abhijit_dixit

macrumors newbie
Original poster
Jul 12, 2004
14
0
I'm not sure if this is a software or a hardware issue, but since I messed up software-wise, here goes.

I connected my Mac to my office network using the Ethernet port, got an IP using DHCP and everything was fine. I usually like a few more domains in my DNS search list so I wrote a script that periodically updates by /etc/resolv.conf with the search domains I wanted. All that worked fine till I came home and tried connecting to my home wireless. It connected fine and got an IP, but the resolv.conf stayed as it is. So, I was still pointing to my office nameservers which made my Mac unable to resolve any host.

I've manually configured resolv.conf again to point to my home Cable router, but is there something I can do to reset this behavior ? Trying to renew my DHCP lease doesn't seem to help.

Any help/ideas would be greatly appreciated.

I have a PB 15 running Panther.
 
That didn't solve it. Searching more on the web, I realized that /etc/resolv.conf is just a symlink to /var/run/resolv.conf and I had messed up that symlink. Pointing it back solved my problem.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.