informatica:linux:bind
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
informatica:linux:bind [2012/05/17 14:17] – javi | informatica:linux:bind [2013/07/03 09:02] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 2: | Line 2: | ||
bind, dns, dig, lookup | bind, dns, dig, lookup | ||
+ | |||
===== Instalación ===== | ===== Instalación ===== | ||
- | sudo aptitude update | + | sudo aptitude update; sudo aptitude install bind9 |
+ | ===== Configuración ===== | ||
+ | **/ | ||
+ | < | ||
+ | sudo mv / | ||
+ | sudo vim / | ||
+ | </ | ||
+ | < | ||
+ | // | ||
+ | // Do any local configuration here | ||
+ | // | ||
+ | // Consider adding the 1918 zones here, if they are not used in your | ||
+ | // organization | ||
+ | //include "/ | ||
- | ===== Configuración ===== | ||
- | **/etc/bind/named.conf.options** | + | zone " |
+ | type master; | ||
+ | file "/etc/bind/db.example.com"; | ||
+ | }; | ||
- | < | + | zone "1.168.192.in-addr.arpa" { |
- | sudo mv / | + | type master; |
- | sudo vim /etc/bind/named.conf.options | + | notify no; |
- | </ | + | file "/etc/bind/db.192"; |
+ | }; | ||
- | < | ||
options { | options { | ||
directory "/ | directory "/ | ||
Line 40: | Line 56: | ||
forwarders { | forwarders { | ||
# Replace the address below with the address of your provider' | # Replace the address below with the address of your provider' | ||
- | | + | |
}; | }; | ||
Line 46: | Line 62: | ||
listen-on-v6 { any; }; | listen-on-v6 { any; }; | ||
}; | }; | ||
- | |||
</ | </ | ||
- | **/ | + | **/ |
< | < | ||
- | sudo mv / | + | sudo vim / |
- | + | ||
- | sudo vim / | + | |
- | + | ||
- | // | + | |
- | // Do any local configuration here | + | |
- | // | + | |
- | + | ||
- | // Consider adding the 1918 zones here, if they are not used in your | + | |
- | // organization | + | |
- | //include "/ | + | |
- | + | ||
- | + | ||
- | zone " | + | |
- | type master; | + | |
- | file "/ | + | |
- | }; | + | |
- | + | ||
- | zone " | + | |
- | type master; | + | |
- | notify no; | + | |
- | file "/ | + | |
- | }; | + | |
</ | </ | ||
- | |||
- | |||
- | |||
- | **/ | ||
< | < | ||
- | sudo vim / | ||
- | |||
$TTL 604800 | $TTL 604800 | ||
- | @ | + | @ |
3 ; Serial | 3 ; Serial | ||
| | ||
Line 95: | Line 82: | ||
dns IN A | dns IN A | ||
www | www | ||
+ | alias | ||
</ | </ | ||
Line 102: | Line 89: | ||
< | < | ||
sudo vim / | sudo vim / | ||
+ | </ | ||
+ | < | ||
; | ; | ||
; BIND reverse data file for local loopback interface | ; BIND reverse data file for local loopback interface | ||
; | ; | ||
$TTL 604800 | $TTL 604800 | ||
- | @ | + | @ |
3 ; Serial | 3 ; Serial | ||
| | ||
Line 114: | Line 103: | ||
| | ||
; | ; | ||
- | @ | + | @ |
16 IN PTR | 16 IN PTR | ||
14 IN PTR | 14 IN PTR | ||
</ | </ | ||
- | |||
- | |||
- | |||
===== Probarlo ===== | ===== Probarlo ===== | ||
Line 177: | Line 163: | ||
sudo rndc reload | sudo rndc reload | ||
- |
informatica/linux/bind.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1