A resolução do Linux Linux não está funcionando na rede IPv6 Mac OS NAT64

0

Eu quero que minha caixa do Linux funcione na rede de compartilhamento de Internet Wi-Fi do Mac OS X. A caixa do Linux está conectada a uma rede IPv6 (o compartilhamento de internet Wi-Fi do Mac OS X NAT64).

Configuração de rede do PS:

# ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr FE:FD:FC:A7:E4:3A  
          inet6 addr: 2001:2:0:aab1:fcfd:fcff:fea7:e43a/64 Scope:Global
          inet6 addr: fe80::fcfd:fcff:fea7:e43a/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:858 errors:0 dropped:379 overruns:0 frame:0
          TX packets:488 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:284244 (277.5 KiB)  TX bytes:148208 (144.7 KiB)

# ip -6 route show
2001:2:0:aab1::/64 dev wlan0  metric 256  expires 2591997sec
fe80::/64 dev wlan0  metric 256 
default via fe80::10dd:b1ff:feec:a64 dev wlan0  metric 1024  expires 1797sec
unreachable default dev lo  metric -1  error -101
ff00::/8 dev wlan0  metric 256 
unreachable default dev lo  metric -1  error -101

/ # cat /etc/resolv.conf 
# Generated by Connection Manager
nameserver 2001:2:0:aab1::1

Quando tento executar uma solicitação HTTP, obtenho o problema de resolução de DNS. Eu acho, é por causa de pedidos são enviados para um endereço (> 2001: 2: 0: aab1 :: 1.53) mas as respostas são recebidas de outro endereço (2001: 2: 0: aab1: 6ddd: 7a1: 877f: 116f.53 >).

Você pode ver o tcpdump de solicitação de teste abaixo.

/ # tcpdump -vvv -nn -i wlan0 "( (udp port 53) or icmp6 )" &
/ # wget -O- google.com
13:34:35.818992 IP6 (hlim 64, next-header UDP (17) payload length: 36) 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641 > 2001:2:0:aab1::1.53: [udp sum ok] 10393+ A? google.com. (28)
13:34:35.820134 IP6 (hlim 64, next-header UDP (17) payload length: 36) 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641 > 2001:2:0:aab1::1.53: [udp sum ok] 53039+ AAAA? google.com. (28)
13:34:35.831840 IP6 (flowlabel 0x5a5eb, hlim 64, next-header UDP (17) payload length: 52) 2001:2:0:aab1:6ddd:7a1:877f:116f.53 > 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641: [udp sum ok] 10393 q: A? google.com. 1/0/0 google.com. [2m13s] A 172.217.16.14 (44)

13:34:35.832032 IP6 (hlim 64, next-header ICMPv6 (58) payload length: 100) 2001:2:0:aab1:fcfd:fcff:fea7:e43a > 2001:2:0:aab1:6ddd:7a1:877f:116f: [icmp6 sum ok] ICMP6, destination unreachable, unreachable port, 2001:2:0:aab1:fcfd:fcff:fea7:e43a udp port 33641

13:34:35.832331 IP6 (flowlabel 0x5a5eb, hlim 64, next-header UDP (17) payload length: 64) 2001:2:0:aab1:6ddd:7a1:877f:116f.53 > 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641: [udp sum ok] 53039 q: AAAA? google.com. 1/0/0 google.com. [2m13s] AAAA 2001:2:0:1baa::acd9:100e (56)

13:34:35.832412 IP6 (hlim 64, next-header ICMPv6 (58) payload length: 112) 2001:2:0:aab1:fcfd:fcff:fea7:e43a > 2001:2:0:aab1:6ddd:7a1:877f:116f: [icmp6 sum ok] ICMP6, destination unreachable, unreachable port, 2001:2:0:aab1:fcfd:fcff:fea7:e43a udp port 33641

13:34:40.824199 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::fcfd:fcff:fea7:e43a > 2001:2:0:aab1::1: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:2:0:aab1::1
          source link-address option (1), length 8 (1): fe:fd:fc:a7:e4:3a
            0x0000:  fefd fca7 e43a


13:34:40.824574 IP6 (hlim 64, next-header UDP (17) payload length: 36) 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641 > 2001:2:0:aab1::1.53: [udp sum ok] 22932+ A? google.com. (28)
13:34:40.824684 IP6 (hlim 64, next-header UDP (17) payload length: 36) 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641 > 2001:2:0:aab1::1.53: [udp sum ok] 60408+ AAAA? google.com. (28)
13:34:40.834162 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 32) fe80::fcfd:fcff:fea7:e43a > 2001:2:0:aab1:6ddd:7a1:877f:116f: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has 2001:2:0:aab1:6ddd:7a1:877f:116f
          source link-address option (1), length 8 (1): fe:fd:fc:a7:e4:3a
            0x0000:  fefd fca7 e43a
13:34:40.848917 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::10dd:b1ff:feec:a64 > fe80::fcfd:fcff:fea7:e43a: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is 2001:2:0:aab1::1, Flags [router, solicited]
13:34:40.849677 IP6 (hlim 255, next-header ICMPv6 (58) payload length: 24) fe80::10dd:b1ff:feec:a64 > fe80::fcfd:fcff:fea7:e43a: [icmp6 sum ok] ICMP6, neighbor advertisement, length 24, tgt is 2001:2:0:aab1:6ddd:7a1:877f:116f, Flags [router, solicited]
13:34:40.852150 IP6 (flowlabel 0x5a5eb, hlim 64, next-header UDP (17) payload length: 52) 2001:2:0:aab1:6ddd:7a1:877f:116f.53 > 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641: [udp sum ok] 22932 q: A? google.com. 1/0/0 google.com. [2m8s] A 172.217.16.14 (44)
13:34:40.852261 IP6 (hlim 64, next-header ICMPv6 (58) payload length: 100) 2001:2:0:aab1:fcfd:fcff:fea7:e43a > 2001:2:0:aab1:6ddd:7a1:877f:116f: [icmp6 sum ok] ICMP6, destination unreachable, unreachable port, 2001:2:0:aab1:fcfd:fcff:fea7:e43a udp port 33641
13:34:40.852314 IP6 (flowlabel 0x5a5eb, hlim 64, next-header UDP (17) payload length: 64) 2001:2:0:aab1:6ddd:7a1:877f:116f.53 > 2001:2:0:aab1:fcfd:fcff:fea7:e43a.33641: [udp sum ok] 60408 q: AAAA? google.com. 1/0/0 google.com. [2m8s] AAAA 2001:2:0:1baa::acd9:100e (56)
13:34:40.852387 IP6 (hlim 64, next-header ICMPv6 (58) payload length: 112) 2001:2:0:aab1:fcfd:fcff:fea7:e43a > 2001:2:0:aab1:6ddd:7a1:877f:116f: [icmp6 sum ok] ICMP6, destination unreachable, unreachable port, 2001:2:0:aab1:fcfd:fcff:fea7:e43a udp port 33641
...
wget: bad address 'google.com'

Pergunta: como corrigir a resolução de DNS? Eu prefiro o ajuste da configuração da caixa do Linux.

    
por sergvpurik 13.02.2018 / 08:23

0 respostas

Tags