Ȼ/10

Top / Ȼ / 10

ޤǤ

ޤǤμȤɤդƤʤ⤷򤬴ǤʤȤ⤤ޤߵٶȤǼȤȤǿʬ˺ƤޤäȤʬ⤢.
Ǿ֤ꡤޤǤԤ.

DNS ȤϤʤˤ?

DNS (Domain Name System) ˤĤƳؽ褦.
ޤǤμƤ˲äƤ DNS 狼СΡɬ׺ʬδáפ褽狼äȤ뤫⤷ʤ*1.

ơDNS Ȥϥۥ̾(ܺ٤ϸҤ) IP address бϤȤ롤ۥ̾ȥͥåȥ¤бط˴ؤʬǡ١Ȥ䤤碌λȤߤǤ.
ʬĢפ⤫٤Ф褤.
web ȤäꤷƤơϴˤ褽ΤäƤȤȻפ.

 
DNS-model.png
DNS δŪ
 

ʲǹԤФ⡤ܺʬФʤ񤷤Ϥʤ*2.

ɬ DNS ȤʤȤʤ?

ȤäƤޥ򥤥󥿡ͥåȤ˷ҤΤǤФޤɬפǤȸäƤ褤.
DNS ϥ󥿡ͥåȤΥۥ̾ѤƤΥۥȤإ뤿λ¾ΡĢפʤΤǤ.
󥿡ͥåȤε礵ͤȡ¾ˡǤεǽѤΤϤۤԲǽ.

դ˸С֥󥿡ͥåȤ˷ҤʤפʤȤ⤢פΤǡ󥿡ͥåȤ˷Ҥʤʥͥåȥݤ DNS ʳ⸡Ƥ;Ϥ뤳Ȥ˺ƤϤʤ.

/etc/hosts

ۥ̾ IP ɥ쥹бʤɤΡ֥ͥåȥĢǡפ,ּΥ˽񤤤ƤפȤǤ.
ϡ /etc/hosts Ȥե˽񤭤Ǥ褤.
⤳ DNS ξΩǽǤ롥

ˡ DNS Ф԰Ǥ褦ʥͥåȥ˵ȤˤϷ빽ͭǤΤdzФƤȤ褤.
warning.png /etc/hosts ˥ۥ̾ IPɥ쥹б񤤤Ƥ˴ؤƤϡDNSФ³ǤʤǤ³ǽ. 顤ǡХååפ򤷤ƤʤɡDNSФξ֤˴طʤ³ξ /etc/hosts ˽񤤤ƤȤɤˡΤʤ.


warning.png /etc/hosts Τդ cracker virus Ѥ뤳Ȥ. ä ms-windows virus ˤ /etc/hosts ե(C:\WINDOWS\system32\drivers\etc\hosts ʤ)Խ virusкեȥ᡼ Web ˥Ǥʤ褦ˤΤʤɤΤǡms-windows, MacOS, unix Τ OS ȤäƤˤ衤/etc/hosts եΥեȤˤϻդʧä褤.

ʤ/etc/hosts ξ DNS ؤ䤤碌Τɤͥ褹뤫 /etc/nsswitch.conf ե "hosts" ܤ˽񤫤ƤǤ.
ǥեȤǤ

 hosts: files dns

ȤʤäƤꡤ/etc/hosts ͥ褹ȤˤʤäƤ.
notes.png /etc/nsswitch.conf ɤǡΤ褦ꤵƤ뤳ȤǧƤ.

DNS ֥ͥåȥʬǡ١פηǤɬ

ͥåȥε礵ȤѲᤵͤȡ쥫˥ǡ򽸤Ƥδϻ¾̵ʤȤϤ狼.
Ĥޤꡤʬơʤ٤˶ᤤʬdzơƤ餦ʬǡ١
ȤƤΤη˼ȹԤ夯ȤǤ.

ۥȡɥᥤ

webФ www.osaka-u.ac.jp Ȥ̾ΤǤ뤬ˤ褦.

