Ways to view and modify DNS configuration in Linux

  
                

DNS refers to the computer domain name system, which consists of a domain name resolver and a domain name server. The DNS server is provided by the DNS server. Generally, a domain name in operation preferably has two or more DNS servers, which are respectively called a primary domain name server and a secondary domain name server, and the second DNS server is often used for failover. Many users don't know how to view and modify the DNS, so Xiaobian will introduce you to the method of viewing and modifying the DNS configuration in the Linux system.

view the server's DNS information:

1: View /etc/resolv.con file

[root @ localhost ~] # cat /etc /resolv. Conf

nameserver 192.168.xxx.xxx

#search localdomain

[root@localhost ~]#

2: Use the nslookup command to view DNS information < Br>

[root@localhost ~]# nslookup 127.0.0.1

Copyright © Windows knowledge All Rights Reserved