Подземный стук в ресолвере

View: New views
7 Messages — Rating Filter:   Alert me  

Подземный стук в ресолвере

by Игорь Чумак :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Доброго дня!

Обнаружил только что престранную вещь.
debian Lenny, 2.6.18

bind, форвардящий запросы на ms dns :
=== /etc/bind/named.conf.local ===
zone "garant.local"  {
  type forward;
  forward only;
  forwarders {192.168.100.2; 192.168.100.4; };
};
=======================
cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by
resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search garant.local

Имена из зоны garant.local распознаются как в длинном написании, так и в
коротком:
# host dc1.garant.local
dc1.garant.local        A       192.168.104.6
dc1.garant.local        A       192.168.100.2
# host dc1
dc1.garant.local        A       192.168.104.6
dc1.garant.local        A       192.168.100.2

Пока всё правильно.

А вот почему тот же ping не может отресолвить имя dc1.garant.local - не
понимаю :(

# ping dc1
PING dc1.garant.local (192.168.104.6) 56(84) bytes of data.
64 bytes from 192.168.104.6: icmp_seq=1 ttl=128 time=0.257 ms
64 bytes from 192.168.104.6: icmp_seq=2 ttl=128 time=0.132 ms

--- dc1.garant.local ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 5004ms
rtt min/avg/max/mdev = 0.132/0.194/0.257/0.064 ms
# ping dc1.garant.local
ping: unknown host dc1.garant.local

Есть идеи?


--
To UNSUBSCRIBE, email to debian-russian-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Подземный стук в ресолвере

by Олег Ключкин :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

первая прешедшая мысль - опечатка. возможно русская "а" o_O
Попробуйте скописастить из комманды выше...

2009/11/9, Игорь Чумак <i.chumak@...>:

> Доброго дня!
>
> Обнаружил только что престранную вещь.
> debian Lenny, 2.6.18
>
> bind, форвардящий запросы на ms dns :
> === /etc/bind/named.conf.local ===
> zone "garant.local"  {
>   type forward;
>   forward only;
>   forwarders {192.168.100.2; 192.168.100.4; };
> };
> =======================
> cat /etc/resolv.conf
> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
> resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver 127.0.0.1
> search garant.local
>
> Имена из зоны garant.local распознаются как в длинном написании, так и в
> коротком:
> # host dc1.garant.local
> dc1.garant.local        A       192.168.104.6
> dc1.garant.local        A       192.168.100.2
> # host dc1
> dc1.garant.local        A       192.168.104.6
> dc1.garant.local        A       192.168.100.2
>
> Пока всё правильно.
>
> А вот почему тот же ping не может отресолвить имя dc1.garant.local - не
> понимаю :(
>
> # ping dc1
> PING dc1.garant.local (192.168.104.6) 56(84) bytes of data.
> 64 bytes from 192.168.104.6: icmp_seq=1 ttl=128 time=0.257 ms
> 64 bytes from 192.168.104.6: icmp_seq=2 ttl=128 time=0.132 ms
>
> --- dc1.garant.local ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 5004ms
> rtt min/avg/max/mdev = 0.132/0.194/0.257/0.064 ms
> # ping dc1.garant.local
> ping: unknown host dc1.garant.local
>
> Есть идеи?
>
>
> --
> To UNSUBSCRIBE, email to debian-russian-REQUEST@...
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@...
>
>

Re: Подземный стук в ресолвере

by Игорь Чумак :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Олег Ключкин пишет:
> первая прешедшая мысль - опечатка. возможно русская "а" o_O
> Попробуйте скописастить из комманды выше...
>
>  
:)
Не опечатка, всё значительно проще..
Openfire притащил зависимость от avahi-daemon (Multicast DNS Service
Discovery - ХЕЗ что это такое, пока не вникал ;) ). В /etc/nsswitch.conf
поменялось:
-hosts:          files dns
+hosts:          files mdns4_minimal [NOTFOUND=return] dns mdns4
(что - то мне подсказывает, что если mdns4_minimal не отрабатывает
запрос - распознавание заканчивается. Если действительно так - не
понимаю логику разработчиков. [NOTFOUND=return] убрал - всё заработало.).

Копаем дальше.
В /etc/default/avahi-daemon такие строчки:
# 1 = Try to detect unicast dns servers that serve .local and disable
avahi in
# that case, 0 = Don't try to detect .local unicast dns servers, can cause
# troubles on misconfigured networks
AVAHI_DAEMON_DETECT_LOCAL=1

- то есть приналичии DNS серверов в зоне local avahi-daemon не запускается.

Похоже, что зона .local таки особенная ;)



