Openstack dnsmasq配置域名解析
來源:程序員人生 發布時間:2015-01-28 08:37:48 閱讀次數:4895次
vi /etc/nova/nova.conf
在[DEFAULT]添加
dnsmasq_config_file=/etc/dnsmasq-nova.conf
dns_server=8.8.8.8
vi /etc/dnsmasq-nova.conf
添加
addn-hosts=/etc/dnsmasq/hosts
mkdir /etc/dnsmasq
vi /etc/dnsmasq/hosts
添加
192.168.0.240 download.test.org
找到dnsmasq和nova-network的進程,并kill掉它們
然后再啟動nova-network
/usr/bin/python /usr/bin/nova-network --config-file /etc/nova/nova.conf &
這時候候在云主機里ping download.test.org,就指向192.168.0.240
生活不易,碼農辛苦
如果您覺得本網站對您的學習有所幫助,可以手機掃描二維碼進行捐贈