Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problem that Ubuntu can't connect to the Internet?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Today, I will talk to you about how to solve the problem that Ubuntu cannot be connected to the Internet. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.

Problem description:

The desktop computer is used, and the campus network is used to surf the Internet by cable. After testing 64-bit Ubuntu14.04.4, Ubuntu14.04.5 and Ubuntu16.04.3, there are the following problems:

The network shows that it is connected, but cannot surf the Internet:

This situation often occurs in some occasions where you need to log on to the network, such as schools and so on. Of course, if this error also occurs when you do not log in to the network, you can also try the following solution:

1. Click the edit link in the above figure to set the static ip, as shown in the following figure:

2. Ctrl+Alt+T, open the terminal and configure the DNS as follows:

(1) add dns-nameserver 114.114.114.114 at the end of sudo nano / etc/network/interfaces

(2) add nameserver 114.114.114.114 at the end of sudo nano / etc/resolvconf/resolv.conf.d/base

(3) add nameserver 114.114.114.114 at the end of sudo nano / etc/resolv.conf

3. Restart the network and solve the problem!

Sudo service networking restart

Explanation:

DNS means domain name system, and its function is to convert a domain name into a specific IP address.

Common DNS:

The IP address of the free DNS server provided by 8.8.8.8--Google (if we want to go to Google, we can consider changing DNS to 8.8.8.8 yo, heh heh)

114.114.114.114Murray-DNS commonly used by domestic users to surf the Internet

223.5.5.5 Mutual-Ali AliDNS. Ali Public DNS is a DNS recursive parsing system launched by Alibaba Group, which aims to become part of the domestic Internet infrastructure and provide "fast", "stable" and "intelligent" free DNS recursive parsing services for Internet users.

After reading the above, do you have any further understanding of how to solve the problem that Ubuntu can't connect to the Internet? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report