bind catlog
1874 단어 DNS
참조:https://kb.isc.org/article/AA-01401/0/A-short-introduction-to-Catalog-Zones.html
vim/usr/local/bind/var/catalog.example.db
; catalog.example.db
catalog.example. IN SOA . . 1 86400 3600 86400 3600
catalog.example. IN NS invalid.
version IN TXT "1"
master 프로필
options {
listen-on port 53 { any; };
allow-new-zones yes;
};
zone "catalog.example" {
type master;
file "/usr/local/bind/var/catalog.example.db";
allow-transfer { any; };
allow-update { any; };
also-notify { 10.0.0.2; };
notify explicit;
};
slave 프로필
options {
catalog-zones {
zone "catalog.example" default-masters { 10.0.0.1; };
};
};
zone "catalog.example" {
type slave;
file "/usr/local/bind/var/slaves/catalog.example.db";
masters { 10.0.0.1; };
};
zone 추가
; example.com.db
example.com. 3600 IN SOA . . 1 3600 3600 3600 3600
example.com. IN NS ns1.isc.org.
ff123.com. 3600 IN SOA . . 1 3600 3600 3600 3600
ff123.com. IN NS ns1.isc.org.
./sbin/rndc -c etc/rndc.conf -k etc/rndc.conf -y rndc-key addzone example.com '{type master; file "example.com.db";};'
:
# ./bin/dig +short @10.0.0.1 soa example.com
. . 1 3600 3600 3600 3600
slave 도메인 이름 추가
cat << __EOF | ./bin/nsupdate
server 10.10.132.252 53
update add c5e4b4da1e5a620ddaa3635e55c3732a5b49c7f4.zones.catalog.example 3600 IN PTR example.com
send
__EOF
cat << __EOF | ./bin/nsupdate
server 10.10.132.252 53
update add c5e4b4da1e5a620ddaa3635e55c3732a5b49c7f4.zones.catalog.example 3600 IN PTR ff123.com
send
__EOF
:
# ./bin/dig +short @10.0.0.2 soa example.com
. . 1 3600 3600 3600 3600
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
[CS] HTTP/네트워크 기초 Day-37HTTP를 이용해 주고 받는 메시지를 HTTP 메시지라고 부릅니다. 서버가 리소스를 전달하기 위한 API를 구축해놓아야 클라이언트가 이를 활용할 수 있습니다. HTTP 요청에는 메소드라는 것이 존재합니다. HTTP ...
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.