User Tools

Site Tools


software:bind

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:bind [2015/03/04 10:56] – [TLD based forwarding] Michele Porellisoftware:bind [2018/09/02 03:22] (current) – [Specify some overrides] Michele Porelli
Line 34: Line 34:
   - restart bind<code># service bind9 restart</code>   - restart bind<code># service bind9 restart</code>
   - enjoy cached&untracked queries :)   - enjoy cached&untracked queries :)
 +
 +==== Specify some overrides ====
 +  - edit /etc/bind/named.conf.options and append in option section:<code>response-policy { zone "custom-overrides"; };</code>
 +  - edit /etc/bind/named.conf.local and append the zone:<code>zone "custom-overrides" {type master; file "/etc/bind/custom-overrides"; allow-query {none;}; };</code>
 +  - edit /etc/bind/custom-overrides and append the zone:<code>$TTL 1H
 +@                       SOA LOCALHOST. myhost.example.com (1 1h 15m 30d 2h)
 +                        NS  LOCALHOST.
 +
 +custom.google.com A   10.232.101.2
 +facebook.com      A   192.168.3.8</code>
software/bind.1425466618.txt · Last modified: (external edit)