dnsmasqの設定
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
*dnsmasqの設定 [#w3a702f5]
自宅のLAN内の名前解決にdnsmasqを利用する。
** bindの削除 [#jb906a17]
$ sudo apt-get purge bind9
** dnsmasqのインストール [#j06045ef]
$ sudo apt-get install dnsmasq
** 設定 [#p823cead]
ホスト名の確認
$ cat /etc/hostname
/etc/resolv.conf の確認
$ cat /etc/resolv.conf
/etc/dnsmasq.conf の設定
:
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spac...
bogus-priv
:
# Add local-only domains here, queries in these domains ...
# from /etc/hosts or DHCP only.
local=/sv.examle.com/
:
# Set this (and domain: see below) if you want to have a...
# automatically added to simple names in a hosts-file.
expand-hosts
:
# Set the domain for dnsmasq. this is optional, but if i...
# does the following things.
# 1) Allows DHCP hosts to have fully qualified domain na...
# as the domain part matches this setting.
# 2) Sets the "domain" DHCP option thereby potentially s...
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
domain=example.com
:
ルータのDHCP 設定を sv.example.com に変更する
/etc/hosts を編集する
** サービスの起動 [#f8f443c0]
$ sudo systemctl start dnsmasq
$ sudo systemctl enable dnsmasq
~
#htmlinsert(amazon_pc.html);
終了行:
*dnsmasqの設定 [#w3a702f5]
自宅のLAN内の名前解決にdnsmasqを利用する。
** bindの削除 [#jb906a17]
$ sudo apt-get purge bind9
** dnsmasqのインストール [#j06045ef]
$ sudo apt-get install dnsmasq
** 設定 [#p823cead]
ホスト名の確認
$ cat /etc/hostname
/etc/resolv.conf の確認
$ cat /etc/resolv.conf
/etc/dnsmasq.conf の設定
:
# Never forward plain names (without a dot or domain part)
domain-needed
# Never forward addresses in the non-routed address spac...
bogus-priv
:
# Add local-only domains here, queries in these domains ...
# from /etc/hosts or DHCP only.
local=/sv.examle.com/
:
# Set this (and domain: see below) if you want to have a...
# automatically added to simple names in a hosts-file.
expand-hosts
:
# Set the domain for dnsmasq. this is optional, but if i...
# does the following things.
# 1) Allows DHCP hosts to have fully qualified domain na...
# as the domain part matches this setting.
# 2) Sets the "domain" DHCP option thereby potentially s...
# domain of all systems configured by DHCP
# 3) Provides the domain part for "expand-hosts"
domain=example.com
:
ルータのDHCP 設定を sv.example.com に変更する
/etc/hosts を編集する
** サービスの起動 [#f8f443c0]
$ sudo systemctl start dnsmasq
$ sudo systemctl enable dnsmasq
~
#htmlinsert(amazon_pc.html);
ページ名: