Configuring DNS
Configure DNS on all nodes to ensure normal domain name resolution.
- Create a resolv.conf file.
touch /etc/resolv.conf
- Configure DNS domain name resolution.
- Open the resolv.conf file.
vi /etc/resolv.conf
- Press i to enter the insert mode and add the following content to the file:
# Generated by NetworkManager nameserver 114.114.114.114
In this example, the DNS address is set to 114.114.114.114. You can change the DNS address based on actual requirements. Ensure that the DNS address in /etc/resolv.conf is available.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Open the resolv.conf file.
Parent topic: Configuring the Installation Environment