web-dev-qa-db-ja.com

Bonjour for WindowsでIPv6のみのLinuxホストが表示されないのはなぜですか?

私のLANには、Avahiを実行している3つの本質的に同一のDebianLinuxボックスがあります。それらの1つはIPv4アドレスとIPv6アドレスの両方を持ち、他の2つはIPv6アドレスのみを持ちます。これらはすべて、次のようにMacのBonjourブラウザに表示されます。

Workgroup Manager (_workstation._tcp.) - 4
  box-1 [00:60:2b:02:45:f8]
    [fe80::260:2bff:fe02:45f8]:9
    192.168.1.78:9
  box-2 [00:60:2b:02:46:1b]
    [fe80::260:2bff:fe02:461b]:9
  box-3 [00:60:2b:02:42:e2]
    [fe80::260:sbff:fe02:42e2]:9

私のMacからは、すべてが順調です... box-1.local。、box-2.local。、box-3.local。、ping6をそれらのいずれかに、sshをそれらのいずれかに解決できます。 。

ただし、私のWindows 7マシンでは、ボックス1しか表示されません。たとえば、コマンドプロンプトウィンドウでdns-sdを実行すると、次のようになります。

C:\>dns-sd -B _ssh._tcp
Browsing for _ssh._tcp
Timestamp     A/R Flags if Domain                    Service Type              Instance Name
12:41:14.492  Add     2 17 local.                    _ssh._tcp.                box-1 SSH

Bonjour名を介してそのボックスにpingを実行すると、IPv6が機能します。

C:\>ping -6 msli-dcm-2-10330688.local.

Pinging msli-dcm-2-10330688.local. [fe80::260:2bff:fe02:45f8%17] with 32 bytes of data:
Reply from fe80::260:2bff:fe02:45f8%17: time=1ms
Reply from fe80::260:2bff:fe02:45f8%17: time<1ms
Reply from fe80::260:2bff:fe02:45f8%17: time<1ms

... IPv6アドレスを介して他のボックスにpingを実行する場合と同様に:

C:\>ping -6 fe80::260:2bff:fe02:461b

Pinging fe80::260:2bff:fe02:461b with 32 bytes of data:
Reply from fe80::260:2bff:fe02:461b: time=4ms
Reply from fe80::260:2bff:fe02:461b: time<1ms
Reply from fe80::260:2bff:fe02:461b: time<1ms
Reply from fe80::260:2bff:fe02:461b: time<1ms

Ping statistics for fe80::260:2bff:fe02:461b:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 4ms, Average = 1ms

C:\>ping -6 fe80::260:2bff:fe02:42e2

Pinging fe80::260:2bff:fe02:42e2 with 32 bytes of data:
Reply from fe80::260:2bff:fe02:42e2: time<1ms
Reply from fe80::260:2bff:fe02:42e2: time<1ms
Reply from fe80::260:2bff:fe02:42e2: time<1ms
Reply from fe80::260:2bff:fe02:42e2: time<1ms

Ping statistics for fe80::260:2bff:fe02:42e2:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms

.... Bonjour for Windowsは、IPv4アドレスがない限り、公開されたホストを認識しないようです。これはBonjourfor Windowsのバグですか、それとも何か問題がありますか? FWIW、私のWindows7マシンはBonjour2.0.2.0を実行しています

5
Jeremy Friesner

Dig @224.0.0.251 -p 5353 ptr _ssh._tcp.localどちらのマシンからクエリを実行しても、両方のアドレスを報告しますか?

Windows用のDigを取得できない場合は、試してください

nslookup -q=ptr -port=5353 _ssh._tcp.local 224.0.0.251

nslookup -q=any -port=5353 box-2.local 224.0.0.251

nslookup -q=aaaa -port=5353 box-2.local 224.0.0.251

1
James