Skip to content

Instantly share code, notes, and snippets.

@vqiu
Forked from cpswan/named.conf
Created January 11, 2019 03:56
Show Gist options
  • Select an option

  • Save vqiu/7b32d3a19a7a09d32e108d998de166c2 to your computer and use it in GitHub Desktop.

Select an option

Save vqiu/7b32d3a19a7a09d32e108d998de166c2 to your computer and use it in GitHub Desktop.

Revisions

  1. @cpswan cpswan created this gist Apr 2, 2018.
    12 changes: 12 additions & 0 deletions named.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    options {
    directory "/tmp";

    listen-on-v6 { none; };

    forwarders {
    127.0.0.1 port 2053;
    };

    auth-nxdomain no; # conform to RFC1035
    notify yes; # notify slave server(s)
    };
    7 changes: 7 additions & 0 deletions unbound_ext.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    forward-zone:
    name: "."
    forward-addr: 1.1.1.1@853 # Cloudflare primary
    forward-addr: 1.0.0.1@853 # Cloudflare secondary
    forward-addr: 9.9.9.9@853 # quad9.net primary
    forward-addr: 149.112.112.112@853 # quad9.net secondary
    forward-ssl-upstream: yes
    8 changes: 8 additions & 0 deletions unbound_srv.conf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    do-tcp: yes
    prefetch: yes
    qname-minimisation: yes
    rrset-roundrobin: yes
    use-caps-for-id: yes
    do-ip6: no
    do-not-query-localhost: no #leftover from using Unbound in front of BIND
    port: 2053