標籤:網域名稱伺服器 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伺服器