DNS 설정 · 1 min read · Oct 03, 2025

ms dns를 bind9로 교체하기

Isc Bind 9 for windows

ms dns를 bind9로 교체하는 것은 더 나은 아이디어입니다. 그 이유는 다음과 같습니다:

  1. 정말 빠릅니다 (해당 머신에서 첫 번째 쿼리를 실행할 때 느꼈고 지연 시간이 낮았습니다)
  2. 더 나은 보안 (windows2k는 향후 패치 지원이 없습니다)
  3. 그 후에 리눅스로 쉽게 마이그레이션할 수 있습니다 ;)

isc.org에서 다운로드하여 압축을 풀고 디렉토리 내부에서 설치 프로그램(bindinstaller.exe)을 실행하세요.

http://www.isc.org/sw/dl/?pkg=bind/contrib/ntbind-9.3.1/
BIND9.3.1.zip&name=BIND%209.3.1%20Windows%20Binaries

패키지를 서비스로 설치하세요 (zip 내부에 설정이 있습니다)

다음 내용을 가진 etc/named.conf를 생성하세요.

zone “.” {
type hint;
file “named.root”;
};
zone “localhost” IN {
type master;
file “localhost.zone”;
allow-update { none; };
};
zone “0.0.127.in-addr.arpa” {
type master;
file “named.local”;
};

#isc bind는 이 디렉토리에 설치됩니다 c:\winnt\system32\dns

include “d:\winnt\system32\dns\named.zones”;

options
{
directory “c:\windows\system32\dns\etc”;
};

download root dns server list “named.ca” from FTP.RS.INTERNIC.NET (anonymous ftp)

localhost.zone을 다음 내용을 가지고 생성하세요.

$TTL 86400
$ORIGIN localhost.
@ 1D IN SOA @ root (
44 ; serial (d. adams)
3H ; refresh
15M ; retry
1W ; expiry
1D ) ; minimum

1D IN NS @
1D IN A 127.0.0.1
localhost.localdomain. IN A 127.0.0.1

named.local을 생성하세요.
@ IN SOA localhost. root.localhost. (
19 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.

1 IN PTR localhost.

이제 named.zones의 시간입니다. (충격) 존 파일을 포함할 것입니다.

zone “example.com” IN {
type master;
file “example.com.db”;
};

example.com.db는 다음과 같이 생성됩니다 (이 내용으로)

example.com. IN SOA ns1.example.com. hostmaster.example.com. (
200509121 ; Serial
30800 ; Refresh
7200 ; Retry
604800 ; Expire
300 ) ; Minimum
example.com. IN NS ns1.example.com.
example.com. IN NS ns2.example.com.
example.com. IN MX 10 mail.example.com.
www.example.com. IN A 192.168.0.3
example.com. IN A 192.168.0.3
mail.example.com. IN A 192.168.0.3
ftp.example.com. IN A 192.168.0.3

이 명령으로 서버를 시작하세요 (오류가 있는지 확인하기 위해)
bin/named -g -f -d 5

서버가 쿼리에 응답하면

try dig example.com @localhost

다음 단계는 서비스를 활성화하고 ms dns 서버를 제거하는 것입니다 (독점 교체가 이렇게 쉽습니다 ;)

Share: X/Twitter LinkedIn

새 게시물을 받은 편지함에서 받기

스팸은 없습니다. 언제든지 구독 해지 가능합니다.