Isc Bind 9 for windows
Replacing ms dns with bind9 is an better idea here is why:
1.It's really faster (noticed when i run first query on that machine and had lower latency)
2.Better security (windows2k is not supported with patches in future)
3.You can migrate easily to linux after that ;)
Download from isc.org unzip it and run the installer (bindinstaller.exe) from inside directory
http://www.isc.org/sw/dl/?pkg=bind/contrib/ntbind-9.3.1/
BIND9.3.1.zip&name=BIND%209.3.1%20Windows%20Binaries
Install the package as service (there is an setup inside zip)
create etc/named.conf with folowing content
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 is installed in this dir 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)
create localhost.zone with following content
$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
create named.local
@ IN SOA localhost. root.localhost. (
19 ; Serial
28800 ; Refresh
14400 ; Retry
3600000 ; Expire
86400 ) ; Minimum
IN NS localhost.
1 IN PTR localhost.
Is time now for named.zones that will contain (shock) zone files
zone "example.com" IN {
type master;
file "example.com.db";
};
Where example.com.db will be created like this (with this content)
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
Start the server with this command (to see if any errors )
bin/named -g -f -d 5
If server responds to queries
try dig example.com @localhost
next step is to enable it as service and remove ms dns server (it's that easy to replace monopoly ;))