Buongiorno a tutti, chiedo lumi per poter risolvere e chiarirmi le idee con la configurazione di Bind e Dominio internet. Allora: ho configurato Bind per risolvere gli indirizzi della mia rete lan, tutto funziona perfettamente, testato anche il reverse, e tutto è ok. Tempo fa ho registrato un dominio; vorrei associarlo al mio NS, così sono andato sul sito dove l'ho registrato, ed ho cambiato i parametri del NS, mettendoci come server il mio IP pubblico... Mi sa però che mi sono perso qualcosa... ho aspettato 24 ore, ma se digito da una rete esterna la mia lan il mio indirizzo di dominio mi dice che non trova niente....
Posto di seguito i file di configurazione del mio Bind:
named.conf
// This is the primary configuration file for the BIND DNS server named.
//
// Please read /usr/share/doc/bind9/README.Debian.gz for information on the
// structure of BIND configuration files in Debian, *BEFORE* you customize
// this configuration file.
//
// If you are just adding zones, please do that in /etc/bind/named.conf.local
include "/etc/bind/named.conf.options";
// prime the server with knowledge of the root servers
zone "." {
type hint;
file "/etc/bind/db.root";
};
// be authoritative for the localhost forward and reverse zones, and for
// broadcast zones as per RFC 1912
zone "localhost" {
type master;
file "/etc/bind/db.local";
};
zone "127.in-addr.arpa" {
type master;
file "/etc/bind/db.127";
};
zone "0.in-addr.arpa" {
type master;
file "/etc/bind/db.0";
};
zone "255.in-addr.arpa" {
type master;
file "/etc/bind/db.255";
};
include "/etc/bind/named.conf.local";
------------------------------------------------------------------------------
named.conf.local
//
// 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 "miodominio.net" {
type master;
file "/etc/bind/db.lan";
};
zone "168.192.in-addr.arpa" {
type master;
file "/etc/bind/db.192.168";
---------------------------------------------------------------------------------
named.conf.option
options {
directory "/var/cache/bind";
forward first;
forwarders {
62.94.0.1;
62.94.0.2;
};
auth-nxdomain no; # conform to RFC1035
};
---------------------------------------------------------------------------------------
db.lan
;
; BIND data file for my own network
;
$TTL 10800
@ IN SOA miodominio.net. admin.miodominio.net. (
2008112506 ; Serial
10800 ; Refresh
3600 ; Retry
604800 ; Expire
3600 ) ; Negative Cache TTL
;
miodominio.net. IN TXT "miodominio.net. DNS consultants"
;
miodominio.net. IN NS dns.miodominio.net.
miodominio.net. IN MX 10 hermes.miodominio.net.
;
nettuno.miodominio.net. IN A 192.168.16.5
dns.miodominio.net. IN A 192.168.16.9
skystart.miodominio.net. IN A 192.168.16.2
nas.miodominio.net. IN A 192.168.16.4
hermes.miodominio.net. IN A 192.168.16.3
;
www.miodominio.net. IN CNAME nettuno.miodominio.net.
ftp.miodominio.net. IN CNAME nettuno.miodominio.net.
----------------------------------------------------------------------------------
db.192.168
;
; SOA: Start of authority record
;
$TTL 86400
@ IN SOA miodominio.net. admin.miodominio.net. (
2008112511 ; se = Serial Number
172800 ; ref = Refresh = 2 giorni
86400 ; ret = Update Retry = 1 giorno
1209600 ; ex = Expiry = 2 settimane
604800 ; Negative Cache TTL
)
;
@ IN NS dns.miodominio.net.
5.16 IN PTR nettuno.miodominio.net.
2.16 IN PTR skystart.miodominio.net.
9.16 IN PTR dns.miodominio.net.
4.16 IN PTR nas.miodominio.net.
3.16 IN PTR hermes.miodominio.net.
-----------------------------------------------------------------------
Ho sbagliato qualcosa? Premetto che in fatto DNS sono un pò una capra...
Grazie mille a tutti
Giacomo

Rispondi quotando