A DNS server is used to resolve domain names of file systems.
By default, the IP address of the DNS server used to resolve domain names of file systems is automatically configured on ECSs when they are created. No manual configuration is needed except when the resolution fails due to a change in the DNS server IP address.
Figure 1 Configuring DNS

The format is as follows:
nameserver DNS server IP address
cat /etc/resolv.conf
nslookup File system domain name
Obtain the file system domain name from the file system mount point.
Run the chattr -i /etc/resolv.conf command to unlock the file if needed.
lsattr /etc/resolv.conf
If the information shown in Figure 2 is displayed, the file is locked.
Figure 2 A locked file
