11/11/2023 12:08
I know I have to add all the original main and subdomains to the parameters for "set_dns2" when I add a new subdomain - otherwise I am only setting the subdomain and lose the settings for all other domains. Unfortunately when I read teh current dns settings using "get_dns" is not in the same format as that needed by "set_dns2 - so while I am able to add all the current subdomains, I am losing the main domain. An example fo the command I am using is: https://api.dynadot.com/api3.json?key=xxxx&command=set_dns2&sub_record_type2=cname&main_record_type=cname&subdomain0=people&sub_record2=123.cname.eu.loclx.io&sub_record_type1=cname&main_record=987.cname.eu.loclx.io&sub_record_type0=cname&sub_record0=123.cname.eu.loclx.io&subdomain2=place&subdomain1=project&sub_record1=123.cname.eu.loclx.io&domain=astralship.wiki The main_record does not get set - what is the right syntax?
Reply
Quote Like Sorry, you do not have permission to post in our forums. Please contact our Support Team if you have any questions.
[quote]d_b_london_gb_9 says: I know I have to add all the original main and subdomains to the parameters for "set_dns2" when I add a new subdomain - otherwise I am only setting the subdomain and lose the settings for all other domains. Unfortunately when I read teh current dns settings using "get_dns" is not in the same format as that needed by "set_dns2 - so while I am able to add all the current subdomains, I am losing the main domain.
An example fo the command I am using is:
https://api.dynadot.com/api3.json?key=xxxx&command=set_dns2&sub_record_type2=cname&main_record_type=cname&subdomain0=people&sub_record2=123.cname.eu.loclx.io&sub_record_type1=cname&main_record=987.cname.eu.loclx.io&sub_record_type0=cname&sub_record0=123.cname.eu.loclx.io&subdomain2=place&subdomain1=project&sub_record1=123.cname.eu.loclx.io&domain=astralship.wiki
The main_record does not get set - what is the right syntax?[/quote]
Quote
I know I have to add all the original main and subdomains to the parameters for "set_dns2" when I add a new subdomain - otherwise I am only setting the subdomain and lose the settings for all other domains. Unfortunately when I read teh current dns settings using "get_dns" is not in the same format as that needed by "set_dns2 - so while I am able to add all the current subdomains, I am losing the main domain.
An example fo the command I am using is:
https://api.dynadot.com/api3.json?key=xxxx&command=set_dns2&sub_record_type2=cname&main_record_type=cname&subdomain0=people&sub_record2=123.cname.eu.loclx.io&sub_record_type1=cname&main_record=987.cname.eu.loclx.io&sub_record_type0=cname&sub_record0=123.cname.eu.loclx.io&subdomain2=place&subdomain1=project&sub_record1=123.cname.eu.loclx.io&domain=astralship.wiki
The main_record does not get set - what is the right syntax? Edit