J
J
Junior0072017-10-23 15:23:52
Ping
Junior007, 2017-10-23 15:23:52

Why does not respond by name in Centos 6?

I deal with VPS and ran into this problem:
When I enter the ping yandex.ru command, it says: ping: unknown host yandex.ru
If I ping by IP, then everything goes well.
How can this problem be solved?
Firewall doesn't seem to matter:
systemctl status firewalld
-bash: systemctl: command not found

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Psq, 2017-10-23
@Junior007

Check the DNS setting
# vi /etc/resolv.conf nameserver
8.8.8.8 # Replace with your nameserver ip
nameserver 8.8.4.4 # Replace with your nameserver ip The
DNS server address can also be specified in
# vi /etc/sysconfig/network-scripts /ifcfg-eth0

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question