How to Change the Default DNS IPs Added to the VMs?

Problem

  • Default DNS IPs 8.8.8.8 and 1.1.1.1 are getting added to the VMs when there is no DNS configured on a subnet.
  • Default IPs are configured within the neutron-server /etc/neutron/plugins/ml2/ml2_conf.ini file.

Environment

  • Private Cloud Director Virtualization - v2025.4 and Higher.
  • Self-Hosted Private Cloud Director Virtualization – v2025.4 and Higher.
  • Component - Networking

Procedure

For SaaS environments, the Platform9 support team should be contacted to implement the changes.

For Self-Hosted environments, the changes should be carried out directly from the Management Plane cluster.

  • A DNS entry is populating from the secret neutron-etc as shown below, which is referred in the neutron-server deployment. The config file is in the form of base64 encoded within the secret.
  • The secret can be found in the corresponding region namespace
Command
Copy
Example
Copy

To modify the default IPs, follow the below steps

Replace the <REGION_NAMESPACE> with an actual namespace

  • Redirect the config to a file.
Command
Copy
  • Modify the file by replacing the IPs against dns_servers with your preferred IPs and Encode the file using base64.
Updating new IPs
Copy
  • Edit the secret and replace the existing base64 encoded data with the new one on the variable ml2_conf.ini within the secret.
Command
Copy
  • Run the following command to verify whether a new IP is being retrieved from the secret.
Command
Copy
  • Scale the neutron-server deployment to 0. Once the pods are successfully terminated, scale it back to 2.
Command to scale deployment
Copy
  • Verify that new DNS IPs are being received within the pod.
Command
Copy
  • Now, a VM should be created by attaching it to a network or subnet that does not have DNS configured manually. Once the VM is up and running, log in to it and execute the commands below to verify that the new IPs are reflected.

Note: These changes will not be reflected in the existing virtual machines.

Command
Copy
Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard