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:
Hello there ;)
never expected that my question about /etc/hosts would raise such attention and receive multiple feedbacks from the list.
An entry in /etc/hosts
112.202.123.179 somedomain.com
DOES axctually work but it depends how you query the IP address
I did query via 'host' or 'dig' but these tools do a direct query to the nameserver. I don't have bind running on the server but forward to external DNS server
So if I do a 'ping' lookup via /etc/hosts works.
As pointed out by a few people DNSMasq is what I'm looking for.
Er... you have a little confusion here.
The tools "host" or "dig" are designed to test the name servers and ignore the "files", ie, what /etc/hosts say. These tools do not replicate what happens with a normal program that asks the system for a name to IP conversion.
Instead, you test the toolchain with "ping", and then you see that /etc/hosts works perfectly.
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. 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 Thanks & greetings Becki -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org