BIND DNS Server on a Local Network: Part 5
Installing and Configuring BIND
disclaimer
posted: 2020-07-17 | updated: 2020-10-26
By this point you should be able to request and display the test websites set up in Part 3 using name-based virtual hosts—domain names, such as cache.cow, which exist only on the local network. DNS duties were handled temporarily by adding hosts file entries to each non-mobile device. Mobile devices were tested by displaying an index page, using the development server’s IP address, 192.168.0.200, instead of a virtual host, see Part 3: Create test websites.
A bit about the BIND setup
- The BIND DNS server will be configured as an authoritative name server.
- BIND will respond only to queries for locally hosted domain names from devices on the local network. Since this configuration doesn’t cache anything, you can still make use of Window’s DNS resolver cache, though you will want to disable the DNS client while configuring and testing BIND, and working on development websites. Part 3, Disable the DNS cache resolver on the development server
- Only one DNS server is used in this example, however in the wild and oft cruel lands beyond your local network, two or more DNS servers are used to provide redundancy.
- Nothing changes for Internet queries which are still handled by your ISP’s DNS Server or other name server of your choice.
- BIND configuration and zone files are provided for your convenience.
- This configuration does not allow use of the nsupdate tool, Bv9ARM.pdf, p. 285, which is used to submit Dynamic DNS Update requests. Instead, zone records will be edited manually.
Steps to be completed in Part 5:
- Remove hosts file entries for test websites
- Change the development server’s preferred DNS server IP to localhost
- Change the router’s primary DNS server IP to the development server’s static IP
- Install BIND
- Add bin folder to the Path System Variable
- Create a key file for the rndc tool
- Create and check named.conf, BIND’s main configuration file
- Create and check zone files
- Create shortcuts for starting and stopping BIND’s named service
- Starting BIND for the first time
- Test local websites
- When BIND won’t start
- Troubleshooting BIND
No comments yet…