Answers: <p>The first link <a href="https://specs.openstack.org/openstack/charm-specs/specs/pike/implemented/internal-dns.html" rel="nofollow noreferrer">charm</a> - is for an Openstack deployed with Charm.</p>
  <p>The second doc is correct. The file at <code>/etc/neutron/plugins/ml2/ml2_conf.ini</code> should be changed on the controllers. But the exact location will depend on how Openstack was deployed.</p>
  
Answers: CC BY-SA 4.0
Answers: 2022-02-27T08:36:47.987Z
Answers: 2022-02-27T08:36:47.987Z
Answers: LaurentDumont
Body: <p>In <a href="https://specs.openstack.org/openstack/charm-specs/specs/pike/implemented/internal-dns.html" rel="nofollow noreferrer">one doc it says</a>,</p>
  <blockquote>
  <p><strong>To enable the internal DNS resolution</strong>, the neutron-server service must be configured with the dns_domain config option set to a value other than openstacklocal in neutron.conf file <strong>and the dns extension driver must be enabled in the <code>ml2_conf.ini</code> file. In order to enable internal DNS resolution, the user must set the <code>enable-ml2-dns</code> to <code>True</code>.</strong> The default value is <code>False</code> in order to provide backwards compatibility with existing deployments.</p>
  </blockquote>
  <p>In <a href="https://docs.openstack.org/mitaka/networking-guide/config-dns-int.html" rel="nofollow noreferrer">another doc it says this</a></p>
  <blockquote>
  <p>Add dns to extension_drivers in the <code>[ml2]</code> section of <code>/etc/neutron/plugins/ml2/ml2_conf.ini</code>. The following is an example:</p>
  <pre><code>[ml2]
  extension_drivers = port_security,dns
  </code></pre>
  </blockquote>
  <p>Which method is the correct method for enabling the ml2 dns extension? Are we setting the <code>enable-ml2-dns</code> to true, or adding a <code>dns</code> driver in the  <code>extension_drivers</code> list?</p>
  
Tags: <networking><dns><openstack>
Title: How do you enable the DNS extension to ml2 in OpenStack?
UserDisplayName: Evan Carroll
ThreadText: # How do you enable the DNS extension to ml2 in OpenStack?
  
  (Asked by: username_0 on 2022-02-23)
  
  In [one doc it says](https://specs.openstack.org/openstack/charm-specs/specs/pike/implemented/internal-dns.html),
  
  > **To enable the internal DNS resolution**, the neutron-server service must be configured with the dns\_domain config option set to a value other than openstacklocal in neutron.conf file **and the dns extension driver must be enabled in the `ml2_conf.ini` file. In order to enable internal DNS resolution, the user must set the `enable-ml2-dns` to `True`.** The default value is `False` in order to provide backwards compatibility with existing deployments.
  
  In [another doc it says this](https://docs.openstack.org/mitaka/networking-guide/config-dns-int.html)
  
  > Add dns to extension\_drivers in the `[ml2]` section of `/etc/neutron/plugins/ml2/ml2_conf.ini`. The following is an example:
  >
  > ```
  > [ml2]
  > extension_drivers = port_security,dns
  >
  > ```
  
  Which method is the correct method for enabling the ml2 dns extension? Are we setting the `enable-ml2-dns` to true, or adding a `dns` driver in the `extension_drivers` list?
  
  **Tags:** networking, dns, openstack
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2022-02-27. Score: 1 | Accepted answer
  
  The first link [charm](https://specs.openstack.org/openstack/charm-specs/specs/pike/implemented/internal-dns.html) - is for an Openstack deployed with Charm.
  
  The second doc is correct. The file at `/etc/neutron/plugins/ml2/ml2_conf.ini` should be changed on the controllers. But the exact location will depend on how Openstack was deployed.
  
  
  ---
  
  