$ resolvectl -t PTR query _barrierServerZeroconf._tcp.local
_barrierServerZeroconf._tcp.local IN PTR foo._barrierServerZeroconf._tcp.local -- link: bond0
-- Information acquired via protocol mDNS/IPv6 in 3.2ms.
-- Data is authenticated: yes
$ resolvectl -t SRV query foo._barrierServerZeroconf._tcp.local
foo._barrierServerZeroconf._tcp.local IN SRV 0 0 24800 foo.local -- link: bond0
-- Information acquired via protocol mDNS/IPv6 in 2.2ms.
-- Data is authenticated: yes
$ resolvectl -t A query foo.local
foo.local IN A 192.168.0.101 -- link: eth0
foo.local IN A 172.17.0.1 -- link: docker0
foo.local IN A 192.168.0.101 -- link: bond0
foo.local IN A 192.168.130.1 -- link: enx0042b96ef014
-- Information acquired via protocol DNS in 2.2ms.
-- Data is authenticated: yes
But the windows client wasn't able to resolve the address of the foo host correctly (debug logs didn't show anything more relevant, just some openssl stuff)
[2022-07-27T18:54:22] NOTE: connecting to 'foo': 127.0.0.11:24800
[2022-07-27T18:54:24] WARNING: failed to connect to server: Connection was refused
[2022-07-27T18:54:25] NOTE: connecting to 'foo': 127.0.0.11:24800
[2022-07-27T18:54:27] WARNING: failed to connect to server: Connection was refused
[2022-07-27T18:54:28] NOTE: connecting to 'foo': 127.0.0.11:24800
[2022-07-27T18:54:30] WARNING: failed to connect to server: Connection was refused
The problem does not occur on a different server (and the very same client) when the server has a non-RFC1918 address. This might be a problem with Windows resolver. How can I debug it?
What happened?
I configured service data with systemd-resolved in barrier.dnssd file
systemd-resolved seems to repond corectly
But the windows client wasn't able to resolve the address of the foo host correctly (debug logs didn't show anything more relevant, just some openssl stuff)
Until I added
to C:\Windows\system32\drivers\etc\hosts
Which, considering I use DHCP to configure foo's address, isn't anything more than a workaround.
Version
v2.4.0
Git commit hash (if applicable)
3e0d758b
If applicable, where did you install Barrier from?
https://github.com/debauchee/barrier/releases
What OSes are you seeing the problem on? (Check all that apply)
Windows
What OS versions are you using?
Windows 10
Relevant log output
No response
Any other information
No response