Zasfe
Zasfe's memory
Zasfe
전체 방문자
561,025
오늘
0
어제
23
  • 분류 전체보기 (143)
    • 이야기 (50)
    • 뜻알기 (1)
    • 컴퓨터 (91)

인기 글

  • 리눅스에서 오라클 실행하기
    2014.07.04
  • Scripting.Dictionary 사용하기..1
    2007.11.14
  • 배치파일활용01 - 날짜단위 폴더,파일 만들기
    2009.01.05
    배치파일활용01 - 날짜단위 폴더,파일 만들기
  • 정관과 약관의 차이
    2009.03.26
  • FSO - CreateTextFile - 파일 만들기
    2007.02.01

최근 글

  • 워나크라이(WannaCry) 대란
    2017.05.15
  • 이벤트로그에 10016 DistributedCOM 가 발생⋯
    2014.10.07
    이벤트로그에 10016 DistributedCOM 가 발생⋯
  • 리눅스에서 오라클 실행하기
    2014.07.04
  • CentOS 5.x 설치후 X Window 설치 하기
    2014.06.24
  • CentOS 4.x Yum repo 재설정 방법
    2014.06.20

태그

  • web.config
  • 보안
  • Skin
  • Microsoft Windows 2000 Scripting Guide
  • cmd
  • webhacking
  • webknight2.1
  • IIS
  • ASP
  • Security
  • webknight 2.2
  • 캐슬
  • Function
  • IIS7
  • 배치파일
  • 홈페이지 보안 강화도구
  • backup
  • MSSQL
  • error
  • webshell
  • MSSQL2K
  • webknight
  • Castle
  • VBScript
  • Autoit
  • 저장프로시저
  • webknight2.2
  • 생각
  • nslookup
  • rsync
hELLO · Designed By 정상우.
Zasfe

Zasfe's memory

컴퓨터

네임서버 갱신 확인하는 배치파일

2008. 11. 11. 12:04

서비스업체를 변경한다던지, 메일서버를 변경하는등의 네임서버정보를 변경할때
가장 중요한것은 어느시점에 변경이 되느냐 입니다.

사실 알수는 없죠. 재각기 다른 네임서버 갱신시간들때문입니다.
TTL 이라는 네임서버 갱신을 위한 값을 최소화하는 방법을 많은 분들이 이용하고 있으실것입니다.

하지만, 모두다 변경이 되었다 라고 단언하기는 좀 어려운게 현실입니다. 많은 네임서버들을 전부 조회할수도 없거니와
네임서버 IP 확인하고 하나하나 입력하는것도 단순노동이죠

그래서 수정해서쓰기 편하게 배치파일로 만들어봤습니다.

 

@echo off

echo                              한국통신 1차 - kns.kornet.co.kr
nslookup %1 168.126.63.1 | findstr "Address" | findstr /v "168.126.63.1"
echo                              한국통신 2차 - kns2.kornet.net
nslookup %1 168.126.63.2 | findstr "Address" | findstr /v "168.126.63.2"

echo                              하나로 1차 - qns1.hananet.net
nslookup %1 210.220.163.82  | findstr "Address" | findstr /v "210.220.163.82"
echo                              하나로 2차 - qns2.hananet.net	
nslookup %1 219.250.36.130  | findstr "Address" | findstr /v "219.250.36.130"
echo                              하나로 3차 - qns3.hananet.net
nslookup %1 210.94.6.67  | findstr "Address" | findstr /v "210.94.6.67"
echo                              하나로2 1차 - cns1.hananet.net	
nslookup %1 210.94.0.73	 | findstr "Address" | findstr /v "210.94.0.73	"
echo                              하나로2 2차 - cns2.hananet.net	
nslookup %1 221.139.13.130  | findstr "Address" | findstr /v "221.139.13.130"
echo                              하나로2 3차 - cns3.hananet.net
nslookup %1 210.180.98.74  | findstr "Address" | findstr /v "210.180.98.74"

echo                              두루넷 1차 - nsgr1.thrunet.com	
nslookup %1 210.117.65.1 | findstr "Address" | findstr /v "210.117.65.1"
echo                              두루넷 2차 - nsgr2.thrunet.com	
nslookup %1 210.117.65.2 | findstr "Address" | findstr /v "210.117.65.2"

echo                              신비로 1차 - ns.shinbiro.com	
nslookup %1 202.30.143.11 | findstr "Address" | findstr /v "202.30.143.11"
echo                              신비로 2차 - ns2.shinbiro.com	
nslookup %1 203.240.193.11  | findstr "Address" | findstr /v "203.240.193.11"

echo                              데이콤 1차 - ns1.lgdacom.net
nslookup %1 164.124.101.2 | findstr "Address" | findstr /v "164.124.101.2"
echo                              데이콤 2차 - ns2.lgdacom.net
nslookup %1 203.248.240.31  | findstr "Address" | findstr /v "203.248.240.31"

echo                              드림라인 1차 - ns.cjdream.net	
nslookup %1 210.181.1.24 | findstr "Address" | findstr /v "210.181.1.24"
echo                              드림라인 2차 - ns2.cjdream.net
nslookup %1 210.181.4.25 | findstr "Address" | findstr /v "210.181.4.25"

echo                              파워콤 1차 - cns2.bora.net	
nslookup %1 164.124.107.9 | findstr "Address" | findstr /v "164.124.107.9"
echo                              파워콤 2차 - cns3.bora.net
nslookup %1 203.248.252.2 | findstr "Address" | findstr /v "203.248.252.2"


invalid-file

다운받기

'컴퓨터' 카테고리의 다른 글

웹해킹 파일 분석  (0) 2009.01.02
일반적인 웹해킹을 막으려면  (4) 2008.12.03
내 웹사이트가 있는 서버 관리자는 보안을 모른다?  (4) 2008.11.04
Filezilla Server 한글깨짐패치 사용하기  (2) 2008.11.04
Mass SQL Injection 일괄 삭제하기 - VBScript  (21) 2008.10.31
    '컴퓨터' 카테고리의 다른 글
    • 웹해킹 파일 분석
    • 일반적인 웹해킹을 막으려면
    • 내 웹사이트가 있는 서버 관리자는 보안을 모른다?
    • Filezilla Server 한글깨짐패치 사용하기
    Batch File, cmd, iSP, nameserver, nslookup
    Zasfe
    Zasfe
    느낌. 기억
    댓글쓰기
    다음 글
    일반적인 웹해킹을 막으려면
    이전 글
    내 웹사이트가 있는 서버 관리자는 보안을 모른다?

    티스토리툴바