Your configuration is correct. However, Im unable to understand what you exactly need.
Remove 127.0.0.1 in /etc/resolv.conf from the server which has dnsmasq installed. ( i presume, it is 192.168.1.2 ). Add other dns like 8.8.8.8 to query other servers from internet. In all the other nodes ( the vm's ) - add 192.168.1.2 in the /etc/resolv.conf in the first line. Im not sure if this solved your problem. If not, please elaborate on what you exactly want on this configuration. Regards CS Shyam Sundar <http://about.me/cs3> 2011/2/11 Tapas Mishra <[email protected]> > > > > > > 2011/2/11 Tapas Mishra <[email protected]> > >> > >> 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 192.168.1.2#53 > >> > >> 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 > >> nameserver 127.0.0.1 > >> search somedomain.corporate.org > >> > >> where as I want in /etc/resolv.conf > >> > >> nameserver 127.0.0.1 > >> nameserver 192.168.1.2 > >> 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 > >> > >> 127.0.0.1 localhost > >> 192.168.100.14 someserver > >> 192.168.1.13 domu1.tapas.domain > >> 192.168.1.14 domu2.tapas.domain > >> 192.168.1.15 domu3.tapas.domain > >> 192.168.1.16 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 192.168.100.14 is the machine on which all this has to be done. > >> So what more should I be doing? > >> -- > > > On Fri, Feb 11, 2011 at 1:49 PM, CS Shyam Sundar > <[email protected]> wrote: > > Tapas, by default, DNSmasq responds to the entries in /etc/hosts file and > > then queries nameservers. > > Can you upload the contents of /etc/dnsmasq.conf to pastebin and share > it. > > Regards > > CS Shyam Sundar > Here it is I had uncommented a line > http://pastebin.com/ESuky7dh > the pastebin file which you see is currently in use > I had uncommened following > listen-address=127.0.0.1 > and used but it had not effect. > So right now my dnsmasq.conf looks like what you see on pastebin. > > > -- > http://mightydreams.blogspot.com >
-- ubuntu-server mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam
