<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I think you want to look at the tcp/ip properties for the adapter you
are using on your Windows box.<br>
Specifically the Advanced TCP/IP settings and the DNS tab. You may add
DNS suffixes to try and<br>
resolve.<br>
<br>
At home I use a Buffalo wireless router with OpenWRT and dnsmasq.&nbsp; My
config file<br>
looks like ...<br>
<br>
&nbsp;&nbsp;&nbsp; domain-needed<br>
&nbsp;&nbsp;&nbsp; bogus-priv<br>
&nbsp;&nbsp;&nbsp; filterwin2k<br>
&nbsp;&nbsp;&nbsp; localise-queries<br>
<br>
&nbsp;&nbsp;&nbsp; # allow /etc/hosts and dhcp lookups via *.home<br>
&nbsp;&nbsp;&nbsp; local=/jb.home/<br>
&nbsp;&nbsp;&nbsp; domain=jb.home<br>
&nbsp;&nbsp;&nbsp; expand-hosts<br>
&nbsp;&nbsp;&nbsp; no-negcache<br>
&nbsp;&nbsp;&nbsp; resolv-file=/tmp/resolv.conf.auto<br>
<br>
&nbsp;&nbsp;&nbsp; dhcp-authoritative<br>
&nbsp;&nbsp;&nbsp; dhcp-leasefile=/tmp/dhcp.leases<br>
<br>
&nbsp;&nbsp;&nbsp; read-ethers<br>
<br>
I tell windows to append the jb.home suffix. Any query of a bare name
returns the fully qualified<br>
name.&nbsp; thus fs1 becomes fs1.jb.home&nbsp;&nbsp; etc.<br>
<br>
john<br>
<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss-request@lists.thekelleys.org.uk">dnsmasq-discuss-request@lists.thekelleys.org.uk</a> wrote:<br>
<br>
<blockquote cite="mid:E1KEj1H-0002B6-02@thekelleys.org.uk" type="cite">
  <pre wrap="">Today's Topics:

   1. RE: dnsmasq not answering other LAN computers (Tyler Dunn)


----------------------------------------------------------------------

Message: 1
Date: Thu, 3 Jul 2008 23:20:01 -0600
From: Tyler Dunn <a class="moz-txt-link-rfc2396E" href="mailto:rtylerdunn@hotmail.com">&lt;rtylerdunn@hotmail.com&gt;</a>
Subject: RE: [Dnsmasq-discuss] dnsmasq not answering other LAN
        computers
To: gypsy <a class="moz-txt-link-rfc2396E" href="mailto:gypsy@iswest.com">&lt;gypsy@iswest.com&gt;</a>, <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss@thekelleys.org.uk">&lt;dnsmasq-discuss@thekelleys.org.uk&gt;</a>,
        <a class="moz-txt-link-rfc2396E" href="mailto:rtylerdunn@hotmail.com">&lt;rtylerdunn@hotmail.com&gt;</a>
Message-ID: <a class="moz-txt-link-rfc2396E" href="mailto:BAY118-W44EB76935014DB64FF0B93DA9B0@phx.gbl">&lt;BAY118-W44EB76935014DB64FF0B93DA9B0@phx.gbl&gt;</a>
Content-Type: text/plain; charset="iso-8859-1"


Thanks for the response.  I still can't get dnsmasq to respond as desired when resolving a local name from a Windows box.  I would like to map my computers' names to their IP addresses in my dnsmasq server's /etc/hosts file and then be able to access them through the web by typing the plain name in to the web browser instead of typing the IP address.  For example, in /etc/hosts I have 

192.168.1.123    gerbil

I would like to type "gerbil" into the address bar of Firefox on my XP machine and access the gerbil web server. The only way that I have been able to work around the current problems is to put the following text in my /etc/hosts file
192.168.1.123 gerbil.com

When I type gerbil.com in my browser address window, the gerbil default web page is accessible.  I would rather not have to always type the .com after each machine name.  Is there a way to configure dnsmasq to work with Windows as described?

