Installation and configuration of DNS on Client and Server Side
Hello guys, this time I’d like to share step by step DNS on server side and client side using linux ubuntu. If you still do not know what exactly DNS is, you can read our previous post in here. Then here you go.
Server Side
Log in as root on terminal
Perform the installation package with the command
After installing the package above configuration file will be created in /etc/bind then read the file named.conf, named.conf.local and named.conf.option. The following is the contents of the named.conf file, it is not necessarily a change to this file.
Next there is the file named.conf.local, initially the contents of this file is still empty, fill with domain zones we will make and reverse domain as follows (in this case we will make domain takehome.com):
The file named.conf.option contains additional options on our domain, add our main DNS here so that allows the client can connect to the internet:
Next, prepare two files according to the contents of the file in the file named.conf.local ie /cache/bind/db.takehome and /var/cache/bind/db.reverse. Move to the / var / cache / bind directory and create 2 files: db.takehome.com and db.reverse, adjust the example below with your computer's no ip configuration and the domain name you created. Fill in the following db.takehome File:
Fill in the following db.reverse File:
Client Side
Next Edit /etc/resolv.conf file change according to your computer configuration (Client Side) :
Do a restart on your computer
Testing
Test the results of the installation experiment and the configuration of the package that has been done with the following command. If no error means successful.
If there is no error then the message will appear OK
Then do nslookup, the result will be like this :
Comments
Post a Comment