all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#40343: 28.0.50; dns-set-servers fails on IPv6 available Windows
@ 2020-03-31  8:46 Kazuhiro Ito
  2020-03-31  9:50 ` Robert Pluim
  0 siblings, 1 reply; 12+ messages in thread
From: Kazuhiro Ito @ 2020-03-31  8:46 UTC (permalink / raw)
  To: 40343

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





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-04-03 15:19 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-31  8:46 bug#40343: 28.0.50; dns-set-servers fails on IPv6 available Windows Kazuhiro Ito
2020-03-31  9:50 ` Robert Pluim
2020-03-31 11:06   ` Kazuhiro Ito
2020-03-31 13:01     ` Robert Pluim
2020-03-31 14:22       ` Kazuhiro Ito
2020-03-31 14:28         ` Robert Pluim
2020-04-01 13:43           ` Kazuhiro Ito
2020-04-01 13:57             ` Robert Pluim
2020-04-01 14:55               ` Kazuhiro Ito
2020-04-03  8:42                 ` Robert Pluim
2020-04-03 14:08                   ` Kazuhiro Ito
2020-04-03 15:19                     ` Robert Pluim

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.