> 2009/11/9, Игорь Чумак <i.chumak@...>:
>  
>> Доброго дня!
>>
>> Обнаружил только что престранную вещь.
>> debian Lenny, 2.6.18
>>
>> bind, форвардящий запросы на ms dns :
>> === /etc/bind/named.conf.local ===
>> zone "garant.local"  {
>>   type forward;
>>   forward only;
>>   forwarders {192.168.100.2; 192.168.100.4; };
>> };
>> =======================
>> cat /etc/resolv.conf
>> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by
>> resolvconf(8)
>> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
>> nameserver 127.0.0.1
>> search garant.local
>>
>> Имена из зоны garant.local распознаются как в длинном написании, так и в
>> коротком:
>> # host dc1.garant.local
>> dc1.garant.local        A       192.168.104.6
>> dc1.garant.local        A       192.168.100.2
>> # host dc1
>> dc1.garant.local        A       192.168.104.6
>> dc1.garant.local        A       192.168.100.2
>>
>> Пока всё правильно.
>>
>> А вот почему тот же ping не может отресолвить имя dc1.garant.local - не
>> понимаю :(
>>
>> # ping dc1
>> PING dc1.garant.local (192.168.104.6) 56(84) bytes of data.
>> 64 bytes from 192.168.104.6: icmp_seq=1 ttl=128 time=0.257 ms
>> 64 bytes from 192.168.104.6: icmp_seq=2 ttl=128 time=0.132 ms
>>
>> --- dc1.garant.local ping statistics ---
>> 2 packets transmitted, 2 received, 0% packet loss, time 5004ms
>> rtt min/avg/max/mdev = 0.132/0.194/0.257/0.064 ms
>> # ping dc1.garant.local
>> ping: unknown host dc1.garant.local
>>
>> Есть идеи?
>>
>>
>> --
>> To UNSUBSCRIBE, email to debian-russian-REQUEST@...
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@...
>>
>>
>>    

--
Head office
 
Igor Chumak
System Administrator
 
OJSC “UIC "Generali Garant”
15/2 Chervonoarmiyska str.,
01004, Kyiv, Ukraine
Phone: +38(044)206 8820
E-Mail: i.chumak@...
www.generali.garant.ua


--
To UNSUBSCRIBE, email to debian-russian-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Подземный стук в ресолвере

by Denis Feklushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 09 Nov 2009 09:31:23 +0200
Игорь Чумак <i.chumak@...> wrote:

>
> Пока всё правильно.
>
> А вот почему тот же ping не может отресолвить имя dc1.garant.local -
> не понимаю :(
>
> # ping dc1
> PING dc1.garant.local (192.168.104.6) 56(84) bytes of data.
> 64 bytes from 192.168.104.6: icmp_seq=1 ttl=128 time=0.257 ms
> 64 bytes from 192.168.104.6: icmp_seq=2 ttl=128 time=0.132 ms
>
> --- dc1.garant.local ping statistics ---
> 2 packets transmitted, 2 received, 0% packet loss, time 5004ms
> rtt min/avg/max/mdev = 0.132/0.194/0.257/0.064 ms
> # ping dc1.garant.local
> ping: unknown host dc1.garant.local
>
> Есть идеи?
Прописать обратную зону?


signature.asc (204 bytes) Download Attachment

Re: Подземный стук в ресолвере

by Denis Feklushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 9 Nov 2009 15:38:44 +0700
Denis Feklushkin <feklushkin.denis@...> wrote:

> > ping: unknown host dc1.garant.local
> >
> > Есть идеи?
>
> Прописать обратную зону?

Прошу пардону, думал пинг в обратную сторону не резолвит

Попробуйте:

$ ping dc1.garant.local.

?


signature.asc (204 bytes) Download Attachment

Re: Подземный стук в ресолвере

by Vasily Ivanov-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 09.11.09 1011 (+0200), Игорь Чумак wrote:
>
> Похоже, что зона .local таки особенная ;)
>

http://en.wikipedia.org/wiki/.local

local is a pseudo-top-level domain used in multicast domain name service
(mDNS) of zero configuration networking discovery protocols.

[...]

Name resolution issues may arise if Bonjour, Avahi, or other Multicast
DNS software is used in conjunction with a network that implements the
local toplevel DNS domain.

--
Best regards,
Vasily Ivanov                                  mailto:<caesar@...>


--
To UNSUBSCRIBE, email to debian-russian-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Подземный стук в ресолвере

by Alexander GQ Gerasiov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Mon, 09 Nov 2009 09:31:23 +0200
Игорь Чумак <i.chumak@...> wrote:

> А вот почему тот же ping не может отресолвить имя dc1.garant.local -
> не понимаю :(

.local - это специальная зона, которая резолвится подсистемой mdns (в
линукс реализуется avahi).
Гуглить в сторону mdns, zeroconf, bonjour, avahi.
Лечение - либо отключением mdns, либо, что правильнее, использованием
другого домена.

--
Best regards,
 Alexander GQ Gerasiov

 Contacts:
 e-mail:    gq@...             Jabber:  gq@...
 Homepage:  http://gq.net.ru         ICQ:     7272757
 PGP fingerprint: 04B5 9D90 DF7C C2AB CD49  BAEA CA87 E9E8 2AAC 33F1


--
To UNSUBSCRIBE, email to debian-russian-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...