Kev khi yog qhov tshwm sim ntau tshaj thiab qhib qhov kev siv DNS server ntawm kev ua tiav uas daws tau lub npe hu ua IP rau qhov chaw nyob IP thiab lwm tus ua rov qab. Cov kab ke no yog tsim los ntawm cov tub ntxhais kawm.
Nws yog qhov tsim nyog
- - khoos phis tawj;
- - Is Taws Nem.
Cov Lus Qhia
Kauj ruam 1
Kho khi txoj hlua khi kom pab rau koj tus kheej cov thawj xwb, yam tsis muaj peev xwm siv nws hauv hom DNS cached. Qhov no ua tiav vim tias feem ntau cov chaw zov me nyuam cov ntaub ntawv muaj lawv tus kheej DNS server. Txheeb xyuas cov pob hauv qab no hauv koj lub system: khi, khi-chroot rau nruab khi. Ua li no, siv cov lus txib
$ rpm -q khi
khi-9.2.4-24. EL4
$ rpm -q khi-chroot
khi-chroot-9.2.4-24. EL4.
Kauj ruam 2
Nruab lub pob thib ob los ua kom koj cov neeg rau zaub mov kom ruaj ntseg rau kev nyiag nkas, nws tso cai rau koj cais tawm los ntawm cov kab ke. Txhua cov ntaub ntawv siv los ntawm khi tom qab kev txhim kho cov pob no yuav hloov mus rau / var / npe / chroot / nplaub tshev. Tsis txhob hloov txoj hauv kev hauv cov ntaub ntawv config.
Kauj ruam 3
Nco ntsoov thaum teeb tsa khi los siv cov ntaub ntawv lub sijhawm tam sim no, yog li hloov var / npe / chroot / thiab lwm yam / thaj chaw nrog koj cov ntaub ntawv lub sijhawm. Nws yog cov ntawv uas yuav tsum tau hloov, vim tias cov cim txuas rau lwm cov ntawv yuav tsis ua haujlwm nyob rau chroot hom. Tom ntej no, teeb tsa cov var / npe / chroot / thiab lwm yam / rndc.key cov ntaub ntawv kom khiav khi. Cov ntaub ntawv no muaj qhov tseem ceeb tso cai rndc program, uas tswj cov khi neeg rau zaub mov thiab qhia txog qhov txheeb cais ntawm hits.
Kauj ruam 4
Tsim ib txoj kab hauv # dnssec-keygen -a HMAC-MD5 -b 128 -n USER rndckey, qhov kev hais kom ua no yuav tsim ob cov ntaub ntawv hauv daim nplaub tshev tam sim no. Hauv cov ntawv ntiag tug, tus yuam sij yuav tshwm sim rau kab thib peb PBpLBGUy6QRdCnUMwv9dxw ==. Tsim cov ntaub ntawv tshiab, npe nws rndc.key, ntxig rau qhov tseem ceeb "rndckey" {; algorithm hmac-md5; lus zais "PBpLBGUy6QRdCnUMwv9dxw ==".
Kauj ruam 5
Tsim cov ntawv names.com uas muaj cov yuam sij hauv qab no:
kev xaiv {
phau ntawv qhia "/ var / npe";
tsuav-cov ntaub ntawv "/var/named/data/cache_dump.db";
cov txheeb cais-cov ntaub ntawv "/var/named/data/named_stats.txt";
mloog-ntawm {127.0.0.1; };
version "tsis paub hais tias";
cia-rov qab nrhiav dua tshiab {tsis muaj; };
kheev-nug {ib qho; };
};
Hloov lub ip hauv cov ntawv nrog qhov koj xav tau. Txheeb xyuas tias txoj hlua khi tau teeb tsa tau raug siv los ua tus lej # npe-checkconf /var/named/chroot/etc/ame.conf hais kom ua.