Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dns] OTBR tries to forward to 8.8.8.8 when no IPv4 service on the AIL #2683

Open
EskoDijk opened this issue Jan 24, 2025 · 0 comments
Open
Assignees

Comments

@EskoDijk
Copy link

EskoDijk commented Jan 24, 2025

Describe the bug
When there is no IPv4 service on the AIL/link, then based on log output of OTBR it looks like it decides to forward the query to "8.8.8.8" by default. This will always fail. The OTBR DNS server then doesn't respond to the DNS query.

In another context, query handling by "127.0.0.1" was observed (see log example in "output" section).
This also seems strange - would the query be sent to the local server itself? Or does this mean the query gets sent via an API to the host processor? It is not clear if the query is then handled at all locally, or not.

To Reproduce

  1. Git commit id: Using the ot-reference-release BR and dongle (as client).
  2. IEEE 802.15.4 hardware platform : Nordic NCS build
  3. Build steps: script
  4. Network topology: Ethernet connection to a switch, no IPv6/IPv4 router on the link

Expected behavior
DNS server, seeing that there's no upstream DNS server reachable, immediate replies with ServFail (2) RCode.
This seems the appropriate response, see e.g. article.

Console/log output
Can be added if needed.

Here is the example where the query goes to "127.0.0.1":

May 10 16:47:13 raspberrypi otbr-agent[2337]: 00:01:31.157 [I] DnssdServer---: Received query from fd00:db9:0:0:6296:678:3037:3f4c
May 10 16:47:13 raspberrypi otbr-agent[2337]: 00:01:31.157 [I] DnssdServer---: Upstream query transaction 0 initialized.
May 10 16:47:13 raspberrypi otbr-agent[2337]: 00:01:31.157 [C] P-Resolver----: No domain name servers found in /etc/resolv.conf, default to 127.0.0.1
May 10 16:47:13 raspberrypi otbr-agent[2337]: 00:01:31.158 [I] P-Resolver----: Forwarded DNS query 0x589730 to 0 server(s).

Additional context
During cert tests, it was found that the reference BR DNS server/resolver sometimes doesn't reply even when it received the request. We'd like to avoid such cases where possible i.e. let the DNS resolver behave more according to specs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants