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 resolve runs when not required #121

Closed
ocfox opened this issue Jan 28, 2024 · 2 comments
Closed

DNS resolve runs when not required #121

ocfox opened this issue Jan 28, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@ocfox
Copy link

ocfox commented Jan 28, 2024

If it's just a local network relay that's needed it's possible that the DNS service isn't needed, I run it on a machine that doesn't have a DNS service and it results in the following error.

realm[644]: fd: soft=524288, hard=524288
realm[644]: log: level=off, output=stdout
realm[644]: dns: mode=ipv4_and_ipv6, protocol=tcp+udp, min-ttl=0, max-ttl=86400, cache-size=32, servers=system
realm[644]: thread 'main' panicked at realm_core/src/dns/mod.rs:29:47:
realm[644]: called `Result::unwrap()` on an `Err` value: ResolveError { kind: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) }
realm[644]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Running it without getting the system DNS resolution service might be possible.

@zephyrchien zephyrchien added the bug Something isn't working label Jan 28, 2024
@zephyrchien
Copy link
Collaborator

This error is caused by the non-existence of /etc/resolv.conf when attempting to load the system-wide dns configuration..

While dns resolution is not necesaary here, this behavior should be avoided.

@ocfox
Copy link
Author

ocfox commented Jan 28, 2024

Is it possible to have setup_dns run when dns resolution is needed instead of the default behavior?

setup_dns(dns_conf);

Well it looks like it's a complicated change, so maybe it's simpler to just start resolved.

@ocfox ocfox closed this as completed Jan 28, 2024
zephyrchien added a commit that referenced this issue Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants