5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Unboundの設定

Posted at

Ubuntu 14.04でローカルネットワーク内の名前解決をさせるための設定

インターフェース

  • すべてのインターフェースでリクエストを受け付け
/etc/unbound/unbound.conf.d/interface.conf
server:
        interface: 0.0.0.0
        interface: ::0

アクセスコントロール

  • ローカルネットワークからのリクエストは許可
/etc/unbound/unbound.conf.d/access-control.conf
server:
        access-control: 0.0.0.0/0 refuse
        access-control: 10.0.0.0/8 allow
        access-control: 172.16.0.0/12 allow
        access-control: 192.168.0.0/16 allow

リクエストのフォワード

  • 特定ドメインはローカルDNSにフォワード
/etc/unbound/unbound.conf.d/forward-zone.conf
forward-zone:
        name: "example.org."
        forward-addr: 192.168.10.5
  • 自己解決できなければ「Google Public DNS」にフォワード
/etc/unbound/unbound.conf.d/forward-zone.conf
forward-zone:
        name: "."
        forward-addr: 8.8.8.8
        forward-addr: 8.8.4.4
5
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?