Skip to content

Instantly share code, notes, and snippets.

@NamrataSitlani
Last active September 5, 2023 14:45
Show Gist options
  • Save NamrataSitlani/e0a90510193de54bd6ef4ca6515999f8 to your computer and use it in GitHub Desktop.
Save NamrataSitlani/e0a90510193de54bd6ef4ca6515999f8 to your computer and use it in GitHub Desktop.
Setting up internal DNS resolution with OVN
The Networking service enables users to control the name assigned to ports by the internal DNS.
To enable this functionality when you have deployed the openstack using kolla-ansible, do the following to override the exsting configuration:
1.Edit the /etc/kolla/config/neutron.conf file and assign a value different to openstacklocal (its default value) to the dns_domain parameter in the [default] section. As an example:
```
[DEFAULT]
dns_domain = example.org.
```
2. Add dns to extension_drivers in the [ml2] section of /etc/kolla/config/neutron/ml2_conf.ini. The following is an example:
```
[ml2]
extension_drivers = port_security,dns
```
Now Re run the neutron service playbook too apply the configuration changes:
$ kolla-ansible -i /etc/kolla/multinode deploy --tags neutron
@satishdotpatel
Copy link

You should mention, that this deployment model is for OVN

@satishdotpatel
Copy link

WIth openvswitch network driver you have to provide DNS address as DHCP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment