dnstt fails with default record config
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by locating the dnstt service template, such as run.sh.j2, and inspect how an empty record_type reaches the ExecStart line in /other/dnstt. Reproduce with an empty record_type and check the generated unit using journalctl -u hiddify-dnstt-.service. Done means the service no longer emits an argumentless -record-type flag and dnstt-server starts successfully.
Written by the indexing model from the issue text.
Description
[BUG] dnstt-server fails to start (crash loop) when record_type field is left empty in the panel
Description:
When adding or editing a dnstt domain via the Hiddify-Manager panel, leaving the record_type field empty results in a broken systemd service file. Instead of defaulting to txt or omitting the flag entirely, the backend generates the -record-type flag without any argument. This causes the dnstt-server to crash immediately with a 2/INVALIDARGUMENT status.
Steps to Reproduce:
Go to the Hiddify panel and configure a domain with dnstt transport.
Leave the record_type advanced field empty ("") (as is)
Apply configurations.
Check the status of the generated service using journalctl -u hiddify-dnstt-<domain>.service (the one in /other/dnstt)
Expected Behavior:
If the field is empty, the templating engine (e.g., run.sh.j2) should either fallback to "txt" or omit the -record-type flag from the ExecStart line so the dnstt-server binary can use its own default value.
Actual Behavior:
The systemd service file is generated with an incomplete flag at the end of the ExecStart line:
Ini, TOML
ExecStart=/opt/hiddify-manager/other/dnstt/dnstt-server ... -keepalive 0s -idle-timeout 0s -record-type
This causes the daemon to crash.
Logs / Evidence:
May 29 19:20:15 server-1xgjqp systemd[1]: hiddify-dnstt-t.example.com.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 29 19:20:20 server-1xgjqp dnstt-server[1080423]: flag needs an argument: -record-type
- Dominant language
- Python
- Stars
- 9.3k
- Forks
- 1k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from hiddify/Hiddify-Manager
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
hiddify/Hiddify-Manager#5533 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
hiddify/Hiddify-Manager#5529 ·
-
geoip-cn.srs incorrectly classifies Google anycast IPs (142.251.x.x) as China, causing false rejects Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
hiddify/Hiddify-Manager#5520 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
hiddify/Hiddify-Manager#5498 · 3 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hiddify/Hiddify-Manager#5495 ·
All issues in hiddify/Hiddify-Manager
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100