DNS


 * DNS Server**

Primary Master:

code aptitude install bind9 code ///etc/bind/named.conf.options// code auth-nxdomain no;   # conform to RFC1035 listen-on {158.38.56.68;}; recursion no; listen-on-v6 { any; };

code ///etc/bind/named.conf.local// code logging { channel 2badr-gr2_log { file "/var/log/named/2badr-gr2.testlab.aitel.hist.no.log" versions 3 size 2m; severity info; print-severity yes; print-time yes; print-category yes; }; category default { 2badr-gr2_log; }; };

zone "2badr-gr2.testlab.aitel.hist.no" { type master; file "/etc/bind/db.2badr-gr2.testlab.aitel.hist.no"; // allow-transfer {158.38.56.71;}; };

zone "56.38.158.IN-ADDR.ARPA" { type master; file "/etc/bind/db.158"; notify no; // allow-transfer {158.38.56.71;}; }; code

Kopier en template fil: code cp /etc/bind/db.local /etc/bind/db.2badr-gr2.testlab.aitel.hist.no code ///etc/bind/db.2badr-gr2.testlab.aitel.hist.no// code $TTL   604800 @      IN      SOA     ns.2badr-gr2.testlab.aitel.hist.no. root.2badr-gr2.testlab.aitel.hist.no. (                             2         ; Serial                         604800         ; Refresh                          86400         ; Retry                        2419200         ; Expire                         604800 )       ; Negative Cache TTL @      IN      NS      ns.2badr-gr2.testlab.aitel.hist.no. @      IN      A       158.38.56.68 ns     IN      A       158.38.56.68 aune   IN      A       158.38.56.73 code Kopier en template fil: code cp /etc/bind/db.127 /etc/bind/db.158 code ///etc/bind/db.158// code $TTL   604800 @      IN      SOA     ns.2badr-gr2.testlab.aitel.hist.no. root.2badr-gr2.testlab.aitel.hist.no. (                             1         ; Serial                         604800         ; Refresh                          86400         ; Retry                        2419200         ; Expire                         604800 )       ; Negative Cache TTL @      IN      NS      ns. 68     IN      PTR     ns.2badr-gr2.testlab.aitel.hist.no. 73     IN      PTR     aune.2badr-gr2.testlab.aitel.hist.no code Restart: code /etc/init.d/bind9 restart code

Sjekk CACHE: code rndc dumpdb -cache cat /var/cache/bind/named_dump.db code


 * Caching Nameserver**

Installere BIND code aptitude install bind9 code ///etc/bind/named.conf.options// code forwarders { 158.38.56.68;     };

code