Neutron DHCP adding DNS

asked 2014-04-01 23:21:20 -0600

tahder gravatar image

How do I able to add the DNS servers in the Neutron DHCP, i assume in the /etc/neutron/dhcp_agent.ini. To be seen on running Instances/Virtual machines created. In linux it is on /etc/resolv.conf, in windows dns_servers.

I don't know where it get a value of, but I used to create an internal network where the gateway is As saw in the dashboard got this under Networks->(network Name)->Ports got these fixed IPs with corresponding device attached: -> compute:none -> network:dhcp> network:router_interface

Can I add additional dns server on it or alter its dns? I don't know where the DHCP server of the Openstack is? Where to config.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-02 13:35:52 -0600

larsks gravatar image

You specify DNS servers when you create a subnet with the neutron subnet-create command. For example:

neutron subnet-create --dns-namservers net0

You can modify the list of DNS servers after the fact with the neutron subnet-update command; the syntax looks like this:

neutron subnet-update cae5afad-217c-4e8b-8413-cdbce5214a5d --dns-nameservers list=true
edit flag offensive delete link more


Thanks for the information yes indeed this what I needed, I saw also in the dashboard to add the DNS servers. I initially look at the database but didn't found anything except for nova-networking where there's a column for dns1,dns2...

tahder gravatar imagetahder ( 2014-04-02 15:15:53 -0600 )edit

In the dashboard (Icehouse) it's under the Networks -> Subnet's section, when you edit a specific subnet it's under the Subnet Detail tab of the Edit dialog.

slmingol gravatar imageslmingol ( 2015-03-18 08:55:32 -0600 )edit

The neutron CLI is deprecated. The command is: openstack subnet set. I.e. openstack subnet set cae5afad-217c-4e8b-8413-cdbce5214a5d --dns-nameservers list=true

RobM gravatar imageRobM ( 2018-07-12 11:03:29 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools



Asked: 2014-04-01 23:21:20 -0600

Seen: 10,324 times

Last updated: Apr 02 '14