BIND DNS Server on a Local Network:  Part 5

Installing and Configuring BIND

disclaimer
posted: 2020-07-17 | updated: 2020-10-26

page 5 of 6

Model sailing ship seen through wood-framed window

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.exemore 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.

  1. 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
    pause

    Save the file as C:\webserver\bind\START BIND 9.16.1.bat

  2. 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
    pause

    Save the file as C:\webserver\bind\STOP BIND 9.16.1.bat

  3. Create desktop shortcuts to the batch files

    1. Locate START BIND 9.16.1.bat in File Explorer
    2. Hold down the ALT key, click on the file and drag it to the desktop
    3. Repeat the process with STOP BIND 9.16.1.bat
  4. Configure the shortcuts to Run as administrator

    1. Right-click the START BIND 9.16.1 shortcut, click Properties
    2. In the Shortcut tab, click the Advanced button
    3. Check the Run as administrator checkbox, click Ok
    4. Repeat the process STOP BIND 9.16.1 shortcut
  5. Give the shortcuts a more exciting icon

    Desktop shortcuts to start and stop BIND batch files

    Shortcuts spiced up with tastier icons

page 5 of 6

«

⛵ top ⛵

No comments yet…

Expound upon: BIND DNS Server on a Local Network:  Part 5

Your email address will not be published. Required fields are marked *

*