3:ホストOSに簡易DNSサーバーを作る(dnsmasq)

Date 2012-8-28 1:29:10 | Topic: CentOS 6.3(6.4)に挑戦

dnsmasqは初めからインストールされていたので設定だけ。
もしインストールされていなかったらyumでインストールする。
/etc/dnsmasq.conf の設定
domain-needed
bogus-priv
interface=br0
no-dhcp-interface=br0

コメントを外し、下の2行はbr0を記入。後はデフォルトのまま、と言ってもすべてコメントアウトされていたが。
/etc/resolv.conf の設定だが、これは最初にしてある(1:インストール後の設定)が、最後に書いてあるようにnameserver 192.168.135.30のコメントを外す。そしてdnsmasqを走らす。
# service dnsmasq start
# chkconfig dnsmasq on
# chkconfig --list dnsmasq
dnsmasq 0:off 1:off 2:on 3:on 4:on 5:on 6:off



This article comes from 錦稜会 KINRYOKAI
https://www.kinryokai.net

The URL for this story is:
https://www.kinryokai.net/article.php?storyid=133