Cannot PING public DN, but able to PING public IP

is anyone encountered problem on PING to public domain name like but fine when ping public IP? This server is freshly installed with DHCP configured and does not have restriction on internet. I can’t figure out what wrong in the network interface or settings and how to fix this?


Please don’t post screenshots, when you could have simply copied/pasted the console text. Screenshots are a nightmare to read. There is no reason to post it.

That said, sounds like if it doesn’t ping, then you have DNS configuration issues - most likely network not configured correctly with the appropriate DNS entries.

Hi iWalker,

Thanks for the reply and this is noted as I am not aware of posting screenshot could give unreadable to the reader or much like don’t wanna see the sample image. Anyways going to the subject.

For DNS issue, what part or where should I see that DNS entries that I must configure correctly? Because I installed this Linux in default way, DHCP provided by simple router and plain internet access as example, thus I haven’t expected issue will arise like this. Can you help me further?

You can look at these two:

cat /etc/resolv.conf

Both should reveal the relevant configuration.

Thanks @jlehtone, as checked, both configs are relevant and I can’t see any error or missing in the example below.

[admin@localhost ~]$ nmcli
ens224: connected to Profile 1
“VMware VMXNET3”
ethernet (vmxnet3), 00:50:56:A2:FB:FC, hw, mtu 1500
ip4 default
route4 metric 100
route4 default via metric 100
inet6 fe80::5a4c:3ec9:e5ba:cf98/64
route6 fe80::/64 metric 1024

ens192: connected to ens192
“VMware VMXNET3”
ethernet (vmxnet3), 00:50:56:A2:8A:53, hw, mtu 1500
route4 metric 101
inet6 fe80::250:56ff:fea2:8a53/64
route6 fe80::/64 metric 1024

lo: connected (externally) to lo
loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
inet6 ::1/128
route6 ::1/128 metric 256

DNS configuration:
interface: ens224

    interface: ens192

Use “nmcli device show” to get complete information about known devices and
“nmcli connection show” to get an overview on active connection profiles.

Consult nmcli(1) and nmcli-examples(7) manual pages for complete usage details.

[admin@localhost ~]$ cat /etc/resolv.conf

Generated by NetworkManager


Thanks everyone whose gave their thought about my concern. I found the fixed, and reconfigured the network profile. Now I can able to ping the, I followed the guide below.

What was wrong in your network config?

We could see that the machine was member of two subnets: and,
there was a DNS server in each: and, respectively
and the had router to other subnets.

The only bit peculiar bit in that was that the router ( and DSN server ( were different machines. Typically, a “home router” has both DHCP server and DNS server (as does libvirtd/KVM). Perhaps VMware has different practice.

The was before in resolv.conf, so is queried first every time. Only if it is down, will the query be repeated to

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.