Own built intranet
This is how the intranet being layout for the test
The own-built DNS server
First setup zone file and index file in the DNS (bind9) server. The file path is at:Index file in /etc/bind/named.conf.local.
This file act as a index, where this file tells the system where to find the zone file when it needs to resolve names requests. We manually add in the entries into the file as below.
Zone files stores in /etc/bind/zones.
Exactly the file path where the index file listed.
Open up one of the file, as we can see the ipaddress is saved there. These entries also inserted manually.
Below is the screenshot of check bind9 service status.
----------------------------------- END OF DNS SERVER PORTION -----------------------
THE CLIENT SIDE
We have to configure DNS server settings in the Network Settings. We set our above DNS server IP at 192.168.1.105, so all the clients within the network has to configure DNS setting in the network settings manually to point to our own-built DNS server. If we do not do that, the client will not get the name resolve in our own-built DNS server.
We run terminal app, and run the command nslookup. This command can be run on mac as well as windows and Linux. Below is the screenshot of the test.
With nslookup command, we could resolved names from the dns server locally.
The macbook has configured to run apache for this test. So when connect to the macbook website, it actually successful load up the webpage.









No comments:
Post a Comment