• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

XML RPC add dns record

T

thawebmaster

Guest
Last night I was playing with some xml rpc stuff. A lot of functions work properly from within applications. However, one thing drives me crazy.
I send the following packet to the server as administrator:
Code:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.4.2.0">
	<dns>
		<add_rec>
			<domain_id>92</domain_id>
			<type>CNAME</type>
			<host>home.royal-fish.nl.</host>
			<value>royalfish.nl.</value>

			
		</add_rec>
	</dns>
</packet>

I'm getting this response from the server.
Code:
<?xml version="1.0"?>
<packet version="1.4.2.0">
	<dns>
		<add_rec>
			<result>
				<status>error</status>
				<errcode>1023</errcode>
				<errtext>There are incorrect parameter values.</errtext>
			</result>
		</add_rec>
	</dns>
</packet>

I don't see the problem in my source package. Anyone an idea?
 
figure this out

I'm currently writing a Java-based application that will do AXFR's from current DNS servers and add all of those records into Plesk. With some 600-domains, this would be impossible to do by hand. I've got domain info, current dns records, etc fine through the API, but when I try to add a record using the same packet below, I get the same error.

Did you ever find the solution to this problem?
 
still no worky!

I've tried this on at least a dozen different domains and on two completely different Plesk 8.1 (Linux) servers both producing the same results.

There are absolutely no errors in the httpsd_error_log regarding this. It simply gives me the same error saying "There are incorrect parameter values".

If I type in an incorrect domain name in the field, it will produce a different error message complaining about the domain doesn't exist, so at least some *other* verification is being done.

I would assume since Plesk Expand allows you to manage domains centrally, this functionality would have to work.

I've done a dump of all records for the domain I'm trying to add records too (using the API of course) and I see no records that are oddly structured that could cause problem with the specific domain, so I've ruled that out.

Is this a bug in Plesk 8.1? Or is this a bug in the API documentation?

Has ANYONE out there issued a "add_rec" command through the API and had it work? If so, could you provide a dump of your submitted XML?

I've already invested a LOT of time creating this Java client, a whole set of Plesk API classes for Java, etc and would hate to scrap this idea for ONE problem.

Any help is greatly appreciated.
 
Hi,

The parameter 'host' has incorrect value. You should use value without domain name suffix. I've corrected your request. Look at this

<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<packet version="1.4.2.0">
<dns>
<add_rec>
<domain_id>92</domain_id>
<type>CNAME</type>
<host>home</host>
<value>royalfish.nl.</value>


</add_rec>
</dns>
</packet>
 
Good to hear a solution here! However, I thought one of our engineers found the fix!
 
Back
Top