dhcp not creating /etc/resolv.conf?
johngay at eircom.net
Tue Mar 7 18:26:17 PST 2006
I had this problem before and I can't remember how to fix it.
I've built a new CLFS box and now I'm adding to it. My first step was
dhcp-3.0.2 Client, which needed a minor addition to build. However, when it
runs, it doesn't create /etc/resolv.conf
I built and installed dhcp-3.0.2, ran make install-service-dhclient in
install -v -d /etc/sysconfig/network-devices/ifconfig.eth0 &&
cat > /etc/sysconfig/network-devices/ifconfig.eth0/dhclient << "EOF"
# Set PRINTIP="yes" to have the script print
# the DHCP assigned IP address
# Set PRINTALL="yes" to print the DHCP assigned values for
# IP, SM, DG, and 1st NS. This requires PRINTIP="yes".
cat > /etc/dhclient.conf << "EOF"
prepend domain-name-servers 127.0.0.1;
request subnet-mask, broadcast-address, time-offset, routers,
domain-name, domain-name-servers, host-name;
require subnet-mask, domain-name-servers;
# end dhclient.conf
but when the system starts, it doesn't create /etc/resolv.conf and I get no
As I said, I've had this problem before but I don't remember what the solution
More information about the blfs-support