In ubuntu, the firefox browser always prompts that the server cannot be found.

Source: Internet
Author: User
Tags nameserver
This situation often occurs on my machine, and sometimes it gives you something wrong, but sometimes it will work again if you just wait a moment or change the engine to Baidu.

This situation often occurs on my machine, and sometimes it may cause some problems for you, but sometimes it will work again if you just wait a moment or change the engine to Baidu ..

I was annoyed by this problem. I checked the Internet and said it was a firewall or something like that, but after I got it, this problem still often occurs, however, after checking the information, I found the problem. I felt that my head was really stupid ..

If it is okay to ping other hosts, local addresses, and other addresses, it should be due to a dns domain name resolution problem.

View the dns domain name resolution configuration file:

$ Cat/etc/resolv. conf

For example, my information is as follows:

# Dynamic resolv. conf (5) file for glibc resolver (3) generated by resolvconf (8)
# Do not edit this file by hand -- YOUR CHANGES WILL BE OVERWRITTEN
Nameserver 127.0.0.1

After the nameserver, it should be the dns address, and here I am the local loopback address. if I change it to the dns address, it will be o,

$ Sudo vi/etc/resolv. conf

Nameserver 8.8.8.8 (free dns server address provided by Google)

After saving, the problem is solved!

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.