Get the App
SLTechnology News&Howtos  ›  Servers  › 

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

Shulou Source: shulou.com Published: 2022-06-03 01:08:29 09月22日 Update

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:

Tags: Domain name file server service key keyword address search configuration method one line two host example parameter multiple customer method space order Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Docker Redmi Microsoft Shulou Information