dns - bind9 přednášející vaše jméno. master and caching name server options { directory...

9
DNS - BIND9 Přednášející Vaše jméno

Upload: emma-sparks

Post on 06-Jan-2018

214 views

Category:

Documents


1 download

DESCRIPTION

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;}; };

TRANSCRIPT

Page 1: 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;

DNS - BIND9

PřednášejícíVaše jméno

Page 2: 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;

Master and caching name serveroptions { 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;};};

Page 3: 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;

Slave and caching name serveroptions { 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;};};

Page 4: 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;

Caching name serveroptions { 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;};};

Page 5: 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;

Root servers

. 3600000 IN NS A.ROOT-SERVERS.NET. A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 ; . 3600000 NS B.ROOT-SERVERS.NET. B.ROOT-SERVERS.NET. 3600000 A 192.228.79.201;. 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 ; . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 ; End of File

Page 6: 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;

localhost$TTL 86400 ; 24 hours could have been written as 24h $ORIGIN localhost. ; line below = localhost 1D IN SOA localhost root.localhost @ 1D IN SOA @ root (

2002022401 ; serial 3H ; refresh 15 ; retry 1w ; expire 3h ; minimum )

@ 1D IN NS @ 1D IN A 127.0.0.1

Page 7: 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;

Localhost reverse

$TTL 86400 ;

; could use $ORIGIN 0.0.127.IN-ADDR.ARPA. @ IN SOA localhost. root.localhost. (

1997022700 ; Serial 3h ; Refresh 15 ; Retry 1w ; Expire 3h ) ; Minimum

IN NS localhost. 1 IN PTR localhost.

Page 8: 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;

Example.com$TTL 86400 ; 24 hours could have been written as 24h or 1d $ORIGIN example.com. @ 1D IN SOA ns1.example.com.

hostmaster.example.com. ( 2002022401 ; 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 192.168.0.1 ;name server definitionwww 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

Page 9: 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;

Example.com reverse map$TTL 86400 ; 24 hours could have been written as 24h or 1d $ORIGIN 0.168.192.IN-ADDR.ARPA. @ 1D IN SOA ns1.example.com. mymail.example.com. (

2002022401 ; serial 3H ; refresh 15 ; retry 1w ; expire 3h ; minimum )

; server host definitions1 IN PTR ns1.example.com.2 IN PTR www.example.com. ; non server domain

hosts3 IN PTR bill.example.com. 4 IN PTR fred.example.com.