--- Begin Message ---
Subject: |
28.0.50; dns-set-servers fails on IPv6 available Windows |
Date: |
Tue, 31 Mar 2020 17:46:47 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/28.0 (x86_64-w64-mingw32) MULE/6.0 (HANACHIRUSATO) |
dns-set-servers function fails to set dns-servers on Windows with IPv6
available network.
(progn
(require 'dns)
(dns-set-servers)
dns-servers)
-> (nil)
The reason is that Windows's nslookup program returns server's IPv6
address if availeble but dns-set-servers function assumes that
server's address is always IPv4.
> C:\>nslookup localhost
> サーバー: server.lan
> Address: xxxx:xxxx:xxxx::1
>
> 名前: localhost.lan
> Addresses: ::1
> 127.0.0.1
# "サーバー" and "名前" are Japanese translations for "Server" and
# "Name", respectively.
From dns-set-servers definition in lisp/net/dns.el
> (re-search-forward
> "^Address:[ \t]*\\([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+\\)" nil t)
--
Kazuhiro Ito
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#40343: 28.0.50; dns-set-servers fails on IPv6 available Windows |
Date: |
Fri, 03 Apr 2020 17:19:25 +0200 |
>>>>> On Fri, 03 Apr 2020 23:08:10 +0900, Kazuhiro Ito <address@hidden> said:
>> Thanks for that. This should fix all those cases:
Kazuhiro> Thank you for the patch. It works well on Cygwin environment.
But I
Kazuhiro> noticed different problems in dns-query when TCP is used.
Thanks for checking, pushed to master as 00f7744c1b
Closing the bug.
Kazuhiro> 1. dns-write function needs to be called with TCP-P option.
Kazuhiro> 2. First 2 bytes of received data (length field) should be
truncated
Kazuhiro> for dns-read function. Or dns-read function should accept TCP-P
Kazuhiro> option like dns-wrote function.
Indeed, looks like thatʼs never worked. Iʼll fix those separately.
Robert
--- End Message ---