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.

Add Domain Resolution

Users add domain resolution record

Request URL
http://api.gname.net/api/resolution/add
Request Method
POST
Request Parameter
Field Parameter Type Required Description
domain ym String Yes domain
record type lx String Yes type:A,CNAME,MX,URL,TXT
host record zj String Yes host record
record value jlz String Yes record value
Request Demo
{
	"url": "http://api.gname.net/api/resolution/add",
	"do": "POST",
	"data": {
		"appid": "testappid",
		"gntime": 1618998657,
		"jlz": "123.123.123.123",
		"lx": "A",
		"ym": "gname.com",
		"zj": "www",
		"gntoken": "E6A63DA0BE38EC69B9C36A3D1188A5C5"
	}
}
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 Int return domain resolution record ID
Response Demo
{
    "code": 1,
    "msg": "make domain resolution successfully",
    "data": 1277
}

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