Proxy DNS with dnsmasq on Ubuntu 9.10 Karmic Koala
22 febbraio 2010
Nessun commento
In this article I explain how to install and use dnsmasq on Ubuntu 9.10 Server.
First of all install the package
1 sudo apt-get install dnsmasq
then edit the configuration file
1 sudo nano /etc/dnsmasq.conf
and at the end of the file add
1
2
3
4
5
6
7
8 # Exclude WAN interface
except-interface=eth1
# Include LAN interface
interface=eth0
# Set DHCP range
dhcp-range=192.168.111.150,192.168.111.180,255.255.255.0
Comment the except-interface command if you have only 1 network card.
This way you will also have a DHCP server using the IP range from 192.168.111.150 to 192.168.111.180.
To set you list of DNS server edit
1 sudo nano /etc/resolv.conf
and write
1
2
3 nameserver 127.0.0.1
nameserver 83.149.xxx.xxx
nameserver 83.149.xxx.xxx
at first line always set your loopback IP.
