ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • 나는 플그램 젬병;;;;
    └ Domain 2008. 8. 4. 18:21
    최초작성일 : 2008.08.04 18:21

    1. ipconfing

    C:\Documents and Settings\Yang mihyun>ipconfig help
    Error: unrecongnized or incomplete command line.
    USAGE:
      ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
                 /flushdns | /displaydns | /registerdns |
                 /showclassid adapter |
                 /setclassid adapter [classid] ]
    ~생략

    양군이 종종 쓰는 옵션

    cmd> ipconfig /all

    종종 사람들은 자신의 기본 DNS 를 확인하기 위해서  제어판 > 네트워크 연결 > 속성 >.....
    열심히 찾아가서 확인하곤 한다.
    뭐 그냥 확인만 필요할때 [실행] > cmd > ipconfig /all

    cmd> ipconfig /flushdns

    flushdns 는 네임서버의 IP를 변경후에 반영되는것을 확인할때 종종 쓴다.
    혹시.. 당신의 웹서버 IP를 반영하고 하루를 기다리고 있으신가..
    그렇다면 ipconfig /flushdns 엔터 하시라~

    cmd> ipconfig /displaydns
        seeds.tistory.com
       ----------------------------------------
        데이터 이름 . . . . . : seeds.tistory.com
        데이터 유형 . . . . . : 1
        TTL(Time To Live) . : 3423
        데이터 길이 . . . . . : 4
        섹션 . . . . . . . : 응답
        (호스트) 레코드 . . . : 110.45.xxx.xxx

    이 옵션은 네임서버 질의한후 캐쉬된 IP를 확인할때 본다. 스크롤의 압박을 기대하면서 엔터~

    2. nslookup
    C:\Documents and Settings\Yang mihyun>nslookup
    Default Server:  kns.kornet.net
    Address:  168.126.63.1
    > help
    Commands:   (identifiers are shown in uppercase, [] means optional)
    NAME            - print info about the host/domain NAME using default server
    NAME1 NAME2     - as above, but use NAME2 as server
    help or ?       - print info on common commands
    set OPTION      - set an option
      all                 - print options, current server and host
    ~생략
    exit            - exit the program

    DNS 와 Bind 책을 읽는데.. 아래 예제를 보면서 저자는 감탄했단다.
    (아래 예제는 nslookup 을 종료하는 예제이다)
    C:\Documents and Settings\Yang mihyun>nslookup
    Default Server:  kns.kornet.net
    Address:  168.126.63.1
    > quit
    Server:  kns.kornet.net
    Address:  168.126.63.1
    *** kns.kornet.net can't find quit: Non-existent domain
    > exit
    C:\Documents and Settings\Yang mihyun>

    당신은.. 감탄스러우신가..?

    종종 쓰는 명령어 추가

    사용법

     C:\Users\YangMiHyun>nslookup

     > server kns.kornet.net
     기본 서버: kns.kornet.net
     Address: 168.126.63.1

     > set type=a
     > daum.net
     서버: kns.kornet.net
     Address: 168.126.63.1

     권한 없는 응답:
     이름: daum.net
     Addresses: 61.111.62.173
     114.108.157.50
     114.108.157.19
     110.45.215.23

     > set type=ns
     > daum.net 
     서버: kns.kornet.net
     Address: 168.126.63.1

     권한 없는 응답:
     daum.net nameserver = ns2.daum.net
     daum.net nameserver = ns1.daum.net

     ns1.daum.net internet address = 113.61.106.5
     ns2.daum.net internet address = 113.61.107.5

     > set type=txt
     > daum.net 
     서버: kns.kornet.net
     Address: 168.126.63.1

     권한 없는 응답:
     daum.net text =

     "v=spf1 include:_spf.daum.net ~all"

     daum.net nameserver = ns1.daum.net
     daum.net nameserver = ns2.daum.net
     ns1.daum.net internet address = 113.61.106.5
     ns2.daum.net internet address = 113.61.107.5

     > set type=mx
     > daum.net
     서버: kns.kornet.net
     Address: 168.126.63.1

     권한 없는 응답:
     daum.net MX preference = 10, mail exchanger = mx2.hanmail.net
     daum.net MX preference = 10, mail exchanger = mx3.hanmail.net
     daum.net MX preference = 10, mail exchanger = mx1.hanmail.net
     daum.net MX preference = 10, mail exchanger = mx4.hanmail.net

     daum.net nameserver = ns2.daum.net
     daum.net nameserver = ns1.daum.net
     mx1.hanmail.net internet address = 211.110.65.13
     mx2.hanmail.net internet address = 180.70.93.97
     mx3.hanmail.net internet address = 211.110.65.14
     mx4.hanmail.net internet address = 180.70.93.98
     ns1.daum.net internet address = 113.61.106.5
     ns2.daum.net internet address = 113.61.107.5

     > set type=soa
     > set type=all


    3. dig
    shell> dig -h
    Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}
           {global-d-opt} host [@local-server] {local-d-opt}
           [ host [@local-server] {local-d-opt} [...]]
    Where:  domain    are in the Domain Name System
           q-class  is one of (in,hs,ch,...) [default: in]
           q-type   is one of (a,any,mx,ns,soa,hinfo,axfr,txt,...) [default:a]
                    (Use ixfr=version for type ixfr)
           q-opt    is one of:
                    -x dot-notation     (shortcut for in-addr lookups)
                    -i                  (IP6.INT reverse IPv6 lookups)
                    -f filename         (batch mode)
                    -b address          (bind to source address)
                    -p port             (specify port number)
                    -t type             (specify query type)
                    -c class            (specify query class)
                    -k keyfile          (specify tsig key file)
                    -y name:key         (specify named base64 tsig key)
           d-opt    is of the form +keyword[=value], where keyword is:
                    +[no]vc             (TCP mode)
                    +[no]tcp            (TCP mode, alternate syntax)
                    +time=###           (Set query timeout) [5]
                    +tries=###          (Set number of UDP attempts) [3]
                    +domain=###         (Set default domainname)
                    +bufsize=###        (Set EDNS0 Max UDP packet size)
                    +ndots=###          (Set NDOTS value)
                    +[no]search         (Set whether to use searchlist)
                    +[no]defname        (Ditto)
                    +[no]recurse        (Recursive mode)
                    +[no]ignore         (Don't revert to TCP for TC responses.)
                    +[no]fail           (Don't try next server on SERVFAIL)
                    +[no]besteffort     (Try to parse even illegal messages)
                    +[no]aaonly         (Set AA flag in query)
                    +[no]adflag         (Set AD flag in query)
                    +[no]cdflag         (Set CD flag in query)
                    +[no]cmd            (Control display of command line)
                    +[no]comments       (Control display of comment lines)
                    +[no]question       (Control display of question)
                    +[no]answer         (Control display of answer)
                    +[no]authority      (Control display of authority)
                    +[no]additional     (Control display of additional)
                    +[no]stats          (Control display of statistics)
                    +[no]short          (Disable everything except short
                                         form of answer)
                    +[no]all            (Set or clear all display flags)
                    +[no]qr             (Print question before sending)
                    +[no]nssearch       (Search all authoritative nameservers)
                    +[no]identify       (ID responders in short answers)
                    +[no]trace          (Trace delegation down from root)
                    +[no]dnssec         (Request DNSSEC records)
                    +[no]multiline      (Print records in an expanded format)
           global d-opts and servers (before host name) affect all queries.
           local d-opts and servers (after host name) affect only that lookup.

    shell> man dig  하면 더 자세한 사용법을 알수 있습니다.
    책에서는 dig 의 약자를 Domain Infomation Groper 라는데..
    man 페이지에서는 DNS lookup utility 란다.


    주저리..

    요즘들어...
    나는 리눅스도 윈도우도.. 젬병인거 같다..
    (그렇다고 랭귀지를 잘하는것도 아니구..)
    몇일째 삽질을 해도.. 랭귀지팩하나 제대로 적용도 못하고.
    정말 자신이 한심스럽기만 하다.

    회사에 왜 출근하는건지 모르겠다.
    즐겁지도 않고.. 앉아있는게.. 고문(??) 스럽기만 한데..
    이런 내게.. 월급을 주는 회사는 손해다.



    '└ Domain' 카테고리의 다른 글

    정리 잘된 사이트  (0) 2008.08.08
    멋쟁이 해커씨. ICANN 을 놀리다.  (0) 2008.06.30
    gTLD, ccTLD  (0) 2008.02.12

    댓글

Designed by Tistory.