ޤ www.osaka-u.ac.jp. ȺǸ˥ɥåȤĤɽǤ뤳ȤդƤ.
ǸΥɥåȤϡˤФС׾άƤǤ.
̾桼ȤƤϤϵˤɬפϤʤDNS Server κݤˤϺǸΥɥåȤάȡְִ㤨פˤʤ̤Τդ.
warning.png ʤϰռʤƤ褤ΡֺǸΥԥꥪɡפϥͥåȥǤϤ˴ФΤդ.

ƼˤȤǤ뤬 osaka-u.ac.jp Ȥɥᥤ www ȤۥȤǤ뤳Ȥ̣.
˥ɥᥤʬܤ⤹ȡΤˤϤ .(ɥå) ɽ롼ȥɥᥤ jp ɥᥤ󤬤ꡤ ac ɥᥤ󤬤ꡤˤ osaka-u ɥᥤ󤬤Ȥ¤򤷤Ƥ.
www.osaka-u.ac.jp. ޤǽ񤯤ȼΤ褦ˤʤ(Ū ֹץɥᥤ).

domain-structure.png

Ƴؤˤʣ(Ȥ¿)ɥᥤ󤬴ޤޤΤǡδط⤢碌ȤĤΤ褦ˤʤ.

domain-structure-multi.png

ʤߤˡwww.osaka-u.ac.jp Τ褦ˡۥ̾+ɥᥤ̾򤹤٤Ƥ碌Ǥ̾Τ FQDN(Fully Qualified Domain Name)Ȥ.

DNS 䤤碌ΤäѤʻȤ

DNS 䤤碌ϸΨΤ˼¤Ϸ빽ʣʻȤߤˤʤäƤΤ礶äѤ˸СơγؤΥɥᥤξĥ͡ॵз, 餬줾첼γؤΥ͡ॵз̾ΤäƤ뤳Ȥǥǡ١ʬˤʤäƤ.
ơDNS server ؤ䤤碌ȤΤϡΥФ硹˾ƵŪ䤤碌ƺǸΡ־ǤäƤץ͡ॵ(SOA: Start of Authority. ָҤγϡפʤɤľ.) 󶡤륵ФΤ)褦ˤʤäƤ.
٤Τäϥ˸Ҥ.

Τ褦ˡǡ١ع¤äʬƤơïɤΥǡǤԤʤΤǽŪ˰դ˷ޤꡤġ䤤碌Ԥ褦ˤʤäƤΤDNS λȤߤΤ褯ǤƤȤǤ.
DNS λȤߤϤʤŤˡ֥ץʤɤǤƤ.
٤ϤΤǡIJƤ.

DNS 䤤碌μ(ढ)

DNS Фؤ䤤碌ϡ礶äѤ˸äढ.
ʬˤΤǤǽ񤤤Ƥ.

ƵŪ䤤碌
ꤲŪ䤤碌. ʹ줿ϡʬΤʤ¾ΥФʹʤɤƤϫƺǽŪФʤȤʤ. ï˴ꤲΤϥǤ.
ƵŪ䤤碌
ʹôξʤ䤤碌. ʹ줿ϡ򤺤ФΤäƤ򡤤Ǥʤмʬ˶᤽ʥ͡ॵФΤäƤФΥ͡ॵФ򶵤Ǥ褤.

DNS λȤߤ餤äơïͤϺƵŪ䤤碌ƶϫʤȤʤפΤǡï뤫ݥȤȤʤ.
̾ϡDNS ؤΤʤ٤˵ƺƵŪ䤤碌ǤǽϤΤ륽եȥĤޤꤿƤ LAN DNS Server ʤɤԤȤˤʤ.

DNS

ŪˤϡDNS (ľܤ)

ۥ꤬̾ȤΥۥȤ IP ɥ쥹䡤᡼ΰۥ(᡼륵), ۥ̾̾ä̾(canonical name),
IP Address ꤬ȤΥۥ̾

ȤȤˤʤ.
DNS 䤤碌ǴŪˤϤ깭(㤨ФΥۥȤξäƤ͡ॵФϤɤ줫ʤ).

ǡΡפˤĤƤ⤦򵭤Ƥ.
ŪˤϡΡ֥쥳̾פǤ. ϡDNS Ǥ䤤碌κݤˡ֤ξ󤬲ʤΤפؤפʥǤ.

