Skip to main content
Welcome guest. | Register | Login | Post

There's no dns resolving

4 replies [Last post]
whisper's picture
Offline
Joined: 2006-09-06

I installed dhcpc on my LFS and all went good until I tried to access google.com getting the "host not found" error then i pinged google.com with the same error. I supose i don't have dns related utilities because then I accessed google using it's corresponding ip instead of it's domain name and it worked. how do I fix this?

free-zombie's picture
Offline
Joined: 2006-03-08
I had the same problem just

I had the same problem just recently, but on Frugalware.
DNS is configured in the file /etc/resolv.conf . You can edit this manually, but what's dhcp for then Eye resolv.conf should be generated by the dhcp client; basically, I ended up editing a shell script pointed to by my dhcp client configuration. You know best what DHCP client you have installed - somewhere there should be a script or some config options related to resolv.conf. I'm leaving the LFSer to it now Eye

whisper's picture
Offline
Joined: 2006-09-06
Problem solved!

Problem solved! I just had to write "nameserver xxx.xxx.xxx.xxx" in a resolv.conf file and voila! dns activated!!! Thank you Cool

a thing's picture
Offline
Joined: 2005-12-20
not DHCP

But that's not using DHCP, which I thought you wanted.

A static /etc/resolv.conf is faster than DHCP anyway.