| Summary: | DNS resolution via OpenVPN or Wireguard not possibe | ||
|---|---|---|---|
| Product: | IPFire | Reporter: | Joern Koerner <joern.koerner> |
| Component: | --- | Assignee: | Michael Tremer <michael.tremer> |
| Status: | ASSIGNED --- | QA Contact: | |
| Severity: | Major Usability | ||
| Priority: | Will affect most users | CC: | adolf.belka, carlos.e, michael.tremer, Reinoso, tg92, timo.eissler |
| Version: | 2 | ||
| Hardware: | unspecified | ||
| OS: | Unspecified | ||
|
Description
Joern Koerner
2026-07-28 10:49:19 UTC
Hello Jörn,
I can acknowledge this problem and I have been working on fixing this problem in Knot Resolver. A PoC patch is available and has already been tested successfully internally.
I have submitted it to the Knot Resolver developers and am awaiting whether this has a chance of being merged as many more people are experiencing the same problem:
> https://gitlab.nic.cz/knot/knot-resolver/-/work_items/173#note_335164
Hi!
Do you thunk the patch will also help with the problem using Keepalived virtual IP address?
My setup consists of two IPFire systems:
Primary IPFire: 192.168.222.251
Secondary IPFire: 192.168.222.252
Keepalived virtual IP: 192.168.222.254
The virtual IP is used as both the default gateway and the primary DNS server for clients on the GREEN network.
The virtual IP is present correctly on the active node:
inet 192.168.222.251/24 scope global green0
inet 192.168.222.254/32 scope global proto keepalived green0
Knot Resolver is listening on:
0.0.0.0:53
The generated configuration contains:
network:
listen:
- interface: 0.0.0.0@53
When a client sends a DNS query to the virtual address, the reply is sent from the physical address of the active IPFire system:
nslookup google.com 192.168.222.254
reply from unexpected source: 192.168.222.251#53,
expected 192.168.222.254#53
Hello, yes, this is exactly what this patch is supposed to fix. Sadly I have not heard back from upstream yet and therefore cannot finish working on the patch. If you do not get a response from upstream, the https://gitlab.nic.cz/knot/knot-resolver/-/blob/master/CONTRIBUTING.md mentions the following options: 1. File issues and merge requests directly against the upstream repository: https://gitlab.nic.cz/knot/knot-resolver 2. Open a pull request on GitHub: https://github.com/CZ-NIC/knot-resolver They will take care of it and move it upstream. 3. Send a patch to the users mailing list: knot-resolver-users@lists.nic.cz |