Bind uuendamine dhcp abil: Difference between revisions

From ICO wiki
Jump to navigationJump to search
Mernits (talk | contribs)
Created page with ' ==/etc/dhcp3/dhcpd.conf== <source lang="bash"> #include "/etc/bind/rndc.key"; key "rndc-key" { algorithm hmac-md5; secret "gYb4ju1sEbgpHm10wx…'
 
Mernits (talk | contribs)
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
''SEE ON POOLELI''
==/etc/bind/named.conf.options==
<source lang="bash">
key "rndc-key" {
        algorithm hmac-md5;
        secret "gYb4ju1sEbgpHm10wxsofQ==";
};
controls {
        inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; };
};
</source>
*Muutke /etc/named kasust kasutaja named omaks
<source lang="bash">
chown bind /etc/bind
</source>


==/etc/dhcp3/dhcpd.conf==
==/etc/dhcp3/dhcpd.conf==
Line 7: Line 28:
         secret "gYb4ju1sEbgpHm10wxsofQ==";
         secret "gYb4ju1sEbgpHm10wxsofQ==";
};
};
update-static-leases on;
#ddns-update-style none;
#ddns-update-style none;
ddns-update-style interim;
ddns-update-style interim;
Line 19: Line 43:
}
}
</source>
</source>
==/etc/bind/named.conf.local==
<source lang="bash">
zone "ketas.ee"
{
        type master;
        file "/etc/bind/ketas.ee.db";
        allow-update { key "rndc-key"; };
};
// 192.168.8.
zone "8.168.192.in-addr.arpa"
{
        type master;
        file "/etc/bind/8.168.192.in-addr.arpa";
        allow-update { key "rndc-key"; };
};
</source>
[[Category:IT infrastruktuuri teenused]]
[[Category:Operatsioonisüsteemide administreerimine ja sidumine]]

Latest revision as of 11:43, 5 November 2011

SEE ON POOLELI

/etc/bind/named.conf.options

key "rndc-key" {
        algorithm hmac-md5;
        secret "gYb4ju1sEbgpHm10wxsofQ==";
};

controls {
        inet 127.0.0.1 allow {localhost; } keys { "rndc-key"; };
};
  • Muutke /etc/named kasust kasutaja named omaks
chown bind /etc/bind

/etc/dhcp3/dhcpd.conf

#include                     "/etc/bind/rndc.key";
key "rndc-key" {
        algorithm hmac-md5;
        secret "gYb4ju1sEbgpHm10wxsofQ==";
};

update-static-leases on;

#ddns-update-style none;
ddns-update-style interim;

zone ketas.ee. {
        primary 127.0.0.1;
        key "rndc-key"; 
}
zone 8.168.192.in-addr.arpa {
        primary 127.0.0.1;
        key "rndc-key";
}

/etc/bind/named.conf.local

zone "ketas.ee"
{
        type master;
        file "/etc/bind/ketas.ee.db";
        allow-update { key "rndc-key"; };
};
// 192.168.8.

zone "8.168.192.in-addr.arpa"
{
        type master;
        file "/etc/bind/8.168.192.in-addr.arpa";
        allow-update { key "rndc-key"; };


};