쥳̾
SOAξǤξ. Start of Authority. Ǥ̾ԥ᡼륢ɥ쥹ǡꥢʥС, ͭĹʤ.
AIP Address
AAAAIP Address(IPv6)
NS͡ॵ
CNAMEΥۥȤ̾(⿿̾)
MXΥɥ쥹˥᡼뤬褿ɤΥ᡼륵Ф٤. ֹͥĤ.
PTRۥ̾

warning.png ƨ SOA ϡ줿󤬤ɤ줯餤ѤǤΤפͤݤ˽פ(ȤΤ⡤줿 SOA ̵Ϥξϥեʲǽ뤫Ǥ).

ȡDNS ˤϻ "IN" ȤɤФƤ뤬 Internet Ȥ̣ʤΤǤޤˤʤƤ褤.

ۥ̾ IP Address ¾ξΤ뤿 DNS Server 䤤碌뤳ȤȤ.
ǤʤۥȤȤΤϥ󥿡ͥåȾǤ()äƤϤʤʤ.

հ

դˡIP Address ۥ̾¾ξΤȤ䤤碌հȤ.

ʤߤˡհɬʤФʤϤȵꤵƤʤ.
Ĥޤꡤհʤ IP Address äƤ DNS Υ롼ʤ.

  • ͥåȥǤʤˤȤϤۤȤɵհ򤭤ꤷƤ
  • հʤۥȤФƤϢΥӥ򤷤ʤȤΥФ빽
  • ȵհη̤礷ʤȤʤȤ˸ΥФ빽
  • ƱͤΥåѥʤưʤޥɤ⤢

ʤɤʤɡհ򤭤ꤷʤȺ̤⤢ΤǡհǤʤ򤱤Ƥ.

桼Ȥ DNS ȤäƤߤ

DNS ξΤġ(1) host

ФˡDNS ΤˡŪΤäƤ.
ޤΤƤʤ褦˻פ"host" ޥɤհȤ˻Ȥ.

 host www.osaka-u.ac.jp 

Ȥ()

www.osaka-u.ac.jp has address 133.1.8.18

"133.1.8.18" ֤äƤ뤷,

 host 133.1.8.18

Ȥ(հ)

18.8.1.133.in-addr.arpa domain name pointer www.osaka-u.ac.jp.

"www.osaka-u.ac.jp." ֤äƤ.
warning.png host ޥɤΧˤǸ˥ɥåȤĤɽƤ뤳Ȥ!

嵭Τ褦ˡץ̵ host ޥɤϤäʤ"-v" ץĤȤȾϤƤ.
㤨С

 host -v www.osaka-u.ac.jp 

Ȥ, Τ褦ʽϤ(Ū A, AAAA, MX 쥳ɤˤĤƿҤͤƤ).

Trying "www.osaka-u.ac.jp"

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 58110

;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 1


;; QUESTION SECTION:

;www.osaka-u.ac.jp. IN A


;; ANSWER SECTION:

www.osaka-u.ac.jp. 259200 IN A 133.1.8.18


;; AUTHORITY SECTION:

osaka-u.ac.jp. 259200 IN NS sigw.sinet.ad.jp.

osaka-u.ac.jp. 259200 IN NS b.osaka-u.ac.jp.

osaka-u.ac.jp. 259200 IN NS a.osaka-u.ac.jp.


;; ADDITIONAL SECTION:

sigw.sinet.ad.jp. 36369 IN A 150.100.2.2


Received 127 bytes from 127.0.0.1#53 in 5 ms

Trying "www.osaka-u.ac.jp"

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33999

;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0


;; QUESTION SECTION:

;www.osaka-u.ac.jp. IN AAAA


;; AUTHORITY SECTION:

osaka-u.ac.jp. 10800 IN SOA a.osaka-u.ac.jp. root.odins.osaka-u.ac.jp. 2008121800 10800 1800 3600000 259200


Received 84 bytes from 127.0.0.1#53 in 2 ms

Trying "www.osaka-u.ac.jp"

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 16460

;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0


;; QUESTION SECTION:

;www.osaka-u.ac.jp. IN MX


;; AUTHORITY SECTION:

