netbird/client/internal/dns
Zoltan Papp c9b2ce08eb
DNS forwarder and common ebpf loader (#1083)
In case the 53 UDP port is not an option to bind then we hijack the DNS traffic with eBPF, and we forward the traffic to the listener on a custom port. With this implementation, we should be able to listen to DNS queries on any address and still set the local host system to send queries to the custom address on port 53.

Because we tried to attach multiple XDP programs to the same interface, I did a refactor in the WG traffic forward code also.
2023-09-05 21:14:02 +02:00
..
dbus_linux.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
file_linux.go Keep confiured nameservers as fallback (#1036) 2023-08-01 17:45:44 +02:00
host_android.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
host_darwin.go Keep confiured nameservers as fallback (#1036) 2023-08-01 17:45:44 +02:00
host_linux.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
host_windows.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
host.go Prevent setting primary resolver if using custom DNS port (#861) 2023-05-17 00:03:26 +02:00
local_test.go Feature/dns client configuration (#563) 2022-11-23 13:39:42 +01:00
local.go Feature/android dns (#943) 2023-06-12 14:43:55 +02:00
mock_test.go Fix nameserver peer conn check (#676) 2023-02-13 18:25:11 +04:00
mockServer.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
network_manager_linux.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
resolvconf_linux.go Keep confiured nameservers as fallback (#1036) 2023-08-01 17:45:44 +02:00
response_writer_test.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
response_writer.go Feat fake dns address (#902) 2023-06-08 13:46:57 +04:00
server_export_test.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
server_export.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
server_test.go Update GitHub Actions and Enhance golangci-lint (#1075) 2023-09-04 17:03:44 +02:00
server.go Update the link to the doc page (#1088) 2023-08-17 12:27:04 +02:00
service_listener.go DNS forwarder and common ebpf loader (#1083) 2023-09-05 21:14:02 +02:00
service_memory_test.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
service_memory.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
service.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
systemd_linux.go revert systemd changes (#1046) 2023-08-03 00:05:13 +02:00
upstream_test.go Use backoff.retry to check if upstreams are responsive (#901) 2023-05-26 17:13:59 +02:00
upstream.go Use backoff.retry to check if upstreams are responsive (#901) 2023-05-26 17:13:59 +02:00
wgiface_windows.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00
wgiface.go Feature/permanent dns (#967) 2023-07-14 21:56:22 +02:00