bind Version 정보를 숨기려면 아래와 같이 작업하면 된다.
1. /etc/named.conf 에 아래의 내용 설정
2. /var/named/db.bind 파일의 내용
1. /etc/named.conf 에 아래의 내용 설정
zone "bind" chaos {
//bind 의 버전정보 요청에 대해 차단한다.
type master;
file "db.bind";
allow-query {
none;
};
allow-transfer {
none;
};
};
//bind 의 버전정보 요청에 대해 차단한다.
type master;
file "db.bind";
allow-query {
none;
};
allow-transfer {
none;
};
};
2. /var/named/db.bind 파일의 내용
$TTL 1D
$ORIGIN bind.
@ CHAOS SOA localhost. root.localhost. (
2000081201 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum
CHAOS NS localhost.
$ORIGIN bind.
@ CHAOS SOA localhost. root.localhost. (
2000081201 ; serial
3H ; refresh
1H ; retry
1W ; expiry
1D ) ; minimum
CHAOS NS localhost.