On 26/04/2020 19.30, Admin Beckspaced wrote:
Am 26.04.2020 um 14:02 schrieb Carlos E. R.:
On 26/04/2020 09.47, Admin Beckspaced wrote:
Am 25.04.2020 um 14:03 schrieb Anton Aylward:
On 25/04/2020 07:15, Admin Beckspaced wrote:
...
yes, indeed. Had some little confusion here ;)
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.
so while ping was working on the dev box postfix actually still got the wrong IP address.
that was the only confusion I had there.
Ah, yes, I hit the same problem long ago, I had forgotten :-)
Using DNSMasq will perhaps solve the issue but didn't have time yet to look into it.
hopefully this will clear up thing?
anyway ... thanks a lot for all your help, hints & explanations
DNSMasq is very easy to use, specially when compared with "bind" which is the powerful tool most used. Basically, DNSmasq reads the /etc/hosts file, and makes a name server out of that information (or you can use a separate file, and tell dnsmasq to not read the hosts file). You only need some tiny changes to adjust. For example, in mine, I did these changes: /etc/dnsmasq.conf: #no-resolv #server=192.168.1.1 server=1.1.1.1 server=1.0.0.1 local=/valinor/ #conf-dir=/etc/dnsmasq.d/,*.conf # I don't remember why :-? /etc/resolv.conf: domain Valinor nameserver 127.0.0.1 /etc/host.conf: order hosts, bind multi on And that's it, I think. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)