User Tools

Site Tools


informatica:linux:bind

This is an old revision of the document!


Table of Contents

bind

bind, dns, dig, lookup

Instalación

sudo aptitude update && sudo aptitude install bind9

Configuración

/etc/bind/named.conf

sudo mv /etc/bind/named.conf.old

sudo vim /etc/bind/named.conf

//
// Do any local configuration here
//

// Consider adding the 1918 zones here, if they are not used in your
// organization
//include "/etc/bind/zones.rfc1918";


zone "example.com" {
     type master;
     file "/etc/bind/db.example.com";
};

zone "1.168.192.in-addr.arpa" {
        type master;
        notify no;
        file "/etc/bind/db.192";
};

/etc/bind/db.example.com

sudo vim /etc/bind/db.example.com

$TTL    604800
@       IN      SOA     dns.example.com. dns.example.com. (
                              3         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      dns.example.com.
dns      IN      A       192.168.1.16
www     IN      A       192.168.1.14

/etc/bind/db.192

sudo vim /etc/bind/db.192

;
; BIND reverse data file for local loopback interface
;
$TTL    604800
@       IN      SOA     ns.example.com. root.example.com. (
                              3         ; Serial
                         604800         ; Refresh
                          86400         ; Retry
                        2419200         ; Expire
                         604800 )       ; Negative Cache TTL
;
@       IN      NS      ns.
16      IN      PTR     dns.example.com.
14      IN      PTR     www.example.com.
informatica/linux/bind.1290271644.txt.gz · Last modified: 2015/04/13 20:19 (external edit)