Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linux:skoleni:dns [2014/09/03 10:25]
admin
linux:skoleni:dns [2014/09/03 16:25] (current)
admin [powerdns]
Line 16: Line 16:
   ​   ​
 ====== Pridani nove domeny do bindu ====== ====== Pridani nove domeny do bindu ======
 +Definice zony. Bind je velmi citlivy na uvozovky, stredniky a jina zviratka
 <file /​etc/​bind/​named.conf.local>​ <file /​etc/​bind/​named.conf.local>​
 zone "​dalibor.cz"​ { zone "​dalibor.cz"​ {
Line 23: Line 24:
 </​file>​ </​file>​
  
 +Zonovy soubor
 +<​code>​
 +$ORIGIN .
 +$TTL 8h
 +dalibor.cz. IN SOA ns.dalibor.cz. hostmaster.dalibor.cz (
 +                201401; serial
 +                8h; refresh
 +                4h; retry
 +                2d; expire
 +                8h; minimum
 +)
 +$ORIGIN dalibor.cz.
 +        IN      A       ​1.2.3.4
 +ns      IN      A       ​10.0.4.151
 +zeus    IN      A       ​10.0.4.151
 +        IN      A       ​10.0.4.190
 +        IN      A       ​10.0.4.196
 +mail    IN      A       ​10.0.4.151
 +www     ​IN ​     A       ​10.0.4.151
 +</​code>​
 +
 +<​code>​
 +//
 +// 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 "​dalibor.cz"​ {
 +        type master;
 +        allow-transfer { 10.0.4.190; };
 +        file "​dalibor.cz";​
 +};
 +
 +zone "​kotrlik.cz"​ {
 +        type slave;
 +        masters { 10.0.4.187; };
 +        file "​xxx";​
 +};
 +</​code>​
 +
 +Bind cache
 +   rndc dumpdb -cache
 ===== BIND9 ===== ===== BIND9 =====
    * filipika proti prilisnemu vztahu bind9 a rfc    * filipika proti prilisnemu vztahu bind9 a rfc
    * otazka kdo ma delat replikaci zon?    * otazka kdo ma delat replikaci zon?
 ===== powerdns ===== ===== powerdns =====
 +  apt-get install pdns-server mysql-server
 +  * http://​downloads.sourceforge.net/​project/​poweradmin/​poweradmin-2.1.7.tgz?​r=http%3A%2F%2Fwww.poweradmin.org%2F&​ts=1409754165&​use_mirror=optimate
 +
 +   ​apt-get install apache2 php5
 +
  
 ====== Zneuziti zony pescomnet.cz ====== ====== Zneuziti zony pescomnet.cz ======
 
linux/skoleni/dns.1409732709.txt.gz · Last modified: 2014/09/03 10:25 by admin