bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9586: Fwd: bug#9586: The Windows port does not support datagram sock


From: Robert Pluim
Subject: bug#9586: Fwd: bug#9586: The Windows port does not support datagram sockets
Date: Wed, 02 Oct 2019 16:19:13 +0200

>>>>> On Wed, 2 Oct 2019 00:52:26 +0200, Juanma Barranquero <lekktu@gmail.com> 
>>>>> said:

    Juanma> (Resending, there was a typo in the debbugs address)
    >>> dns.el uses datagram sockets.

    >> I suppose it was added after Stefan's comment (in 2006).

    Juanma> Well, in fact dns-query does not work on Windows because datagram
    Juanma> sockets are still unsupported.

    Juanma> M-x load-library dns <RET>

    Juanma> M-: (dns-make-network-process "8.8.8.8")

    Juanma> => Unsupported connection type

We now have the following, which will do DNS lookups, although it
doesnʼt let you specify the server.

    network-lookup-address-info is a built-in function in `C source code'.

    (network-lookup-address-info NAME &optional FAMILY)

    Look up ip address info of NAME.
    Optional parameter FAMILY controls whether to look up IPv4 or IPv6
    addresses.  The default of nil means both, symbol `ipv4' means IPv4
    only, symbol `ipv6' means IPv6 only.  Returns a list of addresses, or
    nil if none were found.  Each address is a vector of integers.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]