1개월 전
2025-07-29 18:37:48
nsupdate 관련 커맨드(roecky 9 기준)
ㅁ nsupdate 관련 커맨드(roecky 9 기준)
nsupdate : DNS 서버에서 동적 DNS 업데이트를 수행할 수 있게 해주는 도구
(dns서버를 직접 접속을 안하고, 원격으로도 업데이트 가능)
1) nsupdate를 사용하여 dns A레코드 추가
> nsupdate
> server DNS서버 IP(혹은 직접 서버에서 접속 한다면 localhost도 무방)
> prereq nxdomain A레코드.도메인명.com.
> update add A레코드.도메인명.com. 60 IN A 해당IP
> show
> send
※ 무언가 조건이 충족이 안될시 send 단계에서 error가 발생
2) nsupdate를 사용하여 dns A레코드 제거
> nsupdate DNS서버 IP(혹은 직접 서버에서 접속 한다면 localhost도 무방)
> prereq yxrrset A레코드.도메인명.com. A
> update delete A레코드.도메인명.com. A
> show
> send
3) DNS서버에 등록된 모든 주소 LIST
> dig axfr 도메인주소.com @DNS서버 IP
예시> dig axfr ebdiary.com @192.168.0.1
댓글