Support

Forum

A place for Dynadot and community experts alike to ask questions, share ideas, and more.
Adding TXT record wipe out all my records
When I run the following api, it added the TXT record into the Domain section but all my records was wipe off. How do I add new record on top of my existing ? ``` curl https://api.dynadot.com/api3.xml\?command\=set_dns2\&domain\=as3tech.com\&key\=<redacted>\&ttl\=300\&main_record_type13=txt\&main_record13=_new_radata23 | xmllint --format - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 114 100 114 0 0 272 0 --:--:-- --:--:-- --:--:-- 272 <?xml version="1.0"?> <SetDnsResponse> <SetDnsHeader> <SuccessCode>0</SuccessCode> <Status>success</Status> </SetDnsHeader> </SetDnsResponse> ```
teamdynadot replied
hello. If you are trying to set DNS while using the API function, you must add all of your DNS records into the API function in order to keep them all - including the new record. If you only add the new record to the function, you are telling our system that you only want that record to be saved to your domain.
Reply Quote
2 Replies
replied teamdynadot
Any chance this will be changed in the future?
Reply Quote
0 Replies
teamdynadot replied teamdynadot
Hi, we don't have a near plan for this feature. But we have added your request to the list already.
Reply Quote
0 Replies