mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 17:35:54 +03:00
[GH-ISSUE #627] Bug: DPS is not working for Alpine containers #207
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#207
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cmiguelcabral on GitHub (Aug 13, 2025).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/627
What is Happening
DPS is not working for Alpine containers.
The comment
# dps-entrycreates the problem.nslookup: bad address '172.18.0.4 # dps-entryChanging the
resolv.confmanually to:Solves the problem. But it gets changed again automatically to
nameserver 172.18.0.4 # dps-entryThe problem is having the comment on the same line as the IP.
Please describe how to reproduce the issue with a MRE - Minimal Reproducible Example.
alpineas base image with theresolv.confmounteddocker execto that containernslookupto resolve some other containerWhat is Expected
It should return the IP address of the container, but instead I receive this:
nslookup: bad address '172.18.0.4 # dps-entrySpecs
28.3.33.32.5-snapshot-aarch64@cmiguelcabral commented on GitHub (Aug 14, 2025):
I suggest doing it like Ansible does. Adding a
BEGINin the line before and anENDin the line after thenameserver.This can also open the door to having multiple instances running.
@mageddo commented on GitHub (Dec 17, 2025):
Hey, better late than never. Really nice suggestion, I adopted that, released version 5.1.x, hope it will conciliate and adjust old changed files. I would appreciate feedback. Thanks in advance.
Example:
cat /etc/resolv.conf
@cmiguelcabral commented on GitHub (Dec 18, 2025):
Awesome!
Thank you