When using one of our scripts for registering an IP with a record, or using a chef recipe that does the same, (e.g., sys_dns::do_set_private), you may see an error like the following:
04:21:08: Setting the run_list to ["sys_dns::do_set_private"] from JSON 04:21:08: Starting Chef Run (Version 0.9.14.4) 04:21:08: ======== sys_dns::do_set_private : START ======== *ERROR> 04:21:08: sys_dns[Setting Host] (/var/cache/rightscale/cookbooks/518a303fa5da2edff695ecfaa081c1684a8d3d70/cookbooks/sys_dns/recipes/do_set_private.rb:10:in `from_file') had an error: Error setting the DNS, curl exited with code: 0, id=8174263, address:10.28.2.73, output:error-auth
Even if your username and password may be correct. If your password contains special characters, then you will find your solution below. If it does not, you will want to double-check your username and password to ensure that it matches what you are using to log into the DNSMadeEasy console.
The reason behind this is that the DNSMadeEasy API requires special characters to be converted into hex before it will be accepted. So, for example, let's say your password is rf@#er, the hexidecimal password you would enter would be:
Which, when combined with the connection string, will look something like the following:
If you use the hexi-fied password with our DNS_PASSWORD input, or plug it into a credential and then use that with the input, then it should automatically put that in place, and should work properly from there.
You can find a hex conversion chart, here:
You will just need to use the Hx column to get the appropriate HEX value for the characters you are using. You can also use a HEX converter, as with the following page:
© 2006-2014 RightScale, Inc. All rights reserved.
RightScale is a registered trademark of RightScale, Inc. All other products and services may be trademarks or servicemarks of their respective owners.