On 2021-12-07 at 11:09 +1100, peter (at chubb.wattle.id.au) wrote:
> If I suspend my laptop, and resume it somewhere where /etc/resolv.conf
> is different (home vs work for instance), any attempt to fetch email
> gives:
>   mailserver.name/993 Temporary failure in name resolution
>
> Other emacs functions work properly:  I can do
>    (dns-query "mailserver.name")

Because dns.el directly uses /etc/resolv.conf.

Wanderlust doesn't directly use /etc/resolv.conf.  Wanderlust uses
Emacs' open-network-stream.  It may fail, because Emacs process
caches /etc/resolv.conf by getaddrinfo/gethostbyname.

A workaround is to install a DNS server locally for caching.

Thanks,
--
Tatsuya Kinoshita

Attachment: pgpxZJ2Z8OvCq.pgp
Description: PGP signature

Reply via email to