Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring DNS

Configure DNS on all nodes to ensure normal domain name resolution.

  1. Create a resolv.conf file.
    touch /etc/resolv.conf
  2. Configure DNS domain name resolution.
    1. Open the resolv.conf file.
      vi /etc/resolv.conf
    2. 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.

    3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.