Gestione Zone DNS

setdnsdefault

Description

Set domain name ns to default (use domainregister nameserver)

Input Parameters

Name Allowed Values
userid Your Domain Register Reseller ID
privatekey Your Reseller Private Key
command setdnsdefault
domain Domain name
setdnsdefault TRUE or FALSE

Output Parameters

Name Allowed Values
command setdnsdefault
domain Domain name
errcode Successful if 0
errdesc

Description of error returned or command completed successfully if no errors detected

Example URL

api.domainregister.it/interface.php?command=setdnsdefault&domain=abc123.com&userid=resellerID&privatekey=myprivatekey&setdnsdefault=TRUE

 

listrecordzone

Description

Get the list of all record for this zone.

Input Parameters

Name Allowed Values
userid Your Domain Register Reseller ID
privatekey Your Reseller Private Key
command

listrecordzone

domain Domain name
filter type record (A,AAAA,CNAME,MX,TXT,SRV) *optional

Output Parameters

Name Allowed Values
command listrecordzone
domain Domain name
recordzone record
errcode Successful if 0
errdesc

Description of error returned or command completed successfully if no errors detected

Example URL

api.domainregister.it/interface.php?command=listrecordzone&domain=abc123.com&userid=resellerID&privatekey=myprivatekey

 

addrecordzone

Description

Add a new record to this zone.

Input Parameters

Name Allowed Values
userid Your Domain Register Reseller ID
privatekey Your Reseller Private Key
command

addrecordzone

domain Domain name
type type record (A,AAAA,CNAME,MX,SRV,TXT)
content name of record (ex. for www.domain.com the value is www)
value value of record (ex. for A record the value is IP Address)
ttl value of time to live
prio valid only for MX record, priority of mail server.

Output Parameters

Name Allowed Values
command addrecordzone
domain Domain name
errcode Successful if 0
errdesc

Description of error returned or command completed successfully if no errors detected

Example URL

api.domainregister.it/interface.php?command=addrecordzone&domain=abc123.com&userid=resellerID&privatekey=myprivatekey&type=A&content=www2&value=1.1.1.1&ttl=60
api.domainregister.it/interface.php?command=addrecordzone&domain=abc123.com&userid=resellerID&privatekey=myprivatekey&type=CNAME&content=www2&value=dev.abc123.com&ttl=60
api.domainregister.it/interface.php?command=addrecordzone&domain=abc123.com&userid=resellerID&privatekey=myprivatekey&type=MX&content=&value=mail.abc123.com&ttl=60&prio=10

 

delrecordzone

Description

Delete a record from the zone.

Input Parameters

Name Allowed Values
userid Your Domain Register Reseller ID
privatekey Your Reseller Private Key
command

delrecordzone

recordid ID get from listrecordzone

Output Parameters

Name Allowed Values
command delrecordzone
recordID Id record delete
errcode Successful if 0
errdesc

Description of error returned or command completed successfully if no errors detected

Example URL

api.domainregister.it/interface.php?command=delrecordzone&userid=resellerID&privatekey=myprivatekey&recordid=1111