[PLUTO-help] DNS

Micky Del Favero micky a mesina.net
Sab 13 Gen 2007 17:17:57 CET


"Renato Silli" <r.silli a insean.it> writes:

> Tutto funziona ma c'è un gran casino tra IP pubb e IP priv con BIND4 
> CHIEDO UN AIUTO PER CAPIRE COME FAR CONVIVERE IP PUBB E PRIV

puoi far convire ip pubblici e privati senza problemi, ad es:

/var/cache/bind/named.example.com

$TTL 86400      ; 1 day
@                       IN SOA  ns.example.com. hostmaster.example.com. (
                                2006012101 ; serial
                                3600       ; refresh (1 hour)
                                7200       ; retry (2 hours)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                IN      NS              ns.example.com.
                IN      A               12.34.56.78
                IN      MX      10      mail.example.com.

;; name server ip pubblic
ns              IN      A               12.34.56.100
;; mail server
mail            IN      A               12.34.56.200
;; web server
www             IN      A               12.34.56.78

;; client, ip privati
dhcp-1          IN      A               10.11.12.1
dhcp-2          IN      A               10.11.12.2
dhcp-3          IN      A               10.11.12.3

ma sarebbe meglio che quello che non deve essere conosciuto all'esterno
non sia visibile, per cui usa le viwe di bind9, ad es.

/etc/bind/named.conf

... 
view "internal" {
        match-clients { 127.0.0.1/8;
                        10.11.12.0/24;
        };
        # ...
        zone "example.com" {
                type master;
                file "int/named.example.com";
        };
        # ...
}
        
view "external" {
        match-clients { any; };
        # ...
        zone "example.com" {
                type master;
                file "ext/named.example.com";
        };
        # ...
}


/var/cache/bind/int/named.example.com

$TTL 86400      ; 1 day
@                       IN SOA  ns.example.com. hostmaster.example.com. (
                                2006012101 ; serial
                                3600       ; refresh (1 hour)
                                7200       ; retry (2 hours)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                IN      NS              ns.example.com.
                IN      A               10.11.12.78
                IN      MX      10      mail.example.com.

;; name server
ns              IN      A               10.11.12.100
;; mail server
mail            IN      A               10.11.12.200
;; web server
www             IN      A               10.11.12.78

;; client, ip privati
dhcp-1          IN      A               10.11.12.1
dhcp-2          IN      A               10.11.12.2
dhcp-3          IN      A               10.11.12.3



/var/cache/bind/ext/named.example.com

$TTL 86400      ; 1 day
@                       IN SOA  ns.example.com. hostmaster.example.com. (
                                2006012101 ; serial
                                3600       ; refresh (1 hour)
                                7200       ; retry (2 hours)
                                604800     ; expire (1 week)
                                86400      ; minimum (1 day)
                                )
                IN      NS              ns.example.com.
                IN      A               12.34.56.78
                IN      MX      10      mail.example.com.

;; name server
ns              IN      A               12.34.56.100
;; mail server
mail            IN      A               12.34.56.200
;; web server
www             IN      A               12.34.56.78

> GRAZIE

Prego, Micky
-- 
What's this hash prompt on my terminal mean?
Micky Del Favero  -  System Manager  &  BOFH



More information about the pluto-help mailing list