DNS - BIND9 Přednášející Vaše jméno
Master and caching name server options { directory "/var/named"; allow-transfer {“none”;}; }; zone "." { type hint; file “root.servers"; }; zone "example.com" in{ type master; file “master/master.example.com"; allow-transfer { ; ;); }; zone " IN-ADDR.ARPA" in{ type master; file “ rev"; }; zone "localhost" in{ type master; file “master.localhost"; allow-update{none;}; }; zone " in-addr.arpa" in{ type master; file “localhost.rev"; allow-update{none;}; };
Slave and caching name server options { directory "/var/named"; allow-notify { }; allow-transfer {“none”;}; }; zone "." { type hint; file “root.servers"; }; zone "example.com" in{ type slave; file "slave/slave.example.com"; masters { ;}; }; zone " IN-ADDR.ARPA" in{ type slave; file "sec rev "; masters { ;}; }; zone "localhost" in{ type master; file “pri.localhost"; allow-update{none;}; }; zone " in-addr.arpa" in{ type master; file “localhost.rev"; allow-update{none;}; };
Caching name server options { directory "/var/named"; allow-notify { }; allow-query { /24; }; }; zone "." { type hint; file “root.servers"; }; zone "localhost" in{ type master; file “master.localhost"; allow-update{none;}; }; zone " in-addr.arpa" in{ type master; file “localhost.rev"; allow-update{none;}; };
Root servers IN NS A.ROOT-SERVERS.NET. A.ROOT-SERVERS.NET A ; NS B.ROOT-SERVERS.NET. B.ROOT-SERVERS.NET A ; NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET A ; NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET A ; End of File
localhost $TTL ; 24 hours could have been written as 24h $ORIGIN localhost. ; line below = localhost 1D IN SOA localhost 1D IN root ( ; serial 3H ; refresh 15 ; retry 1w ; expire 3h ; minimum 1D IN 1DIN A
Localhost reverse $TTL ; ; could use $ORIGIN IN SOA localhost. root.localhost. ( ; Serial 3h ; Refresh 15 ; Retry 1w ; Expire 3h ) ; Minimum IN NS localhost. 1IN PTR localhost.
Example.com $TTL ; 24 hours could have been written as 24h or 1d $ORIGIN 1DIN SOA ns1.example.com. hostmaster.example.com. ( ; serial 3H ; refresh 15 ; retry 1w ; expire 3h ; minimum ) IN NS ns1.example.com. ; in the domain IN NS ns2.smokeyjoe.com. ; external to domain IN MX 10 mail.another.com. ; external mail provider ; server host definitions ns1 IN A ;name server definition www IN A ;web server definition ftp IN CNAME ;ftp server definition bill IN A fred IN A
Example.com reverse map $TTL ; 24 hours could have been written as 24h or 1d $ORIGIN 1D IN SOA ns1.example.com. mymail.example.com. ( ; serial 3H ; refresh 15 ; retry 1w ; expire 3h ; minimum ) ; server host definitions 1INPTR ns1.example.com. 2 IN PTR ; non server domain hosts 3IN PTR bill.example.com. 4IN PTR fred.example.com.