특정 도메인에 매핑된 서버의 IP 또는 서버들의 VIP를 변경하는 경우, DNS 서버에서의 해당 서버에 대한 IP/도메인 정보가
정확하게 업데이트가 되었는데도 해당 도메인에 대한 DNS 쿼리를 실행하면
변경 이전의 구 IP로 요청이 되는 경우가 있다.

이것은 DNS 쿼리를 실행하는 해당 클라이언트(보통 PC)에서 DNS cache가 남아있기 때문이다.

보통 윈도우 시스템의 경우, 접속 빈도가 있는 도메인에 대해 DNS 서버에 쿼리를 날리지 않고
보다 빠르게 처리할 수 있도록 cache를 사용하여 정보를 저장하게 되며,
아래와 같이 ipconfig /displaydns 로 확인했을 때, TTL 값에 정의된 시간만큼 저장이 된다.

이 경우 문제를 해결하려면..해당 클라이언트 PC에 남아있는 cache를 flush하여
새롭게 DNS 서버에 쿼리를 수행하여 정보를 가져와야 한다.

C:>ipconfig/displaydns  --> cache에 보관된 DNS의 정보를 출력

Windows 2000 IP Configuration

   localhost.

     Record Name . . . . . : localhost
     Record Type . . . . . : 1
     Time To Live  . . . . : 31517302
     Data Length . . . . . : 4
     Section . . . . . . . : Answer
     A (Host) Record . . . :
                       127.0.0.1

    www.fila.co.kr.

     Record Name . . . . . : www.fila.co.kr
     Record Type . . . . . : 1
     Time To Live  . . . . : 73002
     Data Length . . . . . : 4
     Section . . . . . . . : Answer
     A (Host) Record . . . : 210.124.177.198

     Record Name . . . . . : fila.co.kr
     Record Type . . . . . : 2
     Time To Live  . . . . : 73002
     Data Length . . . . . : 4
     Section . . . . . . . : Authority
     NS Record   . . . . . : ns.fila.co.kr


     Record Name . . . . . : ns.fila.co.kr
     Record Type . . . . . : 1
     Time To Live  . . . . : 73002
     Data Length . . . . . : 4
     Section . . . . . . . : Additional
     A (Host) Record . . . : 211.106.109.2


   ns2.dacom.co.kr.

     Record Name . . . . . : ns2.dacom.co.kr
     Record Type . . . . . : 1
     Time To Live  . . . . : 33263
     Data Length . . . . . : 4
     Section . . . . . . . : Answer
     A (Host) Record . . . : 203.248.240.31


C:>ipconfig/flushdns

Windows 2000 IP Configuration
Successfully flushed the DNS Resolver Cache.



- 참고 : ipconfig 커맨드 사용 방법

C:\ ipconfig /?

USAGE:
    ipconfig [/? | /all | /renew [adapter] | /release [adapter] |
              /flushdns | /displaydns | /registerdns |
              /showclassid adapter |
              /setclassid adapter [classid] ]

where
    adapter         Connection name
                   (wildcard characters * and ? allowed, see examples)

    Options:
       /?           Display this help message
       /all         Display full configuration information. (전체 설정 정보를 출력)
       /release     Release the IP address for the specified adapter. (지정된 adapter에 대한 IP address를 해제)
       /renew       Renew the IP address for the specified adapter. (지정된 adapter에 대한 IP address를 갱신)
       /flushdns    Purges the DNS Resolver cache. (DNS Resolver cache를 제거)
       /registerdns Refreshes all DHCP leases and re-registers DNS names (모든 부여받은 DHCP 정보를 Refresh하고 DNS 서버 이름을 다시 등록)
       /displaydns  Display the contents of the DNS Resolver Cache. (DNS Resolver Cache의 내용을 출력)

       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For Setclassid, if no ClassId is specified, then the ClassId is removed.

Examples:
    > ipconfig                   ... Show information.
    > ipconfig /all              ... Show detailed information
    > ipconfig /renew            ... renew all adapters
    > ipconfig /renew EL*        ... renew any connection that has its
                                     name starting with EL
    > ipconfig /release *Con*    ... release all matching connections,
                                     eg. "Local Area Connection 1" or
                                         "Local Area Connection 2"

'Troubleshoot' 카테고리의 다른 글

[RHEL] SystemTap Beginners Guide  (0) 2015.03.12

+ Recent posts