[openstack-dev] Setting default dns server entry for VM

Shyam Goud shyam.todeti at oneconvergence.com
Wed May 15 11:41:18 UTC 2013


All,

I am trying to set VM's default dns_server to 8.8.8.8 in my openstack 
configs.

I am using Quantum + Grizzly

Added these entries
in /etc/quantum/dhcp_agent.ini
 > dnsmasq_dns_server=8.8.8.8
source: 
http://docs.openstack.org/trunk/openstack-network/admin/content/dhcp_agent_ini.html

in /etc/quantum/quantum.conf
 > # Maximum number of DNS nameservers per subnet
 > max_dns_nameservers = 5

But still its not set.

root at vm1:~# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by 
resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 172.16.0.2
search openstacklocal
root at vm1:~#

Please let me know is there any way to achieve this ? (I don't want to 
login to every VM and set it manually in /etc/resolv.conf)

Thanks,
Shyam.



More information about the OpenStack-dev mailing list