Archive

Posts Tagged ‘Proxy DNS’

Proxy DNS with dnsmasq on Ubuntu 9.10 Karmic Koala

February 22nd, 2010 No comments

In this article I explain how to install and use dnsmasq on Ubuntu 9.10 Server.
First of all install the package

[cce_bash]sudo apt-get install dnsmasq[/cce]

then edit the configuration file

[cce_bash]sudo nano /etc/dnsmasq.conf[/cce]

and at the end of the file add

[cce_bash]# 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[/cce]

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

[cce_bash]sudo nano /etc/resolv.conf[/cce]

and write

[cce_bash]nameserver 127.0.0.1
nameserver 83.149.xxx.xxx
nameserver 83.149.xxx.xxx[/cce]

at first line always set your loopback IP.

Categories: Linux, Ubuntu Tags: ,