Right now I am forcing a ".com" at the end of DNS queries by using the command "search com" in /etc/resolv.conf.  I also have expand-hosts and domain-com in my /etc/dnsmasq.conf file to force a ".com" to the ends of the /etc/hosts entries.

I think this is a Windows XP issue and and not a Firefox issue because I get an error message when trying to ping gerbil from the command line on the XP box.  "Ping request could not find host gerbil.  Please check the name and try again."

Thanks.


  </pre>
  <blockquote type="cite">
    <pre wrap="">Date: Wed, 2 Jul 2008 19:07:18 -0700
From: <a class="moz-txt-link-abbreviated" href="mailto:gypsy@iswest.com">gypsy@iswest.com</a>
To: <a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss@thekelleys.org.uk">dnsmasq-discuss@thekelleys.org.uk</a>
CC: <a class="moz-txt-link-abbreviated" href="mailto:rtylerdunn@hotmail.com">rtylerdunn@hotmail.com</a>
Subject: Re: [Dnsmasq-discuss] dnsmasq not answering other LAN computers

Tyler Dunn wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">I set up dnsmasq on a Ubuntu server and it appears to be working
locally  (will resolve hostnames, using dig I see that the machine is
caching properly).  However, I'm not getting the response that I
expected from other machines on the LAN.  From another Linux box
(Centos), I put the dnsmasq IP address in the /etc/resolv.conf file,
but a ping command returns an error and a host command works
properly.  (gerbil is a local machine listed in the dnsmasq server's
/etc/hosts file.)  The host command didn't work either until I
commented out the listen-address=127.0.0.1 line in /etc/dnsmasq.conf.

root@pbx:~ $ ping gerbil
ping: unknown host gerbil
root@pbx:~ $ host gerbil
gerbil has address 192.168.1.112
root@pbx:~ $

Also, when I set the DNS server on gerbil to the dnsmasq server's IP
address (192.168.1.121), it wouldn't return anything when I pinged
gerbil (or <a class="moz-txt-link-abbreviated" href="http://www.yahoo.com">www.yahoo.com</a> for that matter).  It also wouldn't resolve
the names when I put them into a Firefox browser on gerbil.  gerbil is
a win XP machine and I set the DNS server in the Network control
panel.

My dnsmasq.conf file only has two lines uncommented:
server=/localnet/192.168.0.1
      </pre>
    </blockquote>
    <pre wrap="">Is this a typo?  That is surely NOT your local network.

Why not try this on the DNSMasq machine?:
resolv.conf
search YOURDOMAIN.TLD
nameserver 127.0.0.1

dnsmasq.conf
(remark the two lines above)
domain-needed
log-queries
no-resolv
server=UPSTREAM.DNS.SERVER.IP

Make sure that works on the DNSMasq machine and then ping yahoo from
gerbil.

    </pre>
    <blockquote type="cite">
      <pre wrap="">I would like to get it fixed so that I don't have to type the IP
address when I access local machines on the LAN.  I don't want to update
all the hosts file anytime the network changes.
      </pre>
    </blockquote>
    <pre wrap="">There is no easy way that I know to be able to use DHCP and still
resolve local machines, but I can't use DNSMasq where I need that
(Windows) so I've never dug into that part.  Perhaps a search of this
mailing list will provide you an answer.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
_________________________________________________________________
Don't get caught with egg on your face. Play chicktionary!
<a class="moz-txt-link-freetext" href="http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_feb">http://club.live.com/chicktionary.aspx?icid=chick_wlhmtextlink1_feb</a>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20080703/57300091/attachment.html">http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20080703/57300091/attachment.html</a>

------------------------------

_______________________________________________
Dnsmasq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a>
<a class="moz-txt-link-freetext" href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a>


End of Dnsmasq-discuss Digest, Vol 38, Issue 3
**********************************************

  </pre>
</blockquote>
</body>
</html>