DNS主從服務(wù)器
發(fā)布日期:2019-01-05 12:07 | 文章來源:互聯(lián)網(wǎng)
服務(wù)器搭建
環(huán)境要求為減輕主DNS的資源,搭建從DNS服務(wù)器獲取資源
root@localhost~#vi/etc/named.confoptions{listen-onport53{192.168.216.151;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/named/data/named_mem_stats.txt";allow-query{any;};#允許任意來訪地址allow-transfer{IP;};#從DNS服務(wù)器IPrecursionyes;root@localhost~#vi/etc/named.rfc1912.zoneszone"baidu.com."IN{typemaster;file"baidu.localhost";allow-update{none;};};zone"216.168.192.in-addr.arpa"IN{typemaster;file"baidu.empty";allow-update{none;};};root@localhost~#cd/var/named/root@localhostnamed#cp-pnamed.localhostbaidu.localhostroot@localhostnamed#cp-pnamed.emptybaidu.emptyroot@localhostnamed#ls-l總用量36-rw-r-----.1rootnamed15212月152009baidu.empty-rw-r-----.1rootnamed1526月212007baidu.localhostDNS分離搭建root@localhostnamed#vibaidu.localhost$TTL1D@INSOAbaidu.com.rname.invalid.;minimumNSdns.baidu.com.MX5mail.baidu.com.dnsA192.168.216.151wwwA192.168.216.152mailA192.168.216.153
從DNS服務(wù)器配置文件:
root@localhost~#vi/etc/named.confoptions{listen-onport53{從DNS的IP地址;};listen-on-v6port53{::1;};directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/named/data/named_stats.txt";memstatistics-file"/var/named/data/named_mem_stats.txt";allow-query{從DNS的ip;};
配置從DNS區(qū)域文件
root@localhost~#vi/etc/named.rfc1912.zoneszone"baidu.com"IN{typemaster;file"baidu.localhost";allow-update{none;};masters{主DNS的ip;};};zone"反網(wǎng)絡(luò).in-addr.arpa"IN{typemaster;file"baidu.empty";allow-update{none;};masters{主DNSip;};#新加如的內(nèi)容};
Tags:服務(wù)器搭建,DNS主從服務(wù)器
版權(quán)聲明:本站文章來源標(biāo)注為YINGSOO的內(nèi)容版權(quán)均為本站所有,歡迎引用、轉(zhuǎn)載,請(qǐng)保持原文完整并注明來源及原文鏈接。禁止復(fù)制或仿造本網(wǎng)站,禁止在非www.sddonglingsh.com所屬的服務(wù)器上建立鏡像,否則將依法追究法律責(zé)任。本站部分內(nèi)容來源于網(wǎng)友推薦、互聯(lián)網(wǎng)收集整理而來,僅供學(xué)習(xí)參考,不代表本站立場(chǎng),如有內(nèi)容涉嫌侵權(quán),請(qǐng)聯(lián)系alex-e#qq.com處理。
相關(guān)文章