On Sun, 26 Apr 2020 21:47:30 +0200
"Carlos E. R."
On 26/04/2020 20.24, Per Jessen wrote:
Admin Beckspaced wrote:
my problem was that on my dev box postfix, asd it usually does, is using DNS to lookup IP address of a domain So I needed a quick fix to point a domain to another IP on the dev box. Then I thought ... hey, let's use /etc/hosts and define an IP adress there.
I was not aware that postfix is doing a direct DNS query.
Maybe see the postfix "smtp_host_lookup" directive.
http://www.postfix.org/postconf.5.html#smtp_host_lookup
Setting up dnsmasq for this is overkill, imho.
The easy solution is:
smtp_host_lookup = dns,native.
Ah! Interesting :-)
When I first hit that problem, about two decades ago, I was using sendmail. So when I switched to postfix I kept using the same method: local dns server (which at the time, was bind9 (it is confusing whether it is called bind9 or named or both).
However, a local dns server also speeds up the operation of other daemons, such as postfix, spamassassin, etc. Even the web browser.
I'm surprised a local DNS server makes much difference versus the default one on my router. And it certainly doesn't affect my web browser, since firefox uses its own system, which in my case is DOH to cloudflare. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org