want to use dnsmasq to resolve on localhost

Tapas Mishra mightydreams at gmail.com
Fri Feb 11 07:58:45 UTC 2011

I installed dnsmasq on my server but the query is still not being
answered from localhost.
In /var/log/syslog I see following

dnsmasq[1094]: no servers found in /var/run/dnsmasq/resolv.conf, will retry

Feb 10 16:17:44  dnsmasq[1094]: reading /var/run/dnsmasq/resolv.conf
Feb 10 16:17:44  dnsmasq[1094]: using nameserver

which is querying the DNS on Lan which does not have entries for the
Virtual Machines running on top of my server.

In my /etc/resolv.conf I have following when
search somedomain.corporate.org

where as I want in /etc/resolv.conf

search somedomain.corporate.org

there are some queries which have to be answered only via localhost.It
is a reverse proxy situation.

The /etc/hosts file reads as follows       localhost  someserver  domu1.tapas.domain  domu2.tapas.domain  domu3.tapas.domain  domu4.tapas.domain
# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

Where is the machine on which all this has to be done.
So what more should I be doing?

More information about the ubuntu-server mailing list