Note
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Package:Bind"
Jump to navigation
Jump to search
Threesixes (talk | contribs) m |
Threesixes (talk | contribs) m (more details) |
||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
{{console|body=###i## echo "dns_servers="127.0.0.1" >> /etc/conf.d/net}} | {{console|body=###i## echo "dns_servers="127.0.0.1" >> /etc/conf.d/net}} | ||
{{file|name=/etc/resolv.conf|lang=|desc=set to listen to | {{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 | nameserver 127.0.0.1 | ||
}} | }} | ||
{{console|body=###i## rc-update add named default | |||
###i## rc | |||
}} | |||
=== External Resources === | |||
*http://www.linuxfromscratch.org/blfs/view/svn/server/bind.html | |||
{{PageNeedsUpdates}} | {{PageNeedsUpdates}} | ||
{{EbuildFooter}} | {{EbuildFooter}} |
Latest revision as of 10:53, May 11, 2015
Bind
Tip
We welcome improvements to this page. To edit this page, Create a Funtoo account. Then log in and then click here to edit this page. See our editing guidelines to becoming a wiki-editing pro.
BIND is a DNS server.
Installation
root # emerge net-dns/bind
Local Caching Only Server
root # echo "dns_servers="127.0.0.1" >> /etc/conf.d/net
/etc/bind/named.conf
- ensure local listeninglisten-on-v6 { ::1; }; listen-on { 127.0.0.1; };
/etc/bind/named.conf
- remove /* comments */ disabling this block, optionally add your upstream DNS serversforward 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 };
/etc/resolv.conf
- set the local system to listen to BINDnameserver 127.0.0.1
root # rc-update add named default root # rc
External Resources