Changing the DNS Server

This topic explains how to change the DNS Server on your TOS nodes. We recommend performing this task during an IT change window because changing the DNS server may cause a network disruption (especially if an incorrect DNS server is entered in error).

We recommend backing up your TOS data before changing the DNS server. See Backup and Restore.

This procedure is relevant for deployments on TOS appliances and VMWare VMs.

Change DNS Address

  1. Locate the first network interface.

    [<ADMIN> ~]$ sudo /opt/tufinos/scripts/network_interface_by_pci_order.sh | awk -F'=' '/NET_IFS\[0\]/ { print $NF }'
    sudo /opt/tufinos/scripts/network_interface_by_pci_order.sh | awk -F'=' '/NET_IFS\[0\]/ { print $NF }'
  2. Run the command:

  3. [<ADMIN> ~]$ sudo nmtui edit <First Interface Name>
    sudo nmtui edit <First Interface Name>
  4. Set the gateway and DNS Servers to the IPs used by your organization.

  5. Restart the network service.

  6. [<ADMIN> ~]$ sudo systemctl restart NetworkManager.service
    sudo systemctl restart NetworkManager.service
  7. To apply the changes, restart the kube-system pods:

    [<ADMIN> ~]$ kubectl delete pod -n kube-system -l k8s-app=kube-dns
    sudo systemctl kubectl delete pod -n kube-system -l k8s-app=kube-dns