Replies: 1 comment
-
Follow-up. I seemed to be confused by Correct me but now I think that |
Beta Was this translation helpful? Give feedback.
-
Follow-up. I seemed to be confused by Correct me but now I think that |
Beta Was this translation helpful? Give feedback.
-
Hello.
I'm using
dnscrypt-proxy
(client) on Linux and (two) Windows hosts. On some Linux hosts DNS queries are handled bydnscrypt-proxy
directly or handled bydnsmasq
(dnsmasq
in the middle).On all hosts I'm working and have administration rights I add records into
hosts
file (to/etc/hosts
on Linux andC:\Windows\System32\etc\hosts
on Windows) but I noticed some "strange" behavior on Windows hosts: while ping seems to use records fromhosts
file thenslookup
doesn't use them. On Linux bothping
andhost
(ordig
ordrill
) use records from/etc/hosts
file.Correct me if I'm wrong but as far as I understand
dnscrypt-proxy
doesn't handlehosts
file on either system. On the other hand on Linux the/etc/hosts
file is looked up before actual DNS query (that could be configured innsswitch.conf
). Also if there isdnsmasq
(in the middle) it is readhosts
and all seems to work fine. Whereas on Windows (it seems)ping
utility resolves hosts usinghosts
and DNS queries butnslookup
sends requests directly to DNS. Do I understand it right? And the only way fornslookup
to give desire answer is to add records intocloaking-rules.txt
file (then reloaddnscrypt-proxy
)?Beta Was this translation helpful? Give feedback.
All reactions