본문 바로가기

Hojung's Command List

Total Commands : 232

 (e)grep (6)
 * find large files (2)
 * System info (12)
 * Term Key (8)
 * use previous argu (1)
 *CD/DVD cmd (5)
 *DNS test (4)
 ab (2)
 apg (1)
 arping (4)
 at (1)
 awk (1)
 cal (2)
 cd and pushd (3)
 crontab (7)
 curl (4)
 dd (1)
 dhclient (1)
 dig (2)
 du (1)
 echo (1)
 editcap (1)
 ethtool (2)
 find (20)
 head (1)
 history (1)
 host (1)
 hping3 (6)
 ifconfig (3)
 lftp (1)
 logger (1)
 ls (2)
 lsof (2)
 mail (2)
 man (1)
 mergecap (1)
 mount (8)
 nc (netcat) (1)
 ncftpput (1)
 netcat(nc) (1)
 netstat (1)
 nice (2)
 nl (1)
 nmap (5)
 ntpdate (1)
 openssl (15)
 ping (1)
 pkill (1)
 ps (2)
 rar (1)
 recode (6)
 rename (3)
 rm (1)
 route (2)
 rpm (4)
 sed (4)
 smb (3)
 snmpwalk (2)
 sort (4)
 ssh (1)
 tar (6)
 tcpdump (10)
 top (1)
 touch (2)
 uniq (1)
 vi (11)
 wall (2)
 wget (3)
 yum (5)
 zip/unzip (6)

dig를 이용 해당 URL의 recursive 쿼리 모두 확인

dig @ns.korea.com www.yahoo.co.kr +trace

; <<>> DiG 9.6.1-P1-RedHat-9.6.1-6.P1.fc11 <<>> @ns.korea.com www.yahoo.co.kr +trace
; (1 server found)
;; global options: +cmd
. 74802 IN NS g.root-servers.net.
. 74802 IN NS b.root-servers.net.
. 74802 IN NS m.root-servers.net.
. 74802 IN NS j.root-servers.net.
. 74802 IN NS l.root-servers.net.
. 74802 IN NS h.root-servers.net.
. 74802 IN NS a.root-servers.net.
. 74802 IN NS c.root-servers.net.
. 74802 IN NS k.root-servers.net.
. 74802 IN NS e.root-servers.net.
. 74802 IN NS f.root-servers.net.
. 74802 IN NS d.root-servers.net.
. 74802 IN NS i.root-servers.net.
;; Received 401 bytes from 119.205.213.34#53(119.205.213.34) in 4 ms

kr. 172800 IN NS g.dns.kr.
kr. 172800 IN NS e.dns.kr.
kr. 172800 IN NS d.dns.kr.
kr. 172800 IN NS b.dns.kr.
kr. 172800 IN NS f.dns.kr.
kr. 172800 IN NS c.dns.kr.
;; Received 285 bytes from 192.5.5.241#53(f.root-servers.net) in 6 ms

yahoo.co.kr. 86400 IN NS ns3.yahoo.com.
yahoo.co.kr. 86400 IN NS ns6.yahoo.com.
yahoo.co.kr. 86400 IN NS ns4.yahoo.com.
yahoo.co.kr. 86400 IN NS ns5.yahoo.com.
yahoo.co.kr. 86400 IN NS ns1.yahoo.com.
;; Received 132 bytes from 61.74.75.1#53(b.dns.kr) in 6 ms

www.yahoo.co.kr. 7200 IN CNAME rc.yahoo.com.
rc.yahoo.com. 300 IN CNAME rc.a07.yahoodns.net.
a07.yahoodns.net. 172800 IN NS yf2.yahoo.com.
a07.yahoodns.net. 172800 IN NS yf1.yahoo.com.
;; Received 160 bytes from 119.160.247.124#53(ns5.yahoo.com) in 196 ms
Written by Hojung at 2010-05-23 10:24:57

dig를 이용 도메인 전체 정보 보기

dig @ns.korea.com yahoo.co.kr any

; <<>> DiG 9.6.1-P1-RedHat-9.6.1-6.P1.fc11 <<>> @ns.korea.com yahoo.co.kr any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27221
;; flags: qr rd ra; QUERY: 1, ANSWER: 11, AUTHORITY: 0, ADDITIONAL: 7

;; QUESTION SECTION:
;yahoo.co.kr. IN ANY

;; ANSWER SECTION:
yahoo.co.kr. 60 IN A 206.190.60.37
yahoo.co.kr. 60 IN A 68.180.206.184
yahoo.co.kr. 7200 IN NS ns6.yahoo.com.
yahoo.co.kr. 7200 IN NS ns2.yahoo.com.
yahoo.co.kr. 7200 IN NS ns1.yahoo.com.
yahoo.co.kr. 7200 IN NS ns3.yahoo.com.
yahoo.co.kr. 7200 IN NS ns5.yahoo.com.
yahoo.co.kr. 7200 IN NS ns4.yahoo.com.
yahoo.co.kr. 7200 IN SOA hidden-master.yahoo.com. kr-op.kr.yahoo-inc.com. 2010051802 1800 900 604800 600
yahoo.co.kr. 7200 IN MX 20 mx3b.mail.yahoo.co.kr.
yahoo.co.kr. 7200 IN TXT "Yahoo! Inc."

;; ADDITIONAL SECTION:
ns6.yahoo.com. 86370 IN A 202.43.223.170
ns2.yahoo.com. 86370 IN A 68.142.255.16
ns1.yahoo.com. 86370 IN A 68.180.131.16
ns3.yahoo.com. 86370 IN A 121.101.152.99
ns5.yahoo.com. 86370 IN A 119.160.247.124
ns4.yahoo.com. 86370 IN A 68.142.196.63
mx3b.mail.yahoo.co.kr. 7200 IN A 119.161.16.254

;; Query time: 125 msec
;; SERVER: 119.205.213.34#53(119.205.213.34)
;; WHEN: Sun May 23 10:23:36 2010
;; MSG SIZE rcvd: 409
Written by Hojung at 2010-05-23 10:23:46

Use dig command for dns test

dig @192.168.204.180 www.yahoo.co.kr <-------- A 레코드 출력
dig @192.168.204.180 yahoo.co.kr ns <-------- NS 레코드 출력
dig @192.168.204.180 yahoo.co.kr any <-------- 모든 레코드 출력

Written by Hojung at 2010-05-19 18:06:01

Use host command for dns test

host -t A www.bigip.co.kr ns.bigip.co.kr

host [-t <type>] <FQDN> [name_server]
Written by Hojung at 2010-05-14 17:19:58