cancel
Showing results for 
Search instead for 
Did you mean: 
New

replacing records via api - failed name server validation

I'm trying to replace all records on my domain via api put request.

url, credentials and data are valid. however I'm getting this error in response:

{"code":"FAILED_NAME_SERVER_VALIDATION","fields":[{"code":"INVALID_FIELD","message":"Nameservers [ns03.domaincontrol.com] ","path":"records"},{"code":"INVALID_FIELD","message":"Nameservers [ns04.domaincontrol.com] ","path":"records"}],"message":"Failed to update nameservers"}

BUT it works. after getting error records r successfully replaced. What am I doing wrong?

records are:

[

{u'type': u'A', u'data': u'xxx.xxx.xxx.xxx', u'name': u'xxx', u'ttl': 600},

{u'type': u'NS', u'data': u'ns03.domaincontrol.com', u'name': u'@', u'ttl': 3600},

{u'type': u'NS', u'data': u'ns04.domaincontrol.com', u'name': u'@', u'ttl': 3600},

{u'type': u'CNAME', u'data': u'xxx', u'name': u'www', u'ttl': 3600},

{u'type': u'CNAME', u'data': u'xxxx', u'name': u'xxx', u'ttl': 3600},

{u'type': u'TXT', u'data': u'null', u'name': u'xxx', u'ttl': 600},

{'type': u'A', 'data': u'xxx.xxx.xxx.xxx', 'name': u'xxxx', 'ttl': 600}

]

1 REPLY 1
Community Manager
Community Manager

Re: replacing records via api - failed name server validation

Hi @abs112. Thanks for being part of GoDaddy Community! Unfortunately, I'm not overly familiar with how the API is supposed to work. If you're not able to get an answer on the community forums, you can also try reaching out to api@godaddy.com. Hope that helps. 

 

JesseW - GoDaddy | Community Manager | 24/7 support available at x.co/247support | Remember to choose a solution and give kudos.