osaka-u.ac.jp. 10800 IN SOA a.osaka-u.ac.jp. root.odins.osaka-u.ac.jp. 2008121800 10800 1800 3600000 259200


Received 84 bytes from 127.0.0.1#53 in 2 ms

ʤߤˡDNS 䤤碌ɽǡ"IN" ˤФпοФƤ뤬οϤξλĤͭ(ñ)о̣¤Ǥ.

¾ˤ⡤빽¿ͤʥץ󤬤Τǡ"man host" ȤĴ٤ƤȤ褤.

notes.png ޤϾƱ褦ˤ host ޥɤȤäƤߤ褦.
ޤ-v ץ -a ȤäƤߤ褦.
ޤŬʥۥ̾Ф "host -v" Ĵ٤̤򡤤ޤǤμ򸵤˲ᤷƤߤ.

DNS ξΤġ(2) dig

ǯǤϡDNS 䤤碌ǹԤޥɤȤƤ "dig" ŪǤ.
Ȥ host ˻Ƥ뤬٤*3꤬ǽ.
ܤ "man dig" "dig -h" Ĵ٤Ƥ餦Ȥơ礶äѤˤϼΤ褦ˤĤ.
warning.png "jman dig" ȤϤʤ! ʤΤʤdig ˴ؤܸޥ˥奢˸ŤץΤΤۤʤΤ(Τܸޥ˥奢ϸŤǤϤ뤬dig Τä˸Ť).

̾ñʤ

dig www.osaka-u.ac.jp 

Ǥ褤.
ñʤհ "-x" ץѤ

 dig -x 133.1.8.18

Ȥ.

䤤碌˻Ȥ DNS server ꤷȤϡ@Υ Ȥʸ򥪥ץȤƲä.
㤨Сη̤ www.osaka-u.ac.jp ξǤǤ DNS Server a.osaka-u.ac.jp Ǥ뤳ȤʬΤ*4,ΥФ˲ҤͤƤߤ.

 dig @a.osaka-u.ac.jp www.osaka-u.ac.jp

Ȥȡ

; <<>> DiG 9.3.5-P1 <<>> @a.osaka-u.ac.jp www.osaka-u.ac.jp

; (1 server found)

;; global options: printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41778

;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 3, ADDITIONAL: 2


;; QUESTION SECTION:

;www.osaka-u.ac.jp. IN A


;; ANSWER SECTION:

www.osaka-u.ac.jp. 259200 IN A 133.1.8.18


;; AUTHORITY SECTION:

osaka-u.ac.jp. 259200 IN NS sigw.sinet.ad.jp.

osaka-u.ac.jp. 259200 IN NS b.osaka-u.ac.jp.

osaka-u.ac.jp. 259200 IN NS a.osaka-u.ac.jp.


;; ADDITIONAL SECTION:

a.osaka-u.ac.jp. 259200 IN A 133.1.192.3

b.osaka-u.ac.jp. 259200 IN A 133.1.119.3


;; Query time: 11 msec

;; SERVER: 133.1.192.3#53(133.1.192.3)

;; WHEN: Wed Jan 7 17:01:07 2009

;; MSG SIZE rcvd: 143

ȤʤꡤʬǤԤǤˤĤƤľ˶Ƥ뤳Ȥʬ(status ܤ).

ǤϡĴҤˤΤäƤΥ͡ॵФ¾䤤碌򤷤Ƥߤ褦.
㤨С

 dig @a.osaka-u.ac.jp www.yahoo.co.jp

ȤƤߤ. ȡ

; <<>> DiG 9.3.5-P1 <<>> @a.osaka-u.ac.jp www.yahoo.co.jp

; (1 server found)

;; global options: printcmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id: 8576

;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0


;; QUESTION SECTION:

;www.yahoo.co.jp. IN A


;; Query time: 1 msec

;; SERVER: 133.1.192.3#53(133.1.192.3)

;; WHEN: Wed Jan 7 17:02:33 2009

;; MSG SIZE rcvd: 33

Ȥʤ("ANSWER SECTION" ̵ȡstatus "REFUSED" ˤʤäƤ뤳ȡʤɤܤ)֤ξͤδɳʤפȤˤʤäƤ뤳Ȥʬ.

