Next Previous Contents

4. Ejemplo en funcionamiento

Aqu� abajo tenemos un ejemplo en producci�n. Observe que podr�a no funcionar para todo el mundo, as� que, por favor, no salte directamente a esta secci�n sin leer el resto del documento.

4.1 /etc/named.conf

options {
        directory "/var/named";
        forwarders {193.75.75.193;193.75.75.75;};
        version "GoAway(TM) v 0.91";
};


acl "ADservers" {
        192.168.1.10; 192.168.1.14; 192.168.1.20;
};


// Bind conf for xxx

zone "." {
        type hint;
        file "root.hints";
};

zone "1.168.192.in-addr.arpa" {
        type master;
        file "reverse/1.168.192.db";
        allow-update {ADservers;};
};

zone "yggdrasil.com" {
        type master;
        file "etc/yggdrasil.com.db";
        check-names ignore;
        allow-update {ADservers;};
};

zone "_msdcs.yggdrasil.com" {
        type master;
        file"etc/_msdcs.yggdrasil.com.db";
        check-names ignore;
        allow-update {ADservers;};
};


zone "_sites.yggdrasil.com" {
        type master;
        file "etc/_sites.yggdrasil.com.db";
        check-names ignore;
        allow-update {ADservers;};
};

zone "_tcp.yggdrasil.com" {
        type master;
        file "etc/_tcp.yggdrasil.com.db";
        check-names ignore;
        allow-update {ADservers;};
};

zone "_udp.yggdrasil.com" {
        type master;
        file "etc/_udp.yggdrasil.com.db";
        check-names ignore;
        allow-update {ADservers;};
};

 

4.2 /var/named/

Ejecutando ls -la en /var/named

drwxr-xr-x    5 root     root         4096 Dec 18 04:20 ./
drwxr-xr-x   21 root     root         4096 Nov 20 18:34 ../
drwxr-xr-x    2 root     root         4096 Dec  1 04:16 domains/
drwxr-xr-x    2 root     root         4096 Dec 18 04:10 etc/
lrwxrwxrwx    1 root     root           15 Dec 10 13:00 named.conf -> /etc/named.conf
-rw-r--r--    1 root     root       135785 Dec  1 01:04 named.run
drwxr-xr-x    2 root     root         4096 Dec 18 01:12 reverse/
-rw-r--r--    1 root     root         2769 May 18  2001 root.hints
 

Ejecutando ls -la en /var/named/etc

drwxr-xr-x    2 root     root         4096 Dec 18 04:25 ./
drwxr-xr-x    5 root     root         4096 Dec 18 04:20 ../
-rw-------    1 root     root         1640 Dec 18 04:25 _msdcs.yggdrasil.com.db
-rw-r--r--    1 root     root        11731 Nov 19 16:14 _msdcs.yggdrasil.com.db.jnl
-rw-------    1 root     root          682 Dec 18 04:23 _sites.yggdrasil.com.db
-rw-r--r--    1 root     root         3628 Oct 29 07:31 _sites.yggdrasil.com.db.jnl
-rw-------    1 root     root          724 Dec 18 04:23 _tcp.yggdrasil.com.db
-rw-r--r--    1 root     root         4114 Oct 29 07:31 _tcp.yggdrasil.com.db.jnl
-rw-------    1 root     root          554 Dec 18 04:10 _udp.yggdrasil.com.db
-rw-r--r--    1 root     root         2187 Oct 27 12:40 _udp.yggdrasil.com.db.jnl
-rw-------    1 root     root         2108 Dec 18 04:24 yggdrasil.com.db
-rw-r--r--    1 root     root       549462 Dec 18 01:46 yggdrasil.com.db.jnl
 

Ejecutando more *a en /var/named/etc(no los ficheros .jnl)

::::::::::::::
_msdcs.yggdrasil.com.db
::::::::::::::
$ORIGIN .
$TTL 86400      ; 1 day
_msdcs.yggdrasil.com    IN SOA  isa01.yggdrasil.com. hostmaster.yggdrasil.com. (
                                200110220  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      isa01.yggdrasil.com.
$ORIGIN _msdcs.yggdrasil.com.
$TTL 600        ; 10 minutes

::::::::::::::
_sites.yggdrasil.com.db
::::::::::::::
$ORIGIN .
$TTL 86400      ; 1 day
_sites.yggdrasil.com    IN SOA  isa01.yggdrasil.com. hostmaster.yggdrasil.com. (
                                200110192  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      isa01.yggdrasil.com.
$ORIGIN _sites.yggdrasil.com.

::::::::::::::
_tcp.yggdrasil.com.db
::::::::::::::
$ORIGIN .
$TTL 86400      ; 1 day
_tcp.yggdrasil.com      IN SOA  isa01.yggdrasil.com. hostmaster.yggdrasil.com. (
                                200110195  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      isa01.yggdrasil.com.
$ORIGIN _tcp.yggdrasil.com.

::::::::::::::
_udp.yggdrasil.com.db
::::::::::::::
$ORIGIN .
$TTL 86400      ; 1 day
_udp.yggdrasil.com      IN SOA  isa01.yggdrasil.com. hostmaster.yggdrasil.com. (
                                200110188  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      isa01.yggdrasil.com.
$ORIGIN _udp.yggdrasil.com.

::::::::::::::
yggdrasil.com.db
::::::::::::::
$ORIGIN .
$TTL 86400      ; 1 day
yggdrasil.com           IN SOA  isa01.yggdrasil.com. hostmaster.yggdrasil.com. (
                                200112276  ; serial
                                28800      ; refresh (8 hours)
                                7200       ; retry (2 hours)
                                2419200    ; expire (4 weeks)
                                86400      ; minimum (1 day)
                                )
                        NS      isa01.yggdrasil.com.
$TTL 600        ; 10 minutes
                        A       192.168.1.10
                        A       192.168.1.12
                        A       192.168.1.40
                        A       192.168.1.133
$ORIGIN yggdrasil.com.
 

Next Previous Contents