==============================
Server side
~~~~~~~~
1, Download the dnsmasq software package from site http://www.thekelleys.org.uk/
Untar it and compile it
# tar -zxvf
# cd
# make
Or you can simply do
# yum install dnsmasq
2, Start service
# /etc/init.d/dnsmasq start
3, Append domain name and dhcp range information in /etc/dnsmasq.conf file
For example:
expand-hosts
domain=
dhcp-range=192.169.1.1,192.
4, Append the dns entries in /etc/hosts file
For example
192.169.1.1 testhost1
192.169.1.2 testhost2
5, Stop the iptables
#service iptables stop
6, Restart the dnsmasq service
# /etc/init.d/dnsmasq restart
Client side
~~~~~~~~
1, Change nameserver IP address in /etc/resolv.conf file, Remove existing nameserver IP addresses and give the IP address of machine which is running dnsmasq
2, Send dns request
# host testhost1
It will give you the corresponding IP address you have configured in /etc/hosts file in dnsmasq server configuration.
For further clarifications you can visit http://www.
No comments:
Post a Comment