We are having problems adding a TXT record to DNS through Virtualmin.
When we run:
virtualmin modify-dns --domain example.com --add-record "example.com. TXT This is an test"
…the record that gets written is:
example.com. TXT "Thisisantest"
All spaces are stripped.
The same issue happens when using the Virtualmin API. We tried encoding the value using both urlencode and rawurlencode, but the result is always the same: TXT values lose their spaces.
Expected result:
example.com. TXT "This is an test"
Actual result:
example.com. TXT "Thisisantest"
Are we doing something wrong, or is this a bug in the CLI/API TXT record handling?
OS : Debian 12.12
Webmin version 2.402
Virtualmin version 7.30.8
I get the same, I tried this as well and still stripes the spaces. virtualmin modify-dns --domain example.com --add-record "example.com TXT \"This is and test\""
That’s what I thought. Now I just need to find an alternative way to script this change, since we can’t update it through the GUI due to the large number of changes required.
Also, how quickly are bugs like this usually picked up and fixed?
OK, 2.501 is only just out (some might not even have noticed yet) as I mentioned we all need to exercise a certain level of patience for these bugs to be prioritised and fixed.