cPanel XMLAPI - adddns


DESCRIPTION

This function creates a DNS zone. All zone information other than domain name and IP address is created based on the standard zone template in WHM. (To edit that template, go to: https://YOURIP:2087/scripts2/editzonetemplate?template=standard) Your MX record, nameserver records, domain ptr and a records will all be generated automatically. If you wish to modify the zone information, use editdns.


VARIABLES

INPUT

domain
Domain name to add the zone for.

ip
IP address associated with the domain name.

OUTPUT

adddns
DNS zone addition information container.

result
Operations results container.

status
Status of the deletion request. (1 = success, 0 = failure)

statusmsg
Information about the status of the request.


EXAMPLES

Calling this URL in WebHost Manager:

/xml-api/adddns?domain=domain.com&ip=1.2.3.4

will produce something similar to:

	<adddns>
		<result>
			<status>1</status>
			<statusmsg>Added domain.com ok</statusmsg>
		</result>
	</adddns>

COPYRIGHT

Copyright 2008 cPanel Inc.