linux--dns伺服器

來源:互聯網
上載者:User

標籤:網域名稱伺服器   linux   ip地址   網路   電腦   

         DNS伺服器是電腦網域名稱系統 (Domain Name System 或Domain Name Service) 的縮寫,它是由網域名稱解析器和網域名稱伺服器組成的。網域名稱伺服器是指儲存有該網路中所有主機的網域名稱和對應IP地址,並具有將網域名稱轉換為IP地址功能的伺服器。


1.rpm -qa|grep bind       如舊,查看服務是否安裝。
650) this.width=650;" alt="圖片" src="http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/NjeVgNpnhtrHofYOQTimjh0wkCNDdlluC4cyDF5YvIc!/b/dA4xtOnSIgAA&bo=iAEeAAAAAAADALI!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:392px;height:30px;" />

2.vim /etc/named.conf        編輯設定檔。
650) this.width=650;" alt="圖片" src="http://b391.photo.store.qq.com/psb?/V10HoZq923s0qn/J*cw1uxI9gzXJUBe9ftiqsyl6flzcim9w4gF4CuV0nU!/b/dKGoG.l0FAAA&bo=hwEfAAAAAAADALw!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:391px;height:31px;" />

3.如。
650) this.width=650;" alt="圖片" src="http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/5GDleTg8wIXKRxq1JGABOgCGCrk.eMwoVAEBCDOe1zw!/b/dJo6tOnWIgAA&bo=kALWAQAAAAADAGA!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:656px;height:470px;" />

4.vim /etc/named.rfc1912.zones         編輯設定檔。
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/HnUWrM33Z.ytTX.Fb.Gaibjmzd73vKlh4FjTQcr7acI!/b/dAxX4urpIQAA&bo=ngEwAAAAAAADAIo!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:414px;height:48px;" />

5. 如。(想想兩個設定檔的作用)
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/4FM..WVeMjyNSUNn0quKuwxFGofyHlBa6T*UfIpjh*U!/b/dII93OrqIQAA&bo=lALZAQAAAAADAGs!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:660px;height:473px;" />

6.   cp -p /var/named/named.localhost   /var/named/yzh.com.zone           拷貝一份模板作正向解析配置。
650) this.width=650;" alt="圖片" src="http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/CplFt6Z*x2rvRj2NouIu4VExGeuIjbacl7DnByvUNeg!/b/dCc2senSIgAA&bo=cgIZAAAAAAADAEw!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:626px;height:25px;" />

7.   cp -p /var/named/named.localhost   /var/named/172.16.109.zero           拷貝一份模板作反向解析配置。 同上。
650) this.width=650;" alt="圖片" src="http://b391.photo.store.qq.com/psb?/V10HoZq923s0qn/l3rV4XLCRpB6c9gPIihSB0yaHRvWoErXIMOMwbf2a8w!/b/dGEMFOlFFAAA&bo=jQIcAAAAAAADALY!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:653px;height:28px;" />

8.vim /var/named/yzh.com.zone           編輯正向解析設定檔
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/U0iidyA5h5LNhyoBhzHACGMmaMNsiWSStNoX*95qnCM!/b/dHVB2ernIQAA&bo=jwEXAAAAAAADALw!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:399px;height:23px;" />

9.如。(重要)
650) this.width=650;" alt="圖片" src="http://b392.photo.store.qq.com/psb?/V10HoZq923s0qn/yW2HFtWedaT8j3f75TYmnmMCukzgLDXWPmjlDYzZ*U4!/b/dOMQqOnVIgAA&bo=lgLcAQAAAAADAGw!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:662px;height:476px;" /> 
10.vim /etc/named/172.16.109.zero       編輯反向解析反向檔案
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/76*CxfX5zKJjHvubQVPj5oCui.PS0jURpBUHrD8BdQA!/b/dJ9f4urrIQAA&bo=iwEcAAAAAAADALM!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:395px;height:28px;" />
11.如。(重要)
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/yY1yJwO7.CS0BPfDp.3N7uR*SeybuPIGQDBCOT9AC7I!/b/dF812erBIQAA&bo=lwLcAQAAAAADAG0!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:663px;height:476px;" />


12.service  named  start      啟動dns服務
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/iw*xqgjuDC*o3uTLO*lwjjN5V98hVWxPb7FT9bQnXHA!/b/dAkO5.rWIQAA&bo=JAJCAAAAAAADAEE!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:548px;height:66px;" />





13. 在windoxia改本地串連的DNS地址,如。
650) this.width=650;" alt="圖片" src="http://b394.photo.store.qq.com/psb?/V10HoZq923s0qn/GwdcZ7eqKeXTMHxfb8nkrmRQRWZy.raE621cKhdm6NQ!/b/dHdF3OrmIQAA&bo=fwHNAAAAAAADAJY!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:383px;height:205px;" />

14.開啟cmd,輸入     nslookup       驗證。   依次輸入:        www.yzh.com       ftp.yzh.com   dns1.yzh.com   mail.yzh.com     
     反之---輸入IP也行。
650) this.width=650;" alt="圖片" src="http://b391.photo.store.qq.com/psb?/V10HoZq923s0qn/VmA*Gnp5FIQu6Cek*g5QGIopka1YdLKd8w0T8KyGVqk!/b/dC54D.lbFAAA&bo=VAKcAQAAAAADAO4!" style="margin:0px;padding:0px;border-width:0px;border-style:none;vertical-align:top;width:596px;height:412px;" />


15.成功。                 



本文出自 “心遠,路遠。” 部落格,請務必保留此出處http://yzh123.blog.51cto.com/9014017/1551745

linux--dns伺服器

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.