Raspberry Piでネットワーク構築/DNS, DHCPサーバ
ナビゲーションに移動
検索に移動
概要
DNS, DHCPサーバ | Dnsmasq |
設定
- /etc/dnsmasq.conf
domain-needed bogus-priv interface=IF dhcp-range=192.168.100.100,192.168.100.200,12h
dhcp-range=tag:IF,192.168.100.100,192.168.100.200,12h
IF | ネットワークインタフェース |
domain=example.com
$ sudo systemctl restart dnsmasq
- /etc/hosts
$ dnsmasq --test