ʤߤˡDNS Server ɤƤˤɤƤ뤫䤤碌ƤȤΥФ䤤碌ͤδط˰¸.
ܤ DNS Server ԤǤΤǡޤԤȤ.

ơdig +trace ȤץĤܤ˼ʬƵŪưԤΤǡDNS λȤߤΤΤԹ礬褤.
⤦ܤ񤯤ȡΥץդǤ dig ϡ䤤碌襵ФˡƵŪƤ͡פ(Ĥޤꡤ䤤碌ꤲʤ).
warning.png դ˸С̾ dig ޥɤϼǴ DNS ServerˡִꤲפƤǡʬϲϫƤʤΤ.

Ĥޤꡤ+trace Ĥ dig ޥɤȤäȤϡơΥФñ˼μǺǤޥ֤ƤΤǡβȤĤʤ碌 dig ȤԤΤǤ.

㤨С

 dig +trace www.osaka-u.ac.jp

Ȥȡ

; <<>> DiG 9.3.5-P1 <<>> +trace www.osaka-u.ac.jp

;; global options: printcmd

. 496121 IN NS J.ROOT-SERVERS.NET.

. 496121 IN NS G.ROOT-SERVERS.NET.

. 496121 IN NS K.ROOT-SERVERS.NET.

. 496121 IN NS E.ROOT-SERVERS.NET.

. 496121 IN NS H.ROOT-SERVERS.NET.

. 496121 IN NS A.ROOT-SERVERS.NET.

. 496121 IN NS C.ROOT-SERVERS.NET.

. 496121 IN NS D.ROOT-SERVERS.NET.

. 496121 IN NS M.ROOT-SERVERS.NET.

. 496121 IN NS B.ROOT-SERVERS.NET.

. 496121 IN NS F.ROOT-SERVERS.NET.

. 496121 IN NS L.ROOT-SERVERS.NET.

. 496121 IN NS I.ROOT-SERVERS.NET.

;; Received 504 bytes from 127.0.0.1#53(127.0.0.1) in 0 ms


jp. 172800 IN NS C.DNS.jp.

jp. 172800 IN NS D.DNS.jp.

jp. 172800 IN NS E.DNS.jp.

jp. 172800 IN NS F.DNS.jp.

jp. 172800 IN NS G.DNS.jp.

jp. 172800 IN NS A.DNS.jp.

jp. 172800 IN NS B.DNS.jp.

;; Received 431 bytes from 192.58.128.30#53(J.ROOT-SERVERS.NET) in 64 ms


osaka-u.ac.jp. 86400 IN NS sigw.sinet.ad.jp.

osaka-u.ac.jp. 86400 IN NS b.osaka-u.ac.jp.

osaka-u.ac.jp. 86400 IN NS a.osaka-u.ac.jp.

;; Received 127 bytes from 204.74.112.245#53(C.DNS.jp) in 126 ms


www.osaka-u.ac.jp. 259200 IN A 133.1.8.18

osaka-u.ac.jp. 259200 IN NS a.osaka-u.ac.jp.

osaka-u.ac.jp. 259200 IN NS b.osaka-u.ac.jp.

osaka-u.ac.jp. 259200 IN NS sigw.sinet.ad.jp.

;; Received 159 bytes from 150.100.2.2#53(sigw.sinet.ad.jp) in 15 ms

ʤɤΤ褦֤äƤ.
ߤȡ

  1. ʬ(127.0.0.1)ؤ䤤碌η̤ȤƤޤ "."(롼ȥɥᥤ)ô NS
    13椢뤳ȤΤ(ե륵ӥ꥾ФȸƤФ꥾ФϡƤǽ餫餳 13ΤäƤ).
  2. 13 J.ROOT-SERVICE.NET "jp." ô NS 7椢ȶƤäơ
  3. 7 C.DNS.JP "osaka-u.ac.jp." ô NS 3椢ȶƤäơ
  4. 3 sigw.sinet.ad.jp www.osaka-u.ac.jp. Υɥ쥹򶵤Ƥä

