From Funtoo
(Difference between pages)
Jump to navigation
Jump to search
|
|
Line 1: |
Line 1: |
| {{Ebuild | | <includeonly>{{#ifeq:{{#varexists:stepcount}}|1|{{#vardefineecho:stepcount|{{#expr:{{#var:stepcount}}+1}}}}|{{#vardefineecho:stepcount|0}}}}</includeonly> |
| |Summary=BIND - Berkeley Internet Name Domain - Name Server
| |
| |CatPkg=net-dns/bind
| |
| |Homepage=http://www.isc.org/software/bind
| |
| }}
| |
| | |
| BIND is a DNS server.
| |
| | |
| === Installation ===
| |
| {{console|body=###i## emerge net-dns/bind}} | |
| | |
| === Local Caching Only Server ===
| |
| {{console|body=###i## echo "dns_servers="127.0.0.1" >> /etc/conf.d/net}}
| |
| | |
| {{file|name=/etc/bind/named.conf|lang=|desc=ensure local listening|body= | |
| listen-on-v6 { ::1; };
| |
| listen-on { 127.0.0.1; };
| |
| }} | |
| | |
| {{file|name=/etc/bind/named.conf|lang=|desc=remove /* comments */ disabling this block, optionally add your upstream DNS servers|body=
| |
| forward first;
| |
| forwarders {
| |
| // 123.123.123.123; // Your ISP NS
| |
| // 124.124.124.124; // Your ISP NS
| |
| // 4.2.2.1; // Level3 Public DNS
| |
| // 4.2.2.2; // Level3 Public DNS
| |
| 8.8.8.8; // Google Open DNS
| |
| 8.8.4.4; // Google Open DNS
| |
| };
| |
| }}
| |
| | |
| {{file|name=/etc/resolv.conf|lang=|desc=set the local system to listen to BIND|body= | |
| nameserver 127.0.0.1
| |
| }}
| |
| | |
| {{console|body=###i## rc-update add named default
| |
| ###i## rc
| |
| }} | |
| | |
| {{PageNeedsUpdates}}
| |
| {{EbuildFooter}}
| |
Revision as of 04:14, February 19, 2015