Are you sure you want to close the chat?Chat will be closed and the chat history will be cleared.
continue to sign out,
or stay on chat.
To review this chat session please click this windows.
Chat Online
Chat Online0
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
5/3/2021 18:37
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>
```
Reply Quote
6/16/2021 15:08
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 QuoteHide Replies
s_a_yardley_us replied teamdynadot :1/11/2022 11:07
Any chance this will be changed in the future?
Reply Quote
teamdynadot replied s_a_yardley_us :1/24/2022 20:01
Hi, we don't have a near plan for this feature. But we have added your request to the list already.
Reply Quote