[GH-ISSUE #70] raise an error if acme-dns can't listen/bind to a specified port. #25

Closed
opened 2026-03-13 15:24:26 +03:00 by kerem · 5 comments
Owner

Originally created by @jvanasco on GitHub (Apr 10, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/70

while doing some debugging of firewall rules, I realized that acme-dns will start up fine as an unprivileged user who can't bind to port 53 (if that is the configured port). I think it should probably raise an error OR print a warning line in these situations.

Originally created by @jvanasco on GitHub (Apr 10, 2018). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/70 while doing some debugging of firewall rules, I realized that acme-dns will start up fine as an unprivileged user who can't bind to port 53 (if that is the configured port). I think it should probably raise an error OR print a warning line in these situations.
kerem 2026-03-13 15:24:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@mearsten commented on GitHub (May 28, 2018):

#85 fixes that

<!-- gh-comment-id:392588649 --> @mearsten commented on GitHub (May 28, 2018): #85 fixes that
Author
Owner

@Ajedi32 commented on GitHub (Oct 31, 2018):

Pretty sure this is a duplicate of #118, and is now fixed in #122

<!-- gh-comment-id:434763501 --> @Ajedi32 commented on GitHub (Oct 31, 2018): Pretty sure this is a duplicate of #118, and is now fixed in #122
Author
Owner

@jvanasco commented on GitHub (Oct 31, 2018):

well, #118 is a duplicate of this - and it looks like printing a warning is handled by #122.

@joohoi does #122 only log a warning, or can it cause a fatal error if unable to bind?

<!-- gh-comment-id:434770535 --> @jvanasco commented on GitHub (Oct 31, 2018): well, #118 is a duplicate of this - and it looks like printing a warning is handled by #122. @joohoi does #122 only log a warning, or can it cause a fatal error if unable to bind?
Author
Owner

@joohoi commented on GitHub (Oct 31, 2018):

does #122 only log a warning, or can it cause a fatal error if unable to bind?

Both, it calls log.Fatal(err) which logs the error, and then exits. :)

<!-- gh-comment-id:434778734 --> @joohoi commented on GitHub (Oct 31, 2018): > does #122 only log a warning, or can it cause a fatal error if unable to bind? Both, it calls `log.Fatal(err)` which logs the error, and then exits. :)
Author
Owner

@jvanasco commented on GitHub (Oct 31, 2018):

Wonderful. Closing this! thanks for the fix, this has bugged me for months!

<!-- gh-comment-id:434784145 --> @jvanasco commented on GitHub (Oct 31, 2018): Wonderful. Closing this! thanks for the fix, this has bugged me for months!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#25
No description provided.