DNS BIND 9 Pednejc Vae jmno Master and
DNS - BIND 9 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 {192. 168. 23. 1; 192. 168. 23. 2; ); }; zone "0. 168. 192. IN-ADDR. ARPA" in{ type master; file “ 192. 168. 0. rev"; }; zone "localhost" in{ type master; file “master. localhost"; allow-update{none; }; }; zone "0. 0. 127. in-addr. arpa" in{ type master; file “localhost. rev"; allow-update{none; }; };
Slave and caching name server options { directory "/var/named"; allow-notify {192. 168. 0. 1}; allow-transfer {“none”; }; }; zone ". " { type hint; file “root. servers"; }; zone "example. com" in{ type slave; file "slave/slave. example. com"; masters {192. 168. 0. 1; }; }; zone "0. 168. 192. IN-ADDR. ARPA" in{ type slave; file "sec. 192. 168. 0. rev "; masters {192. 168. 0. 1; }; }; zone "localhost" in{ type master; file “pri. localhost"; allow-update{none; }; }; zone "0. 0. 127. in-addr. arpa" in{ type master; file “localhost. rev"; allow-update{none; }; };
Caching name server options { directory "/var/named"; allow-notify {192. 168. 0. 1}; allow-query {192. 168. 3. 0/24; }; }; zone ". " { type hint; file “root. servers"; }; zone "localhost" in{ type master; file “master. localhost"; allow-update{none; }; }; zone "0. 0. 127. in-addr. arpa" in{ type master; file “localhost. rev"; allow-update{none; }; };
Root servers. 3600000 IN A. ROOT-SERVERS. NET. 3600000 ; . 3600000 B. ROOT-SERVERS. NET. 3600000 ; . 3600000 L. ROOT-SERVERS. NET. 3600000 ; . 3600000 M. ROOT-SERVERS. NET. 3600000 ; End of File NS A A. ROOT-SERVERS. NET. 198. 41. 0. 4 NS A B. ROOT-SERVERS. NET. 192. 228. 79. 201 NS A L. ROOT-SERVERS. NET. 198. 32. 64. 12 NS A M. ROOT-SERVERS. NET. 202. 12. 27. 33
localhost $TTL 86400 ; 24 hours could have been written as 24 h $ORIGIN localhost. ; line below = localhost 1 D IN SOA localhost root. localhost @ 1 D IN SOA @ root ( 2002022401 ; serial 3 H ; refresh 15 ; retry 1 w ; expire 3 h ; minimum ) @ 1 D IN NS @ 1 D IN A 127. 0. 0. 1
Localhost reverse $TTL 86400 ; ; could use $ORIGIN 0. 0. 127. IN-ADDR. ARPA. @ IN SOA localhost. root. localhost. ( 1997022700 ; Serial 3 h ; Refresh 15 ; Retry 1 w ; Expire 3 h ) ; Minimum IN NS localhost. 1 IN PTR localhost.
Example. com $TTL 86400 ; 24 hours could have been written as 24 h or 1 d $ORIGIN example. com. @ 1 D IN SOA ns 1. example. com. hostmaster. example. com. ( 2002022401 ; serial 3 H ; refresh 15 ; retry 1 w ; expire 3 h ; minimum ) IN NS ns 1. example. com. ; in the domain IN NS ns 2. smokeyjoe. com. ; external to domain IN MX 10 mail. another. com. ; external mail provider ; server host definitions ns 1 IN A 192. 168. 0. 1 ; name server definition www IN A 192. 168. 0. 2 ; web server definition ftp IN CNAME www. example. com. ; ftp server definition bill IN A 192. 168. 0. 3 fred IN A 192. 168. 0. 4
Example. com reverse map $TTL 86400 ; 24 hours could have been written as 24 h or 1 d $ORIGIN 0. 168. 192. IN-ADDR. ARPA. @ 1 D IN SOA ns 1. example. com. mymail. example. com. ( 2002022401 ; serial 3 H ; refresh 15 ; retry 1 w ; expire 3 h ; minimum ) ; server host definitions 1 IN PTR ns 1. example. com. 2 IN PTR www. example. com. ; non server domain hosts 3 IN PTR bill. example. com. 4 IN PTR fred. example. com.
- Slides: 9