There's no dns resolving
Thu, 2006-09-07 22:07
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?










I had the same problem just recently, but on Frugalware.
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
DNS is configured in the file /etc/resolv.conf . You can edit this manually, but what's dhcp for then
Problem solved! I just had to write "nameserver xxx.xxx.xxx.xxx" in a resolv.conf file and voila! dns activated!!! Thank you
But that's not using DHCP, which I thought you wanted.
A static /etc/resolv.conf is faster than DHCP anyway.
You're right It should create the apropiate file configuration for me. I use dhclient but i read on the BLFS book that dhcpcd create the apropiate file configuration from the dhcpc server, and it didn't said anything about dhclient creating files but i think dhclient sould do that even so. Maybe I should switch to dhcpcd.