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

Enable mDNS resolution in docker container #5400

Open
derekoharrow opened this issue Dec 3, 2024 · 0 comments
Open

Enable mDNS resolution in docker container #5400

derekoharrow opened this issue Dec 3, 2024 · 0 comments
Labels
feature-request Request for new features to be added

Comments

@derekoharrow
Copy link

πŸ“‘ I have found these related issues/pull requests

None found.

🏷️ Feature Request Type

Other

πŸ”– Feature description

Many devices now use mDNS for .local hostname resolution. It appears that Uptime Kuma cannot resolve these and that an mDNS resolver is not installed within the container, so you either have to hard-code IP addresses, or setup these devices in DNS.

βœ”οΈ Solution

As part of the Dockerfile, install libnss-mdns, and configure mDNS (nsswitch.conf) - e.g.

FROM ubuntu:22.04

RUN apt-get update && apt-get install -y \
    libnss-mdns \
    && rm -rf /var/lib/apt/lists/*

RUN sed -i 's/hosts:.*/hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4/' /etc/nsswitch.conf

❓ Alternatives

No response

πŸ“ Additional Context

No response

@derekoharrow derekoharrow added the feature-request Request for new features to be added label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features to be added
Projects
None yet
Development

No branches or pull requests

1 participant