We recently spun up a new datacenter and used another site to bootstrap our DNS configuration. Now that we’ve got local DNS services, it’s time to change all our configuration! In this article I’ll show you how you can change the DNS configuration in your NSX environment.
The process is the same for both the managers as the edge nodes. Keep in mind that you will have to perform these steps on ALL your managers and edge nodes. This configuration is not synchronized!
Open up an SSH session with the admin account to your managers and edge nodes to perform the steps outlined below.
Checking current configuration
To get an overview of your current configuration, you can run the command get name-servers
.
This should give you an output like this:
|
|
Removing current DNS servers
To remove a server from the current configuration, in this example, the one listed above, you can use this command:
del name-server 10.123.123.123
Adding new DNS servers
And finally we want to add in our new servers, we can use the set command for this
|
|
To make sure the configuration changes worked as intended, I recommend you run another get name-servers
and verify that the output matches what you just changed.