-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Add /api/domain/{domain}/zonefile.txt (close #331) #724
Conversation
Can you add a test or post the output example? |
Test docker build -t test-stalwart .
docker run --rm -p 8080:8080 test-stalwart
# Configure domain at http://localhost:8080/manage/directory/domains
# Go in inspecter network and rerun the request http://localhost:8080/api/domain/exemple.org by adding /zonefile.txt at the end Response
|
With new fix
|
You are maybe missing two of them:
See: https://github.com/wdes/mail-autodiscover-autoconfig/blob/main/templates/dns/zone.txt.tera#L12 |
Thanks for your feedback! This is not currently implemented so probably need to do another PR or open a ticker. See: mail-server/crates/jmap/src/api/management/domain.rs Lines 216 to 255 in 08a95ae
|
One last thing that remains to be implemented is the maximum length of TXT strings. See: #331 (comment) But what do you think of this PR @mdecimus. Do you find the implementation correct? Do you see another way to do it? |
Thanks for the PR but I don't think this is necessary, there is already a JSON endpoint that returns the DNS records. You could write a utility that queries this endpoint and generates the text file. |
Do you think it's worth doing PR on the admin web repo? |
I made a PR on the web admin repo. A readonly textearea displays the area in BIND format. thank |
Thanks, merged. |
Allows you to get a DNS zone file.
(close #331)