BIND DNS Server on a Local Network: Part 5
Installing and Configuring BIND
disclaimer
posted: 2020-07-17 | updated: 2020-10-26
Step 9:Create shortcuts for starting and stopping BIND named service
After checking to see that named.conf and the zone files are free of syntax errors, it’s time to start BIND for the first time. There are three ways to start and stop BIND’s named service:
- From the Windows Services console—not terribly convenient
- From the Command prompt using net.exe—more convenient
-
From a desktop shortcut—most convenient
You can start and stop BIND’s named service from batch files, but you’ll get tired of selecting “Run as Administrator” each time you want to start or stop the service. An easier way is to create desktop shortcuts to the batch files. Shortcuts can remember their administrative status plus you can select groovy icons to replace the dreary default batch file icon.
-
Create a batch file to start BIND
Copy and paste the following into a text editor:
@echo off echo *----------------------------* echo *--- START named Service ---* echo *--- ISC BIND 9.16.1.x64 ---* echo *--- installed 2020-04-04 ---* echo *----------------------------* echo. NET START named pauseSave the file as C:\webserver\bind\START BIND 9.16.1.bat
-
Create a batch file to stop BIND
Copy and paste the following into a text editor:
@echo off echo *--------------------------* echo *--- STOP named Service ---* echo *--------------------------* echo. NET STOP named pauseSave the file as C:\webserver\bind\STOP BIND 9.16.1.bat
-
Create desktop shortcuts to the batch files
- Locate START BIND 9.16.1.bat in File Explorer
- Hold down the ALT key, click on the file and drag it to the desktop
- Repeat the process with STOP BIND 9.16.1.bat
-
Configure the shortcuts to Run as administrator
- Right-click the START BIND 9.16.1 shortcut, click Properties
- In the Shortcut tab, click the Advanced button
- Check the Run as administrator checkbox, click Ok
- Repeat the process STOP BIND 9.16.1 shortcut
-
Give the shortcuts a more exciting icon


No comments yet…