Hang on startup
Ben Boeckel
mathstuf at gmail.com
Mon Oct 15 20:17:46 UTC 2018
On Mon, Oct 15, 2018 at 12:42:27 -0700, Kevin J. McCarthy wrote:
> Mutt performs a DNS lookup using gethostname() and getaddrinfo() to try
> to find out the host's FQDN. If you are hanging, it could be this is
> not configured correctly.
>
> Adding a line to /etc/hosts with a FQDN may help:
> 127.0.1.1 rotor.yourdomain rotor
>
> See also https://muttmua.gitlab.io/mutt/manual-dev.html#hostname
> although setting that does not change the startup behavior because the
> muttrc is processed afterwards.
Indeed, watching strace for longer shows that (I was always impatient
before):
recvfrom(5, "\366\310\201\202\0\1\0\0\0\0\0\0\5rotor\0\0\1\0\1", 2048, 0, {sa_family=AF_INET, sin_port=htons(53), sin_addr=inet_addr("192.168.1.96")}, [28->16]) = 23
poll([{fd=5, events=POLLIN}], 1, 4996) = 0 (Timeout)
I remember now that we have been having DNS hiccups here and that would
seem to be another symptom of that problem. Thanks for the workaround.
I'll ping our sysadmins again :) .
--Ben
More information about the Mutt-users
mailing list