What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname resolves fine?
What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname resolves fine?
What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname
resolves fine?
It could be your /etc/nsswitch.conf (Linux and a bunch UNIX variants),
check the hosts setting, I think a quite common one is
hosts: files dns
What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname resolves
fine?
Did you do the same lookup types as sendmail does?
(MX, CNAME, TLSA, A, AAAA?)
Maybe you can give a real example?
And if you use some OS with the $#$%^@ that is called systemd:
they screwed up the resolver behaviour if some options are set.
Moreover, DNS lookups can change with each try as different
servers might be involved.
What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname
resolves fine?
It could be your /etc/nsswitch.conf (Linux and a bunch UNIX variants),
check the hosts setting, I think a quite common one is
hosts: files dns
Just to be sure I commented this out, but restarting sendmail after this still gives the lookup failure
#hosts: files dns myhostname
hosts: files dns
Just to be sure I commented this out, but restarting sendmail after
this still gives the lookup failure
#hosts: files dns myhostname
hosts: files dns
I don't know if your mail server is using systemd or not, but if you
are, you could look at this post in stackexchange to see how to get more information out of systemd-resolved:
https://unix.stackexchange.com/questions/328131/how-to-troubleshoot-dns-with-systemd-resolved
Sadly I don't have much of advice what to look for in this case, the
latest issues I have had has been opendkim/mimdefang/spamassassin
related (versions not compatible with the installed sendmail).
Just to be sure I commented this out, but restarting sendmail after
this still gives the lookup failure
#hosts: files dns myhostname
hosts: files dns
I don't know if your mail server is using systemd or not, but if you
are, you could look at this post in stackexchange to see how to get
more information out of systemd-resolved:
https://unix.stackexchange.com/questions/328131/how-to-troubleshoot-dns-with-systemd-resolved
Sadly I don't have much of advice what to look for in this case, the
latest issues I have had has been opendkim/mimdefang/spamassassin
related (versions not compatible with the installed sendmail).
I don't think it is running, I have disabled NetworkManager and run with
the old ifcfg scripts still.
And these do not show any sign of some resolve process running
systemctl list-unit-files | grep reso
find /run -iname "*resolv*"
find /lib -iname "*resolv*"
[@]# ps -e | grep systemd
1 ? 00:02:25 systemd
602 ? 00:00:18 systemd-journal
615 ? 00:00:01 systemd-udevd
695 ? 00:00:40 systemd-logind
631568 ? 00:00:00 systemd
Moreover, DNS lookups can change with each try as different
servers might be involved.
address. So I just added to the /etc/hosts
x.x.x.x mx.client.outlook.com
Hoping that if sendmail resolves mx.client.outlook.com the forced ip
address is being used. Yet it seems to bypass the /etc/hosts file and
What could be the reason sendmail is reporting "host name lookup
failure", while I can just do a "dig +short " and this hostname resolves fine?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 393 |
Nodes: | 16 (2 / 14) |
Uptime: | 35:24:09 |
Calls: | 8,256 |
Files: | 13,132 |
Messages: | 5,877,350 |