ȤήǸȤ褯ʬ.
̾ϡʤ٤ͥåȥή󤬾ʤƺѤ褦˥åʤɤ͡ʹפѤƤΤǡΤ褦ϼľ䤤碌ʤ櫓ǤϤʤ.

롼ȥФνȥƥ

ǡ˽ФƤ롼ȥɥᥤô DNS(롼ȥФȸƤФ)ˤĤƵҤƤ.

Υ롼ȥФϡDNS ǤΤǡ餬ȵǽʤȥ󥿡ͥåȤΤΤȵǽʤ. "The Internet" ΡסȤäƤ褤.

ޤդ˸С󥿡ͥåȤؤιԤߤХ롼ȥɥᥤ󤳤оݤȤƺǤפʤΤΰĤȤȤˤʤ.
ΤᡤޤǤˤ絬ϤγƼﹶˤӤӤ餵Ƥ.
13椬Ϥ˻äƤ뤳ȤѤ륽եȥ֤虜ȰۤʤΤˤƤפȤʤɤƤȤˤ.
notes.png 롼ȥФФ뤳ޤDzä줿䤽ηаޤˤĤĴ٤Ƥ. ƥݤĤˤɤФ褤ȤɤؽˤʤϤ.

warning.png ʤߤˡ󥿡ͥåȤ٤롼ȥɥᥤô 13*5δؤ櫓ϡꥫ 10, ܤ 1, Υ륦 1, 1 Ǥ. http://www.root-servers.org/ ˥ꥹȤΤǡˤʤͤϸƤߤ褦.

DNS ξΤġ(3) nslookup

dig ΤϤ褯ȤƤΤ "nslookup" ޥɤǤ.
ʤ䤤碌򤽤⤽դʤȤ䡤ȾüǤ뤳ȤʤɤäƤפȰ줿ꤷƤޤȤʤʤäƤƤ뤬å⡼ɤΤڤͤȡޤޤǤҤɤġǤϤʤ(^-^)
notes.png "man nslookup" Ȥ nslookup Υޥ˥奢ɤǤߤơޤƤʤ("not implemented")ǽɤ줯餤뤫ǧƤ.

notes.png host, dig, nslookup ˤĤƥޥ˥奢Ĵ٤塤ĤΥۥȤˤĤƤΥޥɤ()쥳 A, MX ˤĤĴ٤Ƥߤ.
ޤ줿 IP ɥ쥹򸵤˵հԤäƤߤ.
ޤʬηӤΥ᡼륢ɥ쥹˥᡼Ф硤Υ᡼륵ФϤɤĴ٤Ƥߤ.

DNS ФäƤߤ(μ)

ơDNS server (¾ˤϡ͡ॵФȤ̾ɤȤ)եȥΥ󥹥ȡ롤ꡤƯˤꡤޤϤĤ񤤤Ƥ.

DNS server ȤƲȤ

DNS server եȥȤƤϼ BIND (Berkeley Internet Name Daemon) ȤΤȤ.
ˤ¾Υեȥ⤢뤬BIND ΨϤ褽 90%ȸΤǡޤ BIND 顤ȤǤ.
BIND ϡBSD ͳΥեȥǤꡤFreeBSD ǤϥǥեȤäƤΤǡۤܺǿ FreeBSD ȤäƤΤǤХ󥹥ȡȤäפǤ.
Ҥ륻ƥ꤬ΤǡλѤƤ BIND ΥСˤä˵Ȥ褦ˤ褦.

ȡ𤷤Ǥ뤬BIND 륳ޥɤ named (̾Υǡ󡤤ȤǤפФ褤)Ȥ̾Ǥꡤޥ˥奢ǥ쥯ȥ̾ϴŪ "named" Ȥ̾ȤΤդ.

notes.png 󥹥ȡ뤵Ƥ BIND ΥСĴ٤Ƥ. ξ֤ȡŪˤϡ

 named -v

ȤФ褤.
(FreeBSD 7.0 ˤĤƤΤ 9.4.2 Ǥ褦ǰΰ٤˳ǧƤ)

BIND Τλ

