On 27/04/2020 12.30, Dave Howorth wrote:
On Sun, 26 Apr 2020 21:47:30 +0200 "Carlos E. R."
wrote: 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.
Depends on the router :-) The computer has more memory, can store more entries. In the past, the time of modems, it made a notable difference.
And it certainly doesn't affect my web browser, since firefox uses its own system, which in my case is DOH to cloudflare.
By default, it uses the system. Has to, or local names would not resolve. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)