네임서버 프로세스 동작확인
#ps aux | grep named
named 11192 0.0 0.3 49792 3404 ? Ssl 11:16 0:00 /usr/sbin/named -u named -c /etc/named.caching-nameserver.conf -t /var/named/chroot
root 11433 0.0 0.1 6080 1264 pts/1 S+ 12:29 0:00 vi /etc/named.caching-nameserver.conf
root 11532 0.0 0.0 5188 748 pts/2 S+ 12:41 0:00 grep named
#netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 192.168.29.1:53 0.0.0.0:* LISTEN
tcp 0 0 192.168.189.1:53 0.0.0.0:* LISTEN
tcp 0 0 10.10.33.3:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
#netstat -vat
-----------------------------------------------------------------------------------------------------
네임서버 동작 확인
host
원격 호스트에 대한 DNS 간단 조회 명령어
# host www.server3.co.kr
www.server3.co.kr has address 10.10.33.3
-----------------------------------------------------------------------------------------------------
dig
DNS 상세 조회 명령어
# dig
; <<>> DiG 9.3.4-P1 <<>>
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63857
;; flags: qr rd ra; QUERY: 1, ANSWER: 13, AUTHORITY: 0, ADDITIONAL: 14
;; QUESTION SECTION:
;. IN NS
;; ANSWER SECTION:
. 517750 IN NS L.ROOT-SERVERS.NET.
. 517750 IN NS M.ROOT-SERVERS.NET.
. 517750 IN NS A.ROOT-SERVERS.NET.
. 517750 IN NS B.ROOT-SERVERS.NET.
. 517750 IN NS C.ROOT-SERVERS.NET.
. 517750 IN NS D.ROOT-SERVERS.NET.
. 517750 IN NS E.ROOT-SERVERS.NET.
. 517750 IN NS F.ROOT-SERVERS.NET.
. 517750 IN NS G.ROOT-SERVERS.NET.
. 517750 IN NS H.ROOT-SERVERS.NET.
. 517750 IN NS I.ROOT-SERVERS.NET.
. 517750 IN NS J.ROOT-SERVERS.NET.
. 517750 IN NS K.ROOT-SERVERS.NET.
;; ADDITIONAL SECTION:
A.ROOT-SERVERS.NET. 604150 IN A 198.41.0.4
A.ROOT-SERVERS.NET. 604150 IN AAAA 2001:503:ba3e::2:30
B.ROOT-SERVERS.NET. 604150 IN A 192.228.79.201
C.ROOT-SERVERS.NET. 604150 IN A 192.33.4.12
D.ROOT-SERVERS.NET. 604150 IN A 128.8.10.90
E.ROOT-SERVERS.NET. 604150 IN A 192.203.230.10
F.ROOT-SERVERS.NET. 604150 IN A 192.5.5.241
F.ROOT-SERVERS.NET. 604150 IN AAAA 2001:500:2f::f
G.ROOT-SERVERS.NET. 604150 IN A 192.112.36.4
H.ROOT-SERVERS.NET. 604150 IN A 128.63.2.53
H.ROOT-SERVERS.NET. 604150 IN AAAA 2001:500:1::803f:235
I.ROOT-SERVERS.NET. 604150 IN A 192.36.148.17
J.ROOT-SERVERS.NET. 604150 IN A 192.58.128.30
J.ROOT-SERVERS.NET. 604150 IN AAAA 2001:503:c27::2:30
;; Query time: 10 msec
;; SERVER: 10.10.33.3#53(10.10.33.3)
;; WHEN: Thu Dec 11 09:27:15 2008
;; MSG SIZE rcvd: 500
-----------------------------------------------------------------------------------------------------
nslookup
도메인으로 DNS 조회 명령어
# nslookup www.server3.co.kr
Server: 10.10.33.3
Address: 10.10.33.3#53
Name: www.server3.co.kr
Address: 10.10.33.3
-----------------------------------------------------------------------------------------------------
whois
도메인 등록정보 조회
# whois yahoo.co.kr
[Querying whois.krnic.net]
[whois.krnic.net]
query: yahoo.co.kr
# KOREAN
�������̸� : yahoo.co.kr
������ : �ֽ�ȸ�������ڸ��
������ �ּ� : Glasstower B/D 946-1 Daechi-dong Gangnam-gu
������ ������ȣ : 135280
��� : Domain Administrator
å���� ���ڿ��� : domainadmin@yahoo-inc.com
å���� ��ȭ��ȣ : 02-2185-2500
������ : 1997. 06. 04.
�ֱ� ���� ������ : 2007. 08. 31.
���� ������ : 2009. 10. 15.
������������ : Y
���ϴ����� : (��)������(http://whois.co.kr)
1�� ���Ӽ��� ����
ȣ��Ʈ�̸� : ns1.yahoo.com
2�� ���Ӽ��� ����
ȣ��Ʈ�̸� : ns5.yahoo.com
ȣ��Ʈ�̸� : ns3.yahoo.com
ȣ��Ʈ�̸� : ns4.yahoo.com
ȣ��Ʈ�̸� : ns6.yahoo.com
���Ӽ��� �̸��� .kr�� �ƴ� ������ IP�ּҰ� ������ �ʽ��ϴ�.
# ENGLISH
Domain Name : yahoo.co.kr
Registrant : Yahoo Korea Co.
Registrant Address : Glasstower B/D 946-1 Daechi-dong Gangnam-gu
Registrant Zip Code : 135280
Administrative Contact(AC): Domain Administrator
AC E-Mail : domainadmin@yahoo-inc.com
AC Phone Number : 02-2185-2500
Registered Date : 1997. 06. 04.
Last updated Date : 2007. 08. 31.
Expiration Date : 2009. 10. 15.
Publishes : Y
Authorized Agency : Whois Corp.(http://whois.co.kr)
Primary Name Server
Host Name : ns1.yahoo.com
Secondary Name Server
Host Name : ns5.yahoo.com
Host Name : ns3.yahoo.com
Host Name : ns4.yahoo.com
Host Name : ns6.yahoo.com
# whois daum.net
[Querying whois.verisign-grs.com]
[whois.verisign-grs.com]
Whois Server Version 2.0
Domain names in the .com and .net domains can now be registered
with many different competing registrars. Go to http://www.internic.net
for detailed information.
Domain Name: DAUM.NET
Registrar: NETPIA.COM, INC.
Whois Server: whois.ibi.net
Referral URL: http://www.ibi.net
Name Server: NS.DAUM.NET
Name Server: NS2.DAUM.NET
Name Server: NS3.DAUM.NET
Name Server: NS4.DAUM.NET
Name Server: NS5.DAUM.NET
Status: clientDeleteProhibited
Status: clientTransferProhibited
Status: clientUpdateProhibited
Updated Date: 12-oct-2006
Creation Date: 05-mar-1996
Expiration Date: 06-mar-2009
'Linux Server 구축 > 1-1. DNS Server' 카테고리의 다른 글
보조네임서버구축 (Secondary Name Server) (0) | 2008.12.11 |
---|---|
DNS 도메인 추가2 (0) | 2008.12.11 |
DNS 도메인 추가1 (0) | 2008.12.11 |
DNS(Domain Name System) Server 구축 (0) | 2008.12.10 |