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 [2010/11/20 16:55] – 95.20.4.69 | 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 | ||
+ | // | ||
- | ===== Configuración ===== | + | // Consider adding the 1918 zones here, if they are not used in your |
+ | // organization | ||
+ | //include "/ | ||
- | **/ | ||
- | < | + | zone " |
- | sudo mv /etc/bind/named.conf.options.old | + | type master; |
+ | file "/etc/bind/db.example.com"; | ||
+ | }; | ||
- | sudo vim /etc/bind/named.conf.options | + | zone " |
+ | type master; | ||
+ | notify no; | ||
+ | file "/etc/bind/db.192"; | ||
+ | }; | ||
options { | options { | ||
Line 38: | 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 44: | 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 93: | Line 82: | ||
dns IN A | dns IN A | ||
www | www | ||
+ | alias | ||
</ | </ | ||
Line 100: | 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 112: | Line 103: | ||
| | ||
; | ; | ||
- | @ | + | @ |
16 IN PTR | 16 IN PTR | ||
14 IN PTR | 14 IN PTR | ||
Line 121: | Line 112: | ||
1. Editar siguiente archivo: | 1. Editar siguiente archivo: | ||
- | sudo cp / | + | sudo cp / |
sudo vim / | sudo vim / | ||
Line 134: | Line 125: | ||
3. (Opcional) Instalar paquetes: | 3. (Opcional) Instalar paquetes: | ||
- | sudo aptitude update | + | sudo aptitude update; sudo aptitude |
4. Probar: | 4. Probar: | ||
Line 167: | Line 158: | ||
</ | </ | ||
+ | ===== Recargar configuración sin reiniciar ===== | ||
+ | |||
+ | Tras editar los archivos de configuración: | ||
+ | |||
+ | sudo rndc reload |
informatica/linux/bind.txt · Last modified: 2015/04/13 20:19 by 127.0.0.1