I had problems setting up a DNS local server for my company. All the articles I read was suuuper complicated, but then I found a easy tool called: dnsmasq
DNSMASQ the light at the end of the tunnel!
What dnsmasq does is resolves your DNS entry based on your hosts file. As simple as THAT! So all you need to do is:
Just remove bind9 and named if you have it
apt-get remove bind9 named
This kills the current named server if your apt-get remove failed
pkill -9 named
Then install dnsmasq
apt-get install dnsmasq
It's that EASY!
Now to add a dns entry just add it to your /etc/hosts file like this
sudo vim /etc/hosts
192.168.0.5 my.local.site
Now either on your router(if DHCP is in use) or on the PC you want to use the local DNS on change the DNS Server to your server that contains newly installed dnsmasq.
Now you can do a ping from your PC to check if it works
ping my.local.site
Easier than that you won't find a local DNS server installation.
Let me know your comments as it worked for me!
By Admin @ 2010-08-25 18:37:42
|