Ask Your Question

How do you setup a subnet with DHCP, but without name-servers ?

asked 2014-04-15 06:07:51 -0500

branoz gravatar image

When creating a subnet, you can optionally specify a list of name-servers that the DHCP agent will send to the instance. If you leave it blank, DHCP agent will send _its own_ address as the name-server. Is there a way to prevent this behavior ? That is, do not send any "domain-name-servers" option at all.

neutron net-create public ..
neutron subnet-create public .. --dns-nameservers list=true
neutron net-create private ..
neutron subnet-create private --no-gateway       # subnet without dns-nameservers

Example instance connected to two networks:

  • eth0 on public net - received, via "domain-name-servers" option
  • eth1 on private net - received as the name-server. This is an IP of a controller running DHCP

Depending on the default OS settings, your /etc/resolv.conf may end up like:

search openstacklocal

I would like the nameservers to be controlled by one network and use the DHCP on the other network for assigning an IP and mask only.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-11-24 13:19:08 -0500

I hate to add a "me, too," but "me, too." Brandoz have you come across a solution?


edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-15 06:07:51 -0500

Seen: 538 times

Last updated: Apr 15 '14