ʤˤ BIND ϸŤ餢륽եȥΤᡤʲƤȤϤäƤ⤽եͼˤˤҤ줿ְȤʬꡤ狼ˤ.
(ȤϤäƤ⡤DNS ΤäƤեɤǤֵˤʤפ sendmail եڤ˥ޥǤ)
DNS Ф򤬤ǤƤʤ֤եɤȲʤʬʤΤǡμͤƤ褤ܤ̤Ȥ侩.

̾
FreeBSD ƥȥ塼˥(), page 341--374.ä30ڡ DNS θ BIND ޤǤ򤭤Ȥ狼䤹Ҥ꤬. BIND 8 ˤĤƤεҤʤΤǡǸΰεҤŤʤäƤޤäƤΤߤȸз.
FreeBSD ӥʡХ֥()(), page 543--565.狼ˤɽ(^-^)ǤհѾλȤߤˤĤƾܤ񤫤ƤƤ꤬.
BIND 9 ˤ DNS й()ȤƤ狼䤹񤫤ƤƤ褤. ܵǤ. հˤĤƤϡֳ䰦פƤΤȤƤȤƤǰ(ʤʬפ񤱤Ԥˤ񤤤ߤä)
DNS & BIND (). 󥿡ͥåȤ˷ҤäƼºݤ˥͡ॵФȤʤ륵Ф򰷤ʤäƤʤȤʤ.ѤäɤǤǤȤʤɤȤϴԤƤϤʤ.

DNS server ȥƥ

DNS server ȤΤϸ cracker μʹоݤΰĤǤ뤿ᡤΥƥˤä˵ۤꤿ.
ʤ뤫ȤȡʲΤ褦ͳˤ.

(ͳ)
()
ͥåȥξäƤ
ޤ DNS server ͥåȥ/ؤιμ꤬ˤʤ
root ¤ưƤ뤳Ȥ¿
üХƥ¤򰮤뤷üʤƤⲿ뤳ȤǤ뤫
ͥåȥ󶡤Ƥ
server ֱξפή褦ǤСήԤ͡ʹˡ˻Ȥ ( web ˥ƥѥɤåȤ)

DNS server եȥ(Ѥ OS ¦)йƿʲƤƤ뤬Ԥߥʤϴ㤤ִˤפƤޤФȤߤ̣ʤʤ.
ǤΤǡDNS server ˤդʧ.

FreeBSD ǤϡƥΤᡤBIND ˤĤƤϥǥեȤǼΤ褦кܤƤ.

  1. ̤ʥ桼 bind θ¤ư. root¤ǤϤʤ.
  2. /var/named Ȥǥ쥯ȥβ BIND ưĶĤƤ. /var/named Ȥǥ쥯ȥ꤬BIND 鸫顤/ (롼ȥǥ쥯ȥ) ˸褦ʻųݤˤʤäƤ. ĤޤꡤBIND äü줿ȤƤ⡤/var/named ˤϽФʤ.

notes.png DNS Ф󶡤ͥåȥֵפ뤳ȤͥåȥˤĤĴ٤Ƥߤ.
/etc/namedb Ȥǥ쥯ȥ꤬ºݤˤϤɤˤ뤫Ĵ٤.

ݡ

ǡĴ٤פȻؼ줿ˤĤĴԤ𤻤.
ޤԤäȤˤĤ𤻤.
Ƽ

  1. °(ز)
  2. ֹ
  3. ǯ
  4. ̾
  5. οΥݡ(θȤˤĤƵŤ)

񤯤Τ˺ʤ褦.

about Icons

Some icons in this page are downloadable at ICONFINDER.
The "note" icon notes.png designed by Marco Martin is distributed with the LGPL licence
and the "warning" icon warning.png designed by Alexandre Moore with the GPL licence.
Thank you Marco and Alexandre!


*1 󡤥ͥåȥΥ롼ƥ󥰤Υѥåȥե륿󥰤ΡʬΤäƤ褤Ȥ̵¤ˤȸäƤ褤.
*2 褦˸Ȼפ. ޤѾ(delegation)ΤʤΤȸФȸ¤ʤ䤳ʤäƤΤ
*3 Ȥ٤
*4 ɬ狼Ȥϸ¤ʤ
*5 ĤȤäƤޥ13Ȥ櫓ǤϤʤϤ褦ˤʤäƤȤǡ֤Ϥä¿