A Domain name system server is piece of software that runs on a pc, that can translate a website name into the true ip address. In different words if you kind an internet address into your web browser, your internet provider’s DNS server will look into it information and seek for the area name that your are requesting. The main purpose you would want a local dns cache server is to decrease the ping price whenever you request a selected web page. Another reason to have a local dns cache server is as a result of the dns records shall be tailor-made to your use.
Once you request a particular internet address or area in your internet browser, one of two issues will occur on the internet providers DNS server. The first thing that might occur if you request a website is that the tackle is already situated within the internet providers dns records.
The second factor that could occur when you request an internet deal with is that domain shouldn’t be positioned inside your internet providers records. If the domain that you are requesting is just not together with your web suppliers Domain name system server, then the handle will have to be found at a distinct dns server, then can be added to your web providers dns server records.
In case you are already utilizing a linux os akin to Ubuntu, simply open up your terminal program and sort in dig web-address.com. For instance I used Yahoo, so I typed in dig yahoo.com. As you possibly can see from the image under that my ping fee took 30 milliseconds for my request to achieve the dns server. For the experts on the market, you will also notice that I am already utilizing a local dns server.
Now upon getting run the dig command once, rerun similar command once more to see what you’ll get. As soon as I ran dig yahoo.com once more you’ll now discover that my ping fee to my dns server is just one millisecond. Now chances are you’ll think saving solely 29 milliseconds doing one search, but should you add this time up over many searches, it pays itself off. For those on the market that still use dial up or satellite internet will gain probably the most profit by having their own local Domain name system server. For example a satellite tv for pc internet supplier comparable to Wild Blue or Hughes Net might need anywhere from a 200 msec – 1500 msec ping time, so if you may lower this time down to a couple milliseconds would find yourself saving a number of time.
Now it’s time to get right down to the center of setting up your very own local dns server. In this tutorial I might be displaying you ways setup your local dns cache server on one computer, but you can set your dns server to manage your complete local network. This is able to permit each laptop on your network to speak to the local dns server, saving time for everybody on the local network. When you’ve got a number of computers on you network and wish to setup a local community dns server, observe the Ubuntu gateway firewall tutorial, then come back to this page to setup you local dns server. Just just remember to install dnsmasq as an alternative of bind9.
The primary that you’ll want to do in establishing your local dns cache server is to install the dns server software.
sudo apt-get install dnsmasq vim
Once dnsmasq is installed, you’ll now have to configure the dnsmasq to act as a cache server.
vi /etc/dnsmasq.conf
Inside the dnsmasq.conf file search for the line that says listen-address=127.0.0.1 and remove the to make this line active.
listen-address=127.0.0.1
The subsequent thing that you will need to do is edit the /and so forth/resolv.conf file to allow your local dns to have the ability to discuss to your internet suppliers dns server, just in case your local dns server would not contain the net addresses your are looking for. If you first setup your local dns cache server, there won’t be addresses in your dns server, so your dns server will want to be able to discover this handle somewhere.
You web providers dns handle may be discovered using many various strategies, so I’ll explain just a few of these ways. If you’re are using a router attempt typing one in every of these addresses to entry your default gateway. Open a web browser and sort in 192.168.1.1 or 192.168.1.254 in the handle bar. If you’re utilizing a 2wire gateway the address will likely be 192.168.1.254, and in case you are using another router akin to a Linksys router, the address will probably be 192.168.1.1.
If you are on a Home windows based pc, simply open up the command prompt by going to Begin –> Accesories –> Command Prompt, or search for “cmd”. After getting the command immediate open, sort in ipconfig /all. After getting typed the ipconfig /all command simply look although the list for Domain name system servers. When you nonetheless don’t know what the hell I am talking about you can too use the handle of your default gateway or the dns addresses provided by OpenDNS.com. 208.67.222.222 and 208.67.220.220.
Now it is time to edit the /etc/resolv.conf file.
vi /etc/resolv.conf
Make sure you add 127.0.0.1 to the file, since it will tell the resolv.conf file to take a look at you local host first for the dns translation. As you’ll be able to see from my resolv.conf file that I’ve added 127.0.0.1, 10.0.0.1 and 192.168.1.254. Since I am operating a local dns server on my entire community, I have additionally added the handle of my dns server. In all actuality 127.0.0.1 and 10.0.0.1 addresses are referring to the same computer.
domain gateway.2wire.net
search gateway.2wire.net
nameserver 127.0.0.1