Workaround for Ping:unknown host www.baidu.com problem under Linux--ubuntu configuration of local area network

Source: Internet
Author: User
Tags nameserver

If you ping the domain name, ping:unknown host xxx.xxx appears.

But when you ping the IP address, you can pass it.

The DNS server is not configured properly,

Check the configuration file/etc/resolv.conf, if there is nameserver xxx.xxx.xxx.xxx, such as the use of DNS server nameserver 8.8.8.8, if any, modify an available DNS server, such as 8.8.8.8 or 4.4.4.4, Save exit!

Of course, if even the IP ping 8.8.8.8 are not ping, then the network configuration is a problem: can be resolved:

1, first check whether Ifconfig has an intranet IP address, if not, then configure

Ifconfig eth0 192.168.1.100 up,

You can configure the mask at the same time:

Also use the route command to view the current default gateway, if not, configure one,

Route add default GW 192.168.1.1,

After the configuration of these two, you can normally ping the network, if you can not ping www.baidu.com, then go to check the DNS server

from:http://blog.csdn.net/menlinshuangxi/article/details/7968955

Workaround for Ping:unknown host www.baidu.com problem under Linux--ubuntu configuration of local area network

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.