I can ping gateway its ok but when I try ping google.comresponse is; unknown host google.comnetwork-scripts/ifcfg-ens0p3 file content:TYPE=EthernetBOOTPROTO=staticIPADDR=192.168.0.14NETMASK=255.255.255.0GATEWAY=192.168.0.1DEFROUTE=yesPEERDNS=yesPEERROUTES=yesIPV4_FAILURE_FATAL=noIPV6INIT=yesIPV6_AUTOCONF=yesIPV6_DEFROUTE=yesIPV6_PEERDNS=yesIPV6_PEERROUTES=yesIPV6_FAILURE_FATAL=noNAME=enp0s3UUID=2a523b6c-a995-4522-8030-6131638534d6DEVICE=enp0s3ONBOOT=yesand /etc/resolve.conf file:DNS1=8.8.8.8DNS2=8.8.4.4What might be wrong here?
ping gateway but not domain
centos;network interface
If you can ping 8.8.8.8 then the problem is likely entirely in the format of your resolv.conf which should benameserver 8.8.8.8nameserver 8.8.4.4The DNS1= and DNS2= lines would be what you put in your ifcg- file to get it to populate resolv.conf correctly