Apply API

Gname API is available for domain drop catch, account management, domain query, registration, renewal, deletion, using for apps and servers etc. You are able to easily set domain servers, choose renewal and create folder.

Modify DNS

User modify DNS

Request URL
http://api.gname.net/api/domain/dns
Request Method
POST
Request Parameter
Field Parameter Type Required Description
domain ym String Yes need to modify the DNS domain name
DNS dns String Yes separate by commas
Request Demo
{
	"url": "http://api.gname.net/api/domain/dns",
	"do": "POST",
	"data": {
		"appid": "testappid",
		"dns": "ns1.gname-dns.com,ns2.dngame-dns.com",
		"gntime": 1618998084,
		"ym": "gname.com",
		"gntoken": "97F577FAE818A1E5AAE522933F24037B"
	}
}
Response Data
Field Parameter Type Description
return code code Int 1:return successfully -1:return failed
return description msg String description of the return request operation
return data data String return the requested operation result data
domain ym String domains which need to modify DNS
Response Demo
{
    "code": 1,
    "ym": "gname.net",
    "data": "",
    "msg": "submit DNS modification successfully,domain(gname.net),please wait for it to take effect"
}

Copyright© 2021 GNAME.COM. All rights reserved. Legal Statement | Privacy Policy