例) nex.cs.maritime.kobe

例)
nex.cs.maritime.kobe-u.ac.jp
国名
組織名
組織内の部署など
ホスト名
種類
(使用ない
国もある)
ac
co
go
ne
ad
or
(最も左の部分)
:
:
:
:
:
:
jp :
uk :
ca :
de :
kr :
・
・
日本
英国
カナダ
ドイツ
韓国
教育研究機関
営利組織(一般の会社)
政府関係機関
ネットワーク
上記以外の組織
国名ではなく,edu, com, gov, mil, net などで終っているもの ・・・ 米国(インターネット最上位)
(a) ドメイン形式のホスト名
COM
EDU
GOV
MIL
NET
ORG
Commercial organizations
Educational institutions
Covernment institutions
Military groups
Major networks support centers
Organizations other than those above
(country code)
Countries other than U.S.A.
(b) Internet の最上位レベルのドメイン
図5−1: ドメイン名
United Kingdom
uk
Canada
Japan
ca
U.S.A
jp
or
nhk
ROOT
com
co
sony
ac
shizuoka
go
kobe-u
maritime
osaka-u
edu
mit
stanford
kantei
www
eng
www.kantei.go.jp
abc
cs
hosta hostb
ee
Domain
hostb.maritime.kobe-u.ac.jp
Host
white1
white1.abc.maritime.kobe-u.ac.jp
nsa
nsb
lab
nsa.cs.maritime.kobe-u.ac.jp
haruka haruka.lab.cs.maritime.kobe-u.ac.jp
図5−2: 名前階層に対応したドメインネームサーバ配置の概念
;
;
@(#)cs.zone
1.0
(CS.MARITIME.KOBE-U)
01/04/07
;
Authoritative data for cs.maritime.kobe-u.ac.jp
$TTL 3600
@
IN
SOA
cs.maritime.kobe-u.ac.jp. root.nex.cs.maritime.kobe-u.ac
2012060501
; Serial
10800
; Refresh 3 hours
3600
; Retry
1 hours
3600000
; Expire 1000 hours
86400
; Minimum 24 hours
)
IN
A
150.84.165.1
IN
MX
10
nex.cs.maritime.kobe-u.ac.jp.
IN
NS
nex.cs.maritime.kobe-u.ac.jp.
i i
k b
j
IN
NS
ns1.nav.maritime.kobe-u.ac.jp.
IN
NS
kumms2.maritime.kobe-u.ac.jp.
localhost
IN
A
nex
IN
IN
A
MX
www
ns
IN
IN
CNAME
CNAME
nex
nex
nex2
IN
IN
IN
IN
IN
IN
IN
IN
IN
IN
A
MX
A
MX
A
MX
A
MX
A
MX
150.84.165.2
nex.cs.maritime.kobe-u.ac.jp.
150.84.165.3
nex.cs.maritime.kobe-u.ac.jp.
150.84.165.4
nex.cs.maritime.kobe-u.ac.jp.
150 84 165 5
150.84.165.5
nex.cs.maritime.kobe-u.ac.jp.
150.84.165.6
nex.cs.maritime.kobe-u.ac.jp.
IN
IN
IN
IN
A
MX
A
MX
kodama
hikari
nozomi
tsubasa
haruka
t ki
toki
127.0.0.1
10
100
100
100
100
100
10
100
150.84.165.1
nex.cs.maritime.kobe-u.ac.jp.
150.84.165.10
haruka.cs.maritime.kobe-u.ac.jp.
150 84 165 11
150.84.165.11
nex.cs.maritime.kobe-u.ac.jp.
図5-3: DNSサーバのデータファイル(順引き用データ)
;
;
@(#)local.rev
;
$TTL 3600
@
IN
SOA
1.0
(PS.NAV)
01/04/07
0
IN
IN
IN
NS
NS
PTR
cs.maritime.kobe-u.ac.jp. root.nex.cs.maritime.kobe-u.ac
2012060501
; Serial
10800
; Refresh
3600
; Retry
3600000
; Expire
86400 )
; Minimum
nex.cs.maritime.kobe-u.ac.jp.
kumms2.maritime.kobe-u.ac.jp.
cs.maritime.kobe-u.ac.jp.
1
2
IN
IN
PTR
PTR
nex.cs.maritime.kobe-u.ac.jp.
nex2.cs.maritime.kobe-u.ac.jp.
3
4
5
6
IN
IN
IN
IN
PTR
PTR
PTR
PTR
kodama.cs.maritime.kobe-u.ac.jp.
hikari.cs.maritime.kobe-u.ac.jp.
nozomi.cs.maritime.kobe-u.ac.jp.
tsubasa.cs.maritime.kobe-u.ac.jp.
10
IN
11
IN
12
IN
13
IN
14
IN
15
IN
16
IN
17
IN
18
IN
19
IN
20
IN
21
IN
22
IN
23
IN
24
IN
25
IN
........
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
PTR
haruka.cs.maritime.kobe-u.ac.jp.
toki.cs.maritime.kobe-u.ac.jp.
asahi.cs.maritime.kobe-u.ac.jp.
raicho.cs.maritime.kobe-u.ac.jp.
raicho.cs.maritime.kobe
u.ac.jp.
kirameki.cs.maritime.kobe-u.ac.jp.
fuji.cs.maritime.kobe-u.ac.jp.
seto.cs.maritime.kobe-u.ac.jp.
ginga.cs.maritime.kobe-u.ac.jp.
mizuho.cs.maritime.kobe-u.ac.jp.
sakura.cs.maritime.kobe-u.ac.jp.
tsubame cs maritime kobe-uu.ac.jp.
tsubame.cs.maritime.kobe
ac jp
hayate.cs.maritime.kobe-u.ac.jp.
hayabusa.cs.maritime.kobe-u.ac.jp.
tsurugi.cs.maritime.kobe-u.ac.jp.
kamui.cs.maritime.kobe-u.ac.jp.
hato.cs.maritime.kobe-u.ac.jp.
図5-4: DNSサーバのデータファイル(逆引き用データ)
(例)"/etc/resolv.conf"
-------------------------------------------------------------------------------domain cs.maritime.kobe-u.ac.jp
nameserver
150.84.165.1
--------------------------------------------------------------------------------
図5-5: クライアントの設定例(UNIX)
waka@nex[intel]: 63 % nslookup
> haruka.cs.maritime.kobe-u.ac.jp
Server:
150.84.165.1
Address:
150.84.165.1#53
Name:
haruka.cs.maritime.kobe-u.ac.jp
Address: 150.84.165.10
> www.mext.go.jp
Server:
150.84.165.1
Address:
150.84.165.1#53
Non-authoritative answer:
Name:
www.mext.go.jp
Address: 202.232.190.211
> fraser.cs.sfu.ca
fraser cs sfu ca
Server:
150.84.165.1
Address:
150.84.165.1#53
** server can't find fraser.cs.sfu.ca: NXDOMAIN
set type=MX
> kobe-u.ac.jp
Server:
Address:
150.84.165.1
150.84.165.1#53
Non-authoritative answer:
kobe-u.ac.jp
mail exchanger = 10 smtprelay.kobe-u.ac.jp.
Authoritative
h
answers can be
b foundd from:
kobe-u.ac.jp
nameserver = portkobe.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = ns.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = ns2.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = melchior.kobe-u.ac.jp.
smtprelay.kobe-u.ac.jp internet address = 133.30.17.172
ns2.kobe-u.ac.jp
internet address = 133.30.14.3
ns2 kobe-uu.ac.jp
ns2.kobe
ac jp
has AAAA address 2001:2f8:15:114::2
> exit
waka@nex[intel]: 64 %
図5-6: nslookupコマンドによるDNSデータの検索
waka@nex[intel]: 63 % nslookup
> set type=any
> cs.maritime.kobe-u.ac.jp
Server:
150.84.165.1
Address:
150.84.165.1#53
cs.maritime.kobe-u.ac.jp
origin = cs.maritime.kobe
cs.maritime.kobe-u.ac.jp
u.ac.jp
mail addr = root.nex.cs.maritime.kobe-u.ac.jp
serial = 2012060501
refresh = 10800
retry = 3600
expire = 3600000
minimum = 86400
Name: cs.maritime.kobe-u.ac.jp
Address: 150.84.165.1
cs.maritime.kobe-u.ac.jp
mail exchanger = 10 nex.cs.maritime.kobe-u.ac.jp
cs.maritime.kobe-u.ac.jp
nameserver = ns1.nav.maritime.kobe-u.ac.jp.
cs.maritime.kobe-u.ac.jp
nameserver = kumms2.maritime.kobe-u.ac.jp.
cs.maritime.kobe-u.ac.jp
nameserver = nex.cs.maritime.kobe-u.ac.jp.
> maritime.kobe-u.ac.jp
Server:
150.84.165.1
Address:
150.84.165.1#53
Non-authoritative answer:
maritime.kobe-u.ac.jp mail exchanger = 1000 smtp.maritime.kobe-u.ac.jp.
maritime.kobe-u.ac.jp nameserver = ns1.maritime.kobe-u.ac.jp.
maritime.kobe-u.ac.jp nameserver = ns2.maritime.kobe-u.ac.jp.
maritime.kobe-u.ac.jp nameserver = melchior.kobe-u.ac.jp.
Authoritative answers can be found from:
maritime.kobe-u.ac.jp nameserver = ns1.maritime.kobe-u.ac.jp.
maritime.kobe-u.ac.jp nameserver = ns2.maritime.kobe-u.ac.jp.
maritime.kobe-u.ac.jp nameserver = melchior.kobe-u.ac.jp.
smtp.maritime.kobe-u.ac.jp
internet address = 150.84.10.10
ns1.maritime.kobe-u.ac.jp
internet address = 150.84.10.13
ns2.maritime.kobe-u.ac.jp
internet address = 150.84.10.14
> kobe-u.ac.jp
S
Server:
150
150.84.165.1
84 165 1
Address:
150.84.165.1#53
Non-authoritative answer:
kobe-u.ac.jp
mail exchanger = 10 smtprelay.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = ns2.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = ns.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = melchior.kobe-u.ac.jp.
k b
kobe-u.ac.jp
j
nameserver = portkobe.kobe-u.ac.jp.
tk b k b
j
Authoritative answers can be found from:
kobe-u.ac.jp
nameserver = ns.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = portkobe.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = melchior.kobe-u.ac.jp.
kobe-u.ac.jp
nameserver = ns2.kobe-u.ac.jp.
smtprelay.kobe-u.ac.jp internet address = 133.30.17.172
ns2 kobe-u
ns2.kobe
u.ac.jp
ac jp
internet address = 133
133.30.14.3
30 14 3
ns2.kobe-u.ac.jp
has AAAA address 2001:2f8:15:114::2
> exit
waka@nex[intel]: 64 %
図5-7: nslookup(その2) サーバに関する情報