>[оверквотинг удален]
>dnsmasq читает из файла /etc/hosts запись о соответствие 127.0.0.1 с именем шлюза
>и если ввести на другой Debian машине имя шлюза http://шлюз, то
>в ответ откроется localhost клиентского компьютера :). Хотя это понятно -
>ведь от DNS пришел ответ о том, что это 127.0.0.1 ...
>
>Но почему все компы с Windows ничего не видят кроме внешнего мира?
>
>
>Плз натолкните хотябы на какую-нибудь идею - у меня уже мозги плавятся
>после нескольких дней и ночей ковыряния в этой проблеме. У dnsmasq ну очень короткий FAQ, и в нем есть ответ на вопрос:
====================================================================================
Q: Names on the internet are working fine, but looking up local names
from /etc/hosts or DHCP doesn't seem to work.
A: Resolver code sometime does strange things when given names without
any dots in. Win2k and WinXP may not use the DNS at all and just
try and look up the name using WINS. On unix look at "options ndots:"
in "man resolv.conf" for details on this topic. Testing lookups
using "nslookup" or "dig" will work, but then attempting to run
"ping" will get a lookup failure, appending a dot to the end of the
hostname will fix things. (ie "ping myhost" fails, but "ping
myhost." works. The solution is to make sure that all your hosts
have a domain set ("domain" in resolv.conf, or set a domain in
your DHCP server, see below fr Windows XP and Mac OS X).
Any domain will do, but "localnet" is traditional. Now when you
resolve "myhost" the resolver will attempt to look up
"myhost.localnet" so you need to have dnsmasq reply to that name.
The way to do that is to include the domain in each name on
/etc/hosts and/or to use the --expand-hosts and --domain options.
Q: How do I set the DNS domain in Windows XP or MacOS X (ref: previous
question)?
A: for XP, Control Panel > Network Connections > { Connection to gateway /
DNS } > Properties > { Highlight TCP/IP } > Properties > Advanced >
DNS Tab > DNS suffix for this connection:
========================================================================================