資源描述:
《linux下架設(shè)dns服務(wù)器的架設(shè)》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在應(yīng)用文檔-天天文庫。
1、DNS服務(wù)器的架設(shè)實驗環(huán)境:AS4最小化安裝實驗?zāi)繕耍杭茉O(shè)DNS服務(wù)器編輯:crazylinux2007.03.22聯(lián)系方式:http://crazylinux.cublog.cn大家好!這次我們來學(xué)習(xí)Linux系統(tǒng)中的DNS服務(wù)器的配置。首先我們需要安裝bind軟件,它位于AS4的第四章光盤中,[root@localhost~]#rpm-ivh/media/cdrom/RedHat/RPMS/bind-9.2.4-2.i386.rpm[root@localhost~]#rpm-ivh/media/cdrom/RedHat/RPMS/cachi
2、ng-nameserver-7.3-3.noarch.rpm[root@localhost~]#rpm-qa
3、grepbindbind-utils-9.2.4-2bind-9.2.4-2bind-libs-9.2.4-2ypbind-1.17.2-3[root@localhost~]#rpm-qa
4、grepcachingcaching-nameserver-7.3-3我們架設(shè)DNS服務(wù)器需要這些軟件,實例情況:主域名服務(wù)器的地址是192.168.1.2,從域名服務(wù)器的地址是192.168.1.3winxpIP地址是192.168.1.174在主
5、域名服務(wù)器中添加ltest.com域名區(qū)域下面我們就來架設(shè)主域名服務(wù)器1,軟件安裝完后我們修改配置文件[root@localhost~]#vi/etc/named.conf修改完后的named.conf如下:[root@localhost~]#cat/etc/named.conf////named.confforRedHatcaching-nameserver//options{directory"/var/named";dump-file"/var/named/data/cache_dump.db";statistics-file"/var/
6、named/data/named_stats.txt";/**Ifthereisafirewallbetweenyouandnameserversyouwant*totalkto,youmightneedtouncommentthequery-source*directivebelow.PreviousversionsofBINDalwaysasked*questionsusingport53,butBIND8.1usesanunprivileged*portbydefault.*///query-sourceaddress*port53;};
7、////acachingonlynameserverconfig//controls{inet127.0.0.1allow{localhost;}keys{rndckey;};};zone"."IN{typehint;file"named.ca";};zone"localdomain"IN{typemaster;file"localdomain.zone";allow-update{none;};};zone"localhost"IN{typemaster;file"localhost.zone";allow-update{none;};};z
8、one"ltest.com"IN{typemaster;file"ltest.com.zone";};zone"1.168.192.in-addr.arpa"IN{typemaster;file"192.168.1.rev";};zone"0.0.127.in-addr.arpa"IN{typemaster;file"named.local";allow-update{none;};};zone"0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa"IN{t
9、ypemaster;file"named.ip6.local";allow-update{none;};};zone"255.in-addr.arpa"IN{typemaster;file"named.broadcast";allow-update{none;};};zone"0.in-addr.arpa"IN{typemaster;file"named.zero";allow-update{none;};};include"/etc/rndc.key";2建立正向和反向區(qū)域文件[root@localhostnamed]#cd/var/name
10、d/[root@localhostnamed]#cplocalhost.zoneltest.com.zone把localhost的摸版cp后修改嘿嘿修