DNSmasq启动提示"dnsdomainname: Unknown host"

问题如下

[root@Zenlayer etc]# /etc/init.d/dnsmasq restart
dnsdomainname: Unknown host
dnsdomainname: Unknown host
Shutting down dnsmasq:                                     [  OK  ]
dnsdomainname: Unknown host
Starting dnsmasq:                                          [  OK  ]

解决办法
把主机名加到/etc/hosts文件里面

例如这里的主机名是Zenlayer

加到/etc/hosts里面就是

127.0.0.1 Zenlayer

然后重启DNSmasq,正常

来源:http://www.linuxquestions.org/questions/linux-newbie-8/setting-up-a-private-network-using-dnsmasq-i-have-small-problem-761039/#post3730719