informatica:linux:bind
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| informatica:linux:bind [2012/05/30 10:54] – javi | informatica:linux:bind [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| ===== Configuración ===== | ===== Configuración ===== | ||
| - | **/ | + | **/ |
| < | < | ||
| - | sudo mv / | + | 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 "/ | ||
| + | }; | ||
| + | |||
| options { | options { | ||
| directory "/ | directory "/ | ||
| Line 36: | Line 56: | ||
| forwarders { | forwarders { | ||
| # Replace the address below with the address of your provider' | # Replace the address below with the address of your provider' | ||
| - | | + | |
| }; | }; | ||
| auth-nxdomain no; # conform to RFC1035 | auth-nxdomain no; # conform to RFC1035 | ||
| listen-on-v6 { any; }; | listen-on-v6 { any; }; | ||
| - | }; | ||
| - | </ | ||
| - | |||
| - | **/ | ||
| - | |||
| - | < | ||
| - | sudo mv / | ||
| - | 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 "/ | ||
| }; | }; | ||
| </ | </ | ||
| Line 81: | Line 72: | ||
| < | < | ||
| $TTL 604800 | $TTL 604800 | ||
| - | @ | + | @ |
| 3 ; Serial | 3 ; Serial | ||
| | | ||
| Line 91: | Line 82: | ||
| dns IN A | dns IN A | ||
| www | www | ||
| + | alias | ||
| </ | </ | ||
| Line 104: | Line 96: | ||
| ; | ; | ||
| $TTL 604800 | $TTL 604800 | ||
| - | @ | + | @ |
| 3 ; Serial | 3 ; Serial | ||
| | | ||
| Line 111: | Line 103: | ||
| | | ||
| ; | ; | ||
| - | @ | + | @ |
| 16 IN PTR | 16 IN PTR | ||
| 14 IN PTR | 14 IN PTR | ||
| Line 171: | Line 163: | ||
| sudo rndc reload | sudo rndc reload | ||
| + | | ||
| + | ==== Errores ==== | ||
| + | |||
| + | === Errores === | ||
| + | |||
| + | |||
| + | nslookup jamgo.es | ||
| + | |||
| + | < | ||
| + | Server: | ||
| + | Address: | ||
| + | |||
| + | ** server can't find jamgo.es: REFUSED | ||
| + | </ | ||
| + | |||
| + | Logs: | ||
| + | |||
| + | / | ||
| + | |||
| + | Jan 22 14:28:55 dns-1 named[1082]: | ||
| + | |||
| + | **Solucion** | ||
| + | |||
| + | sudo vim / | ||
| + | | ||
| + | Anyadir el rango de IPs que toquen: | ||
| + | |||
| + | < | ||
| + | # ANYADIDO 22/012015 | ||
| + | acl " | ||
| + | 10.7.13.0/ | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | Y editar dentro de el bloque options esto: | ||
| + | |||
| + | < | ||
| + | options { | ||
| + | # ADD | ||
| + | allow-query { trusted; }; | ||
| + | allow-recursion { trusted; }; | ||
| + | allow-query-cache { trusted; }; | ||
| + | }; | ||
| + | </ | ||
| + | |||
| + | Recargar config: | ||
| + | sudo / | ||
| + | | ||
informatica/linux/bind.1338375247.txt.gz · Last modified: (external edit)
