Closed nstielau closed 10 years ago
Yep. The resolver is now generic. But the DynDns API should check if the Zone exists in the account and (if not) error out nicely.
This one is fixed.
ddcheck -e 500,301 --debug --dry-run http://getpantheon.com/test 2014-01-21 21:34:03,854 ddcheck: [DEBUG] Digging google.com AAAA None 2014-01-21 21:34:03,902 ddcheck: [INFO] Starting new HTTP connection (1): 2a00:1450:400d:802::1002 2014-01-21 21:34:03,941 ddcheck: [INFO] IPv6 support... off 2014-01-21 21:34:05,336 ddcheck: [DEBUG] Resolving http://getpantheon.com/test 2014-01-21 21:34:05,337 ddcheck: [DEBUG] Digging getpantheon.com NS None 2014-01-21 21:34:05,369 ddcheck: [DEBUG] Using nameservers: ns1.p30.dynect.net., ns2.p30.dynect.net., ns3.p30.dynect.net., ns4.p30.dynect.net. 2014-01-21 21:34:05,369 ddcheck: [DEBUG] Digging getpantheon.com A ['ns1.p30.dynect.net.', 'ns2.p30.dynect.net.', 'ns3.p30.dynect.net.', 'ns4.p30.dynect.net.'] 2014-01-21 21:34:05,526 ddcheck: [DEBUG] Found health check point: checkpoint(url='http://198.61.151.215/test', host='getpantheon.com', record='getpantheon.com.', ip='198.61.151.215', type='A') 2014-01-21 21:34:05,529 ddcheck: [INFO] Starting new HTTP connection (1): 198.61.151.215 2014-01-21 21:34:05,844 ddcheck: [DEBUG] "GET /test HTTP/1.1" 301 0 2014-01-21 21:34:05,845 ddcheck: [INFO] getpantheon.com http://198.61.151.215/test hit -> 301 (!!) 2014-01-21 21:34:06,982 ddcheck: [ERROR] Zone getpantheon.com is not managed by this DynDns account
But for your particular example, there's other issue blocking it. #12
Closing this one.
If the checked host is not managed by dyn, it should print out a nice messages saying so and exit unsuccessfully.
The current behavior is: