Installation Instructions for
The DNS server for ISP
The Domain Name Servers (DNS) are those that are always waiting for all requests that need to resolve a domain name such as www.livaur.com to return the IP assigned to that host.
Here I will show you a very easy way to install a DNS within your network.
- Follow these instructions only when you already have Ubuntu Server 18.04LTS installed on a physical or virtual machine.
- If you are going to work with a VPS (Virtual Private Server or Virtual Private Server) make sure that in VirtualBox in Network> Adapter1 you are connected to bridge adapter and have the correct physical interface selected , which connects to your network.
- If you are going to install it on a VPS and you still dont have it with Ubuntu Server 18.04LTS follow the instructions below by clicking here
Lets start with the installation.
- Open a web browser and type in the address bar https://www.livaur.com
- Go to the menu Software and click on DNS server
- Click the Download button
- You will download a file called dns.tar.gz
- Open the VirtualBox program
Start the VPS that will be the domain name server
(If you do not already have the VPS, check this instruction before continuing )
- Log in with your administrator account
Type the command
ifconfigand press ENTER
All the network cards that you have installed in the VPS will be listed, there will be one (most likely the first) that has an IP within the range of your network. This line will be similar to
inet addr: 10.1.1.139 Bcast: 10.1.1.255 Mask: 255.255.255.0Take note of the IP (in my case
10.1.1.139) because we will use it in the next step.
- Open the FileZilla program>
- On the left side there will be a server-shaped button, click on it
- It will open a window called Site Manager , click on the button that says New site
- He will expect you to enter a name for this new site, call it dns
On the right side in front of Server: write the IP of your server that you took note of. (in my case
- In Protocol: select SFTP-SSH File Transfer Protocol
- In Access mode: select Normal
- Enter your username and password
- Click on Connect
- It will show the Unknown site key dialog, check the box Always trust this site, add a key to the cache and click accept
- The right side, in the quadrant below Remote site The users home directory will be selected.
- Now we look for the dns.tar.gz file that we previously downloaded and drag it to the second quadrant below Remote site
Once this is done, we go to the screen of our VPS and write the
lscommand and give ENTER
It will show the name of the file we just loaded, now we type the command
sudo tar -xzvf ./dns.tar.gzand we give ENTER
- We write our password and give ENTER
We write the command
ls, which will show us a directory called dns
We enter the directory with the
Once inside we write the
lscommand and we will see that there is a file called install.sh
Lets run it by typing
- We wait for the installation process to finish
- At the end of the installation it will show a message indicating to open a browser with a URL.
- We open a browser and write the URL that the VPS screen showed us
- We log in with our user account (in my case it is administrator )
- Once inside we click on the REFRESH MODULES menu
- We wait a few seconds
- Now we will assign a static IP to the server, which this time will be the IP 10.1.1.3
- For that we go to the NETWORKING > NETWORK CONFIGURATION menu
- Once inside we click on the interface to which we will change your IP
- Once inside the interface configuration, we change from FROM DHCP to STATIC CONFIGURATION and in the IPV4 section we write the new IP, in my case will be 10.1.1.3
- In NETMASK we leave 255.255.255.0 and click on the SAVE button
- It is time to apply the change
- Select the interface that we configure and click the APPLY SELECTED INTERFACES button
- Once the change is made, we go back to the servers web interface by typing its new URL, in my case it will be https://10.1.1.3:10000
- Again inside, we go to NETWORKING> NETWORK CONFIGURATION and click on ROUTING AND GATEWAYS
- In DEFAULT ROUTER select GATEWAY and write the routers IP that gives us access to the internet, in my case it is 10.1.1.1
- We click on the SAVE button
- Now we click on HOSTNAME AND DNS CLIENT
- In the DNS SERVERS section we write the IPS of the Google DNS, in this case they are 188.8.131.52 and 184.108.40.206
- We click on the SAVE button
- Now we click on the APPLY CONFIGURATION button
- We will end by clicking on the SERVERS menu and on BIND DNS SERVER
- We will modify the settings of FORWARDING AND TRANSFERS , so we click on that button.
- Inside is a column that says IP ADDRESS
- Below are three clean text boxes, there we will put a Google DNS IP and another OpenDNS IP. We will write in the first 220.127.116.11 and in the second 18.104.22.168
- We click on SAVE
- We finish by clicking on the upper right button that says APPLY CONFIGURATION
- Up to this point you have managed to configure a LOCAL DNS SERVER , congratulations!
The core of this server is BIND9 and it still has many features that you can use.