Setting up a BIND DNS-Server
In this Tutorial we will install and configure ISC BIND 9 OpenSource DNS-Server instead of using Microsofts DNS-Server (which requires Windows Server) we use BIND 9 instead, because it simply runs on any recrent Windows version.
If everything works as expected, hMailServer diagnostic should looklike this:
For this Tutorial we need to use Virtualbox to setup our Training VM-Network, just to have a safe place without risking interference with our existing Networksettings.I recommend to carefully check and validate your DNS-Server settings before implementing it in a live environment, because
in a Cooperate or Homenetwork.
Download and Install Oracles Virtuabox
https://www.virtualbox.org/wiki/Downloads (choose for: "Windows hosts")
Doubleckick and run the downloaded Virtualbox Installer (in my case: VirtualBox-5.2.22-126460-Win.exe)
If Virtualbox is installed, we need to setup our own Virtualbox NAT-Network so we can create a independet so we can use
a own Subnet with as many, virtual ip addresses as we need, so our DNS-Server has a propper range of ip addresses to
resolve to Host and Domainnames.
Setting up a Virtualbox NAT-Network
Start Virtualbox and navigate to "File" Menue" and click "Preferences" and in "Preferences" click "Network"
Click the "+" Icon Button to add a new NAT-Network, right click and select "Edit NAT-Network"
Rename it to "Bind-NAT-Network" and in Network CIDR type in: 18.104.22.168/24 and click OK
In Mainmenue click "New" and create a new Windows VM (Win7/8/10 or Win Serer 2008_R2/2012/2016)
Edit settings of your new Windows VM goto "Settings" and then navigate to "Network"
In "Adapter 1" set attached to: "NAT-Network" and select "Bind-NAT-Network from the Dropdown list
Start your VM and Install Windows in the VM, it will get a Dynamic IP like (220.185.130.x)
Getting and installing Bind for Windows
Download BIND from https://www.isc.org/downloads/file/bind ... win-64-bit and unzip the file
BIND9.12.3.x64.zip to the folder "BIND9.12.3.x64"
Setting up a few, static IP addresses in our new Windows VM
Rightclick on the Network Icon in your Windows Taskbar near your Windows Clock Icon
Right click on "Open Network and Sharing Center" or on Win 10/20x on "Open Network and Internet settings"
*On Win7/8 click on "Change adapter settings" and if it opens left double click on "Local Area Connection"
*On Win10/2016-Server click on "Ethernet" and then on "Change adapter options", double click on "Ethernet"
Click on "Properties" and then "Internet Protocol Version 4 (TCP/IP) and then again "Properties"
Choose "Use the following IP address" and type as IP Address 22.214.171.124 (our wm main ip)
In Subnet type in: 255.255.255.0 and in Default Gateway: 126.96.36.199
In preferred DNS-Server type in 188.8.131.52 (let it point to our Bind DNS-Server first)
Click the "Advanced" Button and click "Add", in the Groupbox "IP addresses" click
Add 4 additional ip addresses 184.108.40.206, 220.127.116.11, 18.104.22.168, 22.214.171.124
Click "OK", then "OK" again and click the "Close" Button and the next "Close" Button (until all dialogs are closed)
Goto your Bind unzip folder and lookup BINDInstall.exe and right click on it and select "Run as administrator"
In the new Window setup a service password (for now: "letmein") and select "Start BIND Service after Install"
The Installer installs the Visual C++ 2012 Runtime, click on "Install", wait and click "close" at the end.
Click on "OK" at the message box "BIND Installation completed successfully" and click the "Exit" Button.
Navigate to "C:\ProgramData" and create a new folder "named" and in it reate "logs", "temp" and "zones" subffolders
Download the attached Archive file "Bind9_ConfigFiles.zip" from this Article and unzip it
Enter the unzipped folder and copy the "etc" folder to "C:\Program Files\ISC BIND 9" and "named" folder to "C:\ProgramData"
In Windows Service Control Panel start the Service ISC BIND (if you want, you can set the User to Localmachine)
Open a "Admin command prompt" and type in ipconfig /flushdns ENTER and afterwards in nslookup -type=mx mydomain1x.com ENTER
Now install a new hMailServer version from https://www.hmailserver.com/download and add the Domain "mydomain1x.com"
Now you have a fully functional Bind DNS-Server which you can extend and customize.
DNS-Domain settings can be changed by editing the C:\ProgramData\named\zones\*.* Zonefiles with a Text editor and simply
restarting the ISC BIND9 Service in the Windows System Controlpanel. For Errors, carefully watch C:\ProgramData\named\logs\named.log
I recommend reading the BIND9 Administrator Reference (ARM) https://www.isc.org/bind-9-11-arm/
which describes Bind in full Details and gives tips and help and best practice howtos.
This section contains user-submitted tutorials.
1 post • Page 1 of 1