1 / 12

中文 DNS 介紹

中文 DNS 介紹. 主講人 國立中正大學電算中心 郭錦賢先生. DNS 的結構. DNS 的運作. 中文 DNS 的程式安裝. 一般而言,您的作業系統即會有附 DNS 的套件,若您找不到可至下列說明處下載 英文: 可由 http://www.isc.org/products/BIND/ 取得,建議您下載 8.2.3 以上的版本,較沒有安全上的問題 . 中文: 若您要安裝中文的 DNS 系統,可由 http://cdns.twnic.net.tw 中的軟體下載中取得.

sage
Download Presentation

中文 DNS 介紹

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 中文DNS介紹 主講人 國立中正大學電算中心 郭錦賢先生

  2. DNS的結構

  3. DNS的運作

  4. 中文DNS 的程式安裝 • 一般而言,您的作業系統即會有附 DNS 的套件,若您找不到可至下列說明處下載 • 英文: 可由 http://www.isc.org/products/BIND/取得,建議您下載 8.2.3 以上的版本,較沒有安全上的問題. • 中文: 若您要安裝中文的 DNS 系統,可由 http://cdns.twnic.net.tw中的軟體下載中取得. • 安裝流程: 可參考 http://cdns.twnic.net.tw 中的問答集.以下僅簡單的介紹 • .i386.RPM: rpm -ivh --force --nodeps cbind-* • .src.RPM: rpm --rebuild cbind-8.2.3-1.src.rpm • .tar.gz: tar –zxvf bind-*.tar.gz (附檔名 .tar.Z , .tgz) • ./configure (視版本而定,並非皆有此一指令) • make • make install

  5. Bind 相關的設定檔 • /etc/named.boot 4.X 版的設定檔 • /etc/named.conf 8.X 版的設定檔 • /var/named/named.ca Root Server 的所在 • /var/named/* 正反解檔等,一般常放的位置 • /var/named/named.hosts • /var/named/named.rev

  6. 主要設定檔 /etc/named.conf(範例) • options { • directory "/var/named"; • }; • zone "." { • type hint; • file "named.ca"; • }; • zone "0.0.127.in-addr.arpa"{ • type master; • file "named.local"; • }; • zone "ccu.edu.tw"{ • type master; • file "named.hosts"; • allow-update{ • none; • }; • };

  7. 主要設定檔 /etc/named.conf(續) • zone "123.140.in-addr.arpa"{ • type master; • file "named.rev"; • }; • zone "中正.教育.tw"{ • type master; • file "named.hosts"; • allow-update{ • none; • }; • }; • zone "中正.tw"{ • type master; • file "named.hosts"; • allow-update{ • none; • }; • };

  8. 主要設定檔 /etc/named.conf(續) • zone "中正"{ • type master; • file "named.hosts"; • allow-update{ • none; • }; • }; • zone "銝剜迤.獙U~Y鋓B?tw"{ • type master; • file "named.hosts.utf8"; • allow-update{ • none; • }; • }; • zone "中正大學.教育.tw"{ • type master; • file "named.hosts"; • allow-update{ • none; • }; • };

  9. /var/named/named.hosts(範例) • ; mdns: /var/named/named.hosts • ; • ; ccu zone hosts file for server mdns • ; • ;$ORIGIN 中正.教育.tw. • $TTL 36000 • @ IN SOA mdns.ccu.edu.tw. root.mdns.ccu.edu.tw. ( • 2001092102 ; Serial • 21600 ; Refresh 6 hours • 3600 ; Retry 1 hour • 1209600 ; Expire 14 days • 172800 ) ; Minimum 2 days • IN A 140.123.5.1 • IN NS mdns.ccu.edu.tw. • IN NS twnic.net.tw. • IN MX 0 mdns.ccu.edu.tw. • IN MX 10 twnic.net.tw.

  10. /var/named/named.hosts(續) • comm IN NS ee.ccu.edu.tw. • IN NS suncc.ccu.edu.tw. • IN MX 20 relay.ccu.edu.tw. • IN MX 30 relay.edu.tw. • 通訊 IN CNAME www.comm.ccu.edu.tw. • 通訊所 IN CNAME www.comm.ccu.edu.tw. • bbs IN A 140.123.11.90 • IN MX 0 bbs.ccu.edu.tw. • IN MX 20 relay.ccu.edu.tw. • IN MX 30 relay.edu.tw. • 寂寞芳心 IN CNAME bbs.ccu.edu.tw. • 寂寞芳心小站 IN CNAME bbs.ccu.edu.tw. • 蓋世引擎 IN CNAME gais.cs.ccu.edu.tw. • 郵件 IN CNAME ccunix.ccu.edu.tw.

  11. /var/named/named.rev(範例) • $ORIGIN 123.140.in-addr.arpa. • @ IN SOA mdns.ccu.edu.tw. root.mdns.ccu.edu.tw. ( • 2001091001 ; serial • 21600 ; refresh • 3600 ; retry • 1209600 ; expire • 172800 ; default_ttl • ) • @ IN NS mdns.ccu.edu.tw. • @ IN NS suncc.ccu.edu.tw. • @ IN NS ccunix.ccu.edu.tw. • @ IN NS dns2.ccu.edu.tw. • ; • ; • 1.5 IN PTR mdns.ccu.edu.tw.

  12. Big5轉碼utf8 • cat named.hosts.big5 | ./b5tou8 > named.hosts.utf8 • 其他轉碼方式

More Related