Setting up Local DNS Server using Webmin

The Domain Name System (DNS) is a hierarchical distributed naming system for computers, services, or any resource connected to the Internet or a private network. It associates various information with domain names assigned to each of the participating entities. A Domain Name Service resolves queries for these names into IP addresses for the purpose of locating computer services and devices worldwide.

BIND is the most widely used DNS software on the Internet. On Unix-like operating systems it is the de facto standard.

Prerequisite: First you need to install Webmin
on Centos 5.8 look at this post -> Webmin on Centos 5.8
if you prefer ubuntu 10.04 -> Webmin on Ubuntu 10.04

1. – Install DNS server

Option A): Centos 5.8

# yum install bind bind-utils bind-libs bind-chroot caching-nameserver

Set the DNS service to start on boot

# chkconfig named on

Start DNS service

# service named start

Option B): Ubuntu 10.04

# apt-get install bind9 dnsutils

 

2.- Setting up

Network Data:

IP Local DNS server: 192.168.0.21
DNS Server name: dns1
Domain: mydomain.intranet
DNS servers (ISP): 80.58.61.250 80.58.61.254
IP Backup server: 192.168.0.22

Set up “/etc/resolv.conf” both Centos and Ubuntu

# nano /etc/resolv.conf

This file should look like

domain mydomain.intranet
search mydomain.intranet
nameserver 192.168.0.21

Access webmin from any browser (use your own IP number):     https://your_IP:10000
First refresh modules:   Webmin -> Webmin Configuration -> Refresh Modules

Servers -> BIND DNS Server → Create master zone

Fill boxes and click create

Again to create the reverse zone
Servers -> BIND DNS Server → Create master zone

Servers -> BIND DNS Server → Forwarding and Transfers

Now we can add Servers records
Servers ->BIND DNS Server → mydomain.intranet

Now click in Address

Fill boxes and click create