Solaris上的域名系統(tǒng)配置_第1頁
Solaris上的域名系統(tǒng)配置_第2頁
Solaris上的域名系統(tǒng)配置_第3頁
Solaris上的域名系統(tǒng)配置_第4頁
Solaris上的域名系統(tǒng)配置_第5頁
全文預(yù)覽已結(jié)束

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、Solaris上的域名系統(tǒng)配置   2003-7-21   1. 有關(guān)域名的說明TCP/IP域名影響TCP/IP主機(jī)的地址翻譯,即主機(jī)名到地址的轉(zhuǎn)換。此外,域名也影響郵件交換,即郵件地址到郵件服務(wù)器的映射。Internet上的域名通常帶有后綴,但實(shí)際配置中可以不給出后綴。域名系統(tǒng)包括域名服務(wù)器(DNS)和域名客戶機(jī)。一個(gè)TCP/IP客戶(如MS Windows)通常通過以下幾種方式查找某個(gè)主機(jī)的地址:· 使用HOSTS文件,在該文件中給出名字/地址表;· 使用WINS協(xié)議,給出WINS服務(wù)器地址;· 使用DNS,這時(shí)需要給出域名服務(wù)器

2、(DNS)地址。 2. 相關(guān)文件和DNS配置相關(guān)的文件包括:· /etc/defaultdomain· /etc/nsswitch.conf· /etc/resolv.conf· /etc/named.boot· 以及和具體域名配置的"主機(jī)"、"本地網(wǎng)絡(luò)"、"反向"、"Cache"等四個(gè)文件。這里的四個(gè)文件的路徑以及文件名均在文件"/etc/named.boot"中給出。以下的示例中,路徑使用"/var/named",四個(gè)文件

3、分別為named.hosts,named.local,named.rev和named.ca。以上文件權(quán)限只需root可讀即可。3. DNS具體配置說明(1) /etc/defaultdomain"/etc/defaultdomain"文件給出確省域名,該文件內(nèi)容為域名名稱,例如:so.unis表示缺省域名為"so.unis",以后僅使用某個(gè)主機(jī)名時(shí),系統(tǒng)假設(shè)為缺省域中的主機(jī)。例如,"ping www"將被理解為"ping http:/www.so.unis"。(2) /etc/nsswitch.conf如果使用DN

4、S,則必須在該文件的"HOST"一項(xiàng)中給出"DNS"。缺省為使用文件,即"FILES",該選項(xiàng)可以保留。例如:# /etc/nsswitch.files:hosts: dns files(3) /etc/resolv.conf該文件給出域名和域名服務(wù)器地址。例如:; /etc/resolv.conf file domain so.unis ;域名nameserver ;域名服務(wù)器地址;域名服務(wù)器地址可以給出多個(gè)(4) /etc/named.boot該文件指明DNS所需具體文件的路徑和文件名。例如:; name

5、d.boot filedirectory /var/named;文件所在路徑,通常使用/var/namedcache . named.ca ;dns cache file,其中點(diǎn)表示當(dāng)前域primary so.unis named.hosts ;dns host filesecondary unis ;另一個(gè)域"unis"的DNS地址primary 0.0.127. named.local;local dns file,為本地子網(wǎng)primary 99.168.192. named.re

6、v;named rev file,本子網(wǎng)為 (5) /var/named/named.hosts說明如下:; named.hosts - dns file; SOA recso.unis. IN SOA dns.so.unis. root.dns.so.unis. (;SOA記錄,;dns.so.unis為DNS對應(yīng)的主機(jī);root.dns.so.unis為主機(jī)的管理員用戶為root;以上的域、主機(jī)及用戶后均需要跟上點(diǎn)1998120816 ;dns序列號(hào),可以使用年月日時(shí)10800 ;refresh after 3 hours10800 ;retry after 3 h

7、our604800 ;expire after 1 week86400) ;minimum TTL of 1 dayso.unis. IN NS dns.so.unis.;name server;以下為主機(jī)/地址對應(yīng)表dns.so.unis. IN A localhost IN A dbserver.so.unis. IN A http:/www.so.unis. IN A mail.so.unis. IN A ftp.so.unis IN A ;mail

