본문 바로가기

반응형

BIND

dns-check.sh 스크립트 dns-check.sh 스크립트 dns-check.sh 스크립트 생성 vim dns-check.sh #!/bin/bash # DNS 서버 로그 분석 및 IP 통계 스크립트 logfile="/var/named/named.recursing" # DNS 로그 파일 경로 CUR_DATE=`date '+%Y%m%H%M%S'` # 현재 날짜 및 시간 echo echo echo "---------rndc stats---------------" /usr/sbin/rndc status | grep recursive # rndc 상태 확인 /usr/sbin/rndc recursing # 재귀 요청 목록 출력 echo "----------------------------------" echo echo echo "------.. 더보기
[네임서버] bind 슬레이브 ZONE 파일 유형 변경(masterfile-format) bind 슬레이브 ZONE 파일 유형 변경(data -> ASCII text) 슬레이브 서버 named 설정 파일에 적용 vim /etc/named.conf options { ... masterfile-format text; ... } Syntax: [ masterfile-format (text|raw) ; ] masterfile-format Specifies the file format of zone files (see Section 6.3.7). The default value is text, which is the standard textual representation, except for slave zones, in which the default value is raw. Files in oth.. 더보기
[네임서버] bind(named) 기본 파일 확장자: $GENERATE 지시어 bind(named) 기본 파일 확장자: $GENERATE 지시어 172.20.0.0/24 역도메인(reverse domain) zonefile 생성 named.conf(/etc/bind/named.conf) 편집 vim /etc/bind/named.conf zone "0.20.172.in-addr.arpa" { type master; file "172.20.0.zone"; }; 172.20.0.zone(/var/cache/bind/172.20.0.zone) 편집 vim /var/cache/bind/172.20.0.zone $TTL60 $ORIGIN 0.20.172.IN-ADDR.ARPA. @INSOAlocalhost. root.localhost. ( 2022112307; Serial 604800; Re.. 더보기
[bind] rndc(remote name daemon control) 유틸리티 rndc(remote name daemon control) 유틸리티 관리자용 rndc(remote name daemon control) 유틸리티가 사용하는 설정 파일로 named.conf와 비슷함 rndc.conf의 구성 options server key server { };와 key { }; 구문은 여러 개 설정할 수 있다. 설정 내용을 수동으로 하나씩 입력하거나, rndc-confgen 유틸리티를 이용할 수 있다. options { default-server localhost; default-key "rndckey"; }; server localhost { keys "rndckey"; }; key "rndckey" { algorithm hmac-md5; secret "ZMuyJzOvfbkHarwLcK.. 더보기
[네임서버] bind(named) error-ran out of space 에러 bind(named) error-ran out of space 에러 named-checkzone bioscbyun.com bioscbyun.com.zone $ named-checkzone bioscbyun.com bioscbyun.com.zone dns_rdata_fromtext: bioscbyun.com.zone:13: ran out of space zone bioscbyun.com/IN: loading from master file bioscbyun.com.zone failed: ran out of space zonefile $ cat bioscbyun.com.zone ; Created by Internet Connection SNG 961081821 $TTL 10m @ IN SOA scbyun.co.. 더보기
[네임서버] Powered by DNS Powered by DNS Powered by DNS http://wiki.kldp.org/KoreanDoc/html/PoweredByDNS-KLDP/index.html 김승영 nobreak@openbird.com 3rd Edition, 최종수정일 2001년 12월 16일, Revision 3.4.5 HTML(Divided) HTML(Combined) SGML(DocBook) 더보기
[원도우] 이벤트 ID 4000 이벤트 ID 4000 Product: Windows Operating System ID: 4000 Source: DNS Version: 5.2 Symbolic Name: DNS_EVENT_DS_OPEN_FAILED Message: The DNS server was unable to open Active Directory. This DNS server is configured to obtain and use information from the directory for this zone and is unable to load the zone without it. Check that the Active Directory is functioning properly and reload the zone. The .. 더보기
bind zone 파일 IP 변경 스크립트 bind zone 파일 IP 변경 스크립트 1. 스크립트 생성 vim change_ip.sh 2. 스크립트 편집 #!/bin/bash # 원본 파일 경로와 대상 디렉터리 설정 src_dir="/var/named/aa04" dst_dir="/tmp/named/aa04" replace_ip="10.0.10.124" new_ip="192.168.0.20" # 대상 디렉터리가 존재하지 않으면 생성 mkdir -p "$dst_dir" # 원본 디렉터리 내 파일을 하나씩 처리 for file in "$src_dir"/* do if [ -f "$file" ]; then # 파일인 경우에만 처리 filename=$(basename "$file") # 파일명 추출 # sed를 사용하여 IP 주소 치환 후 대상 디렉터리에.. 더보기

728x90
반응형