Ask Your Question
3

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 192.168.100.3, but I used to create an internal network 192.168.100.0/24 where the gateway is 192.168.100.1. As saw in the dashboard got this under Networks->(network Name)->Ports got these fixed IPs with corresponding device attached: 192.168.100.2 -> compute:none 192.168.100.3 -> network:dhcp 192.168.100.1-> 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
4

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 8.8.8.8 net0 10.0.0.0/24

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 8.8.8.8 8.8.4.4
edit flag offensive delete link more

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

4 followers

Stats

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

Seen: 8,812 times

Last updated: Apr 02 '14