8、exchangeso.unis IN MX 1 mail.so.unis.(6) /var/named/named.local; named.local - dns file; SOA . IN SOA dns.so.unis. root.dns.so.unis. (1998120816 ;serial number10800 ;refresh after 3 hours10800 ;retry after 3 hour604800 ;expire after 1 week86400) ;minimum TTL of 1 day;name serv

9、. IN NS . IN PTR localhost(7) /var/named/named.rev; named.rev - dns file; SOA . IN SOA dns.so.unis. root.dns.so.unis. (19981208 ;serial number10800 ;refresh after 3 hours10800 ;retry after 3 hour604800 ;expire after 1

10、week86400) ;minimum TTL of 1 day;name . IN NS . IN PTR dns.so.unis.(8) /var/named/named.ca; named.ca - dns cache file; IN SOA dns.so.unis. root.dns.so.unis. (1998120815 ;serial number10800 ;refresh after 3 hours3600 ;retry after 3 hou

11、r604800 ;expire after 1 week86400) ;minimum TTL of 1 day;dns.so.unis. 999999 IN A 99.168.192.. IN NS so.unis.dns.so.unis. IN A 4. 配置文件示例溫州甌海法院DNS配置:域名為:oh.wz.zj,主子網(wǎng)為,DNS地址為,主機(jī)名為"ohfy"。文件內(nèi)容如下:(1) /etc/defaultdomainoh.wz.zj(2) /etc/nsswit

12、ch.conf# /etc/nsswitch.files:# "hosts:" and "services:" in this file are used only if the# /etc/netconfig file has a "-" for nametoaddr_libs of "inet" transports.passwd: filesgroup: fileshosts: dns filesnetworks: filesprotocols: filesrpc: filesethers: filesnet

13、masks: files bootparams: filespublickey: files# At present there isn't a 'files' backend for netgroup; the system will # figure it out pretty quickly, and won't use netgroups at group: filesautomount: filesaliases: filesservices: filessendmailvars: files(3) /etc/resolv.conf; /

14、etc/resolv.conf file for dnsmaster (E450); written in 1998-12-8, UNIS;domain oh.wz.zj ;This domain namenameserver ;this domain name server;nameserver 202.x.x.x ;parent dns server(4) /etc/named.boot; /etc/named.boot file for dnsmaster (E450); written in 1998-12-8, UNIS;directory /var/namedc

15、ache . named.ca ;dns cache fileprimary oh.wz.zj named.hosts ;dns host file;secondary wz.zj 202.x.x.xprimary 0.0.127. named.local ;local dns fileprimary 6.3.203. named.rev ;named rev file(5) /var/named/named.ca; named.ca - dns cache file; written in 1998-12-8, tusc; IN SOA ohf

16、y.oh.wz.zj. root.ohfy.oh.wz.zj. (1998120815 ;serial number10800 ;refresh after 3 hours3600 ; retry after 3 hour604800 ; expire after 1 week86400) ; minimum TTL of 1 day;ohfy.oh.wz.zj. 999999 IN A ;wz. IN NS . IN NS oh.wz.zj.ohfy.oh.wz.zj. IN A (6) /var/nam

17、ed/named.hosts; db.oh - dns file; written in 1998-12-8, tusc; SOA recoh.wz.zj. IN SOA ohfy.oh.wz.zj. root.ohfy.oh.wz.zj. (1998120816 ;serial number10800 ;refresh after 3 hours10800 ; retry after 3 hour604800 ; expire after 1 week86400) ; minimum TTL of 1 day;name serveroh.wz.zj. IN NS ohfy.oh.wz.zj.

18、;addressohfy.oh.wz.zj. IN A localhost IN A dbserver.oh.wz.zj. IN A http:/www.oh.wz.zj. IN A mail.oh.wz.zj. IN A ftp IN A ;wz.zj. IN A 202.x.x.x ;parent dns server;mail exchangeoh.wz.zj IN MX 1 mail.oh.wz.zj.(7) /var/named/named.local; named.local - dns file; written in 1998-12-8, tusc; SOA . IN SOA ohfy.oh.wz.zj. root.ohfy.oh

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論