[SOLVED] Everything works great except DNS resolution
by griffsterb from LinuxQuestions.org on (#6Q8PR)
Hello folks. I have booted into my LFS 12.1 build and everything seems to be working properly, except DNS resolution.
I can "ping 8.8.8.8" and it returns some packet and latency information. But "ping www.google.com" returns "ping: unknown host".
I believe I have the relevant files set up correctly.
Code:#/etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4Code:#/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 $(my domain name)
192.168.237.128 $(my domain name)Code:#/etc/sysconfig/ifconfig.enp2s0
ONBOOT=yes
IFACE=enp2s0
SERVICE=ipv4-static
IP=192.168.237.128
GATEWAY=192.168.237.2
BROADCAST=192.168.237.255
PREFIX=24Any thoughts as to what's going on? Not that this is not a systemd build. Thank you!
I can "ping 8.8.8.8" and it returns some packet and latency information. But "ping www.google.com" returns "ping: unknown host".
I believe I have the relevant files set up correctly.
Code:#/etc/resolv.conf
nameserver 8.8.8.8
nameserver 8.8.4.4Code:#/etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.0.1 $(my domain name)
192.168.237.128 $(my domain name)Code:#/etc/sysconfig/ifconfig.enp2s0
ONBOOT=yes
IFACE=enp2s0
SERVICE=ipv4-static
IP=192.168.237.128
GATEWAY=192.168.237.2
BROADCAST=192.168.237.255
PREFIX=24Any thoughts as to what's going on? Not that this is not a systemd build. Thank you!