-
Notifications
You must be signed in to change notification settings - Fork 249
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
#208 Update config doc about dot escaping in email #279
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: İlteriş Yağıztegin Eroğlu <[email protected]> Signed-off-by: İlteriş Yağıztegin Eroğlu <[email protected]>
Co-authored-by: İlteriş Yağıztegin Eroğlu <[email protected]> Signed-off-by: İlteriş Yağıztegin Eroğlu <[email protected]>
config.cfg
Outdated
@@ -9,7 +9,8 @@ protocol = "both" | |||
domain = "auth.example.org" | |||
# zone name server | |||
nsname = "auth.example.org" | |||
# admin email address, where @ is substituted with . | |||
# admin email address, where "@" is substituted with dot (".") | |||
# any dots in email username must be escaped with "\", e.g. firstname\.lastname.example.com |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That needs to be a double-backslash:
nsname = "firstname\\.lastname.example.com"
This is because of TOML escaping. If you put a single backslash here, then acme-dns fails to start with the following error:
Mar 02 10:51:38 ns-acme acme-dns[34272]: time="2022-03-02T10:51:38Z" level=error msg="Encountered
an error while trying to read configuration file: Near line 6 (last key parsed 'general.nsadmin'):
invalid escape character '.'; only the following escape characters are allowed:
\\b, \\t, \\n, \\f, \\r, \\\", \\\\, \\uXXXX, and \\UXXXXXXXX"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Fix for #208