[Top][All Lists]

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

Re: [RFC] automatically retrying network connections

From: Andreas Schwab
Subject: Re: [RFC] automatically retrying network connections
Date: Mon, 23 Jul 2018 09:41:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

On Jul 23 2018, Jimmy Yuen Ho Wong <address@hidden> wrote:

> On Sun, Jul 22, 2018 at 12:43 PM, Lars Ingebrigtsen <address@hidden> wrote:
>> Robert Pluim <address@hidden> writes:
>>>     (dns-query NAME &optional TYPE FULLP REVERSEP)
>>>     Query a DNS server for NAME of TYPE.
>>>     If FULLP, return the entire record returned.
>>>     If REVERSEP, look up an IP address.
>>> which you could use instead of 'nslookup' or 'getaddrinfo' (although
>>> 'dns-query' can also punt to 'nslookup', so maybe getaddrinfo is
>>> better).
>> getaddrinfo is probably a lot better.  `dns-query' isn't that good at
>> retries and the like, if I remember correctly.

dns-query can only do a single DNS query, which is unusable for proper
address resolution.

> He's just pointing out one of the MANY functions in emacs that allows
> you to look up an IP address. I've found at least 4, and we now
> introducing the 5th and 6th...

Address resolution isn't trivial, that's why getaddrinfo exists.


Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

reply via email to

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