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

Based on SAIL-IMX6 network, you can ping ip, but there is no way to ping domain name solution.

2025-04-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

The solution is as follows:

Modify the / etc/resolv.conf file to add the address of the DNS resolution server

The / etc/resolv.conf file configures the DNS client, which contains the domain name search order of the host and the address of the DNS server, and each line should contain a keyword and one or more parameters separated by spaces. Here is an example file:

Domain test.com

Search www.test.com test.com

Nameserver 202.96.128.86

Nameserver 202.96.128.166

Nameserver # defines the IP address of the DNS server

Domain # define a local domain name

Search # defines a search list for domain names

Sortlist # sorts the returned domain names

Mainly the nameserver keyword, if you do not specify nameserver, you can not find the DNS server, other keywords are optional.

Two DNS are set in the / etc/resolv.conf file, as follows:

Nameserver 114.114.114.114

Nameserver 8.8.8.8

After the configuration is complete, save and then use the ping domain name, as shown below:

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