error-record-invalid when running on MacOS Server
Since Nov 18, 2018, getting error-record-invalid when running on MacOS Server
Submitting HTTPS request to DnsMadeEasy with same data as config file returns "success"
HTTPS shouldn't be required. It works for me using:
http://cp.dnsmadeeasy.com/servlet/updateip?username=XYZ&password=ABC&id=12234&ip=1.2.3.4
Does that work (using your data)?
http;// and https:// both work fine work fine with my data. I also used BBEDIT to change the config file line endings to CR, CRLF and LF. All three variants fail. My password is 15 characters long, might that be a problem?
On Nov 19, 2018, at 6:01 PM, Nathan Sweet [email protected] wrote:
HTTPS shouldn't be required. It works for me using: http://cp.dnsmadeeasy.com/servlet/updateip?username=XYZ&password=ABC&id=12234&ip=1.2.3.4 Does that work (using your data)?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EsotericSoftware/dnsmadeeasy/issues/4#issuecomment-440073596, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQzDIh4TXaKeuxtoguNJPusfe_2fMQvks5uwzhQgaJpZM4YqDEG.
Password length shouldn't matter. I really can't imagine what would be the problem. If you got rate limited for too many requests, it would probably say so and you'd get the same results in a browser. You said "since", was it working previously and now it doesn't? That would sound like DnsMadeEasy changed something, though it works for me (on Windows but it's a very simple app and should be on the same on OS X).
Agree. I grabbed “realDNS” another option listed on DNSMadeEasy and copy/pasted my config info into their program. Everything is working fine now.
I asked the support people at DNSMadeEasy if they could let me know what was failing on their end… the password or other data. If/when they get back to me I’ll let you know.
Thanks so much for being so responsive in the middle of your night!
Paul
On Nov 19, 2018, at 7:05 PM, Nathan Sweet [email protected] wrote:
Password length shouldn't matter. I really can't imagine what would be the problem. If you got rate limited for too many requests, it would probably say so and you'd get the same results in a browser. You said "since", was it working previously and now it doesn't? That would sound like DnsMadeEasy changed something, though it works for me (on Windows but it's a very simple app and should be on the same on OS X).
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EsotericSoftware/dnsmadeeasy/issues/4#issuecomment-440087388, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQzDNsop190DYXkYX0GcDh47acCJXvMks5uw0c8gaJpZM4YqDEG.
Is there an easy way for someone who knows nothing about JAVA to see what the program is sending from my Mac to DNSMadeEasy? Maybe a debug setting that can be turned on when the program is launched that shows in the log what the program is sending to DNSMadeEasy?
You could use an HTTP proxy that shows you the requests and responses. Eg, ProxyTrace on Windows. Sorry I don't know about Mac, maybe this. Start Java with your proxy settings like:
java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8800 -jar dnsmadeeasy.jar
127.0.0.1 means localhost (your local computer) and 8800 is the port your proxy tool is running on.
Nathan,
The Charles proxy debugger is way cool, thanks for the link. I installed Charles and here is what is getting sent from my MacOS server:
GET /servlet/updateip?username=&password=&id=&ip=108.28.6.102 HTTP/1.1
So the config file isn’t getting read by and passed along to DNSMadeEasy.
The config file is in
~/.dnsmadeeasy/
To start up dnsmadeeasy.jar
sudo java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8800 -jar /Users/admin/Documents/DDNS/dnsmadeeasy.jar
File permission on the config file are
-rw-r--r--@ 1 admin staff 118 Nov 20 12:26 config.txt
Beats me why the java program quit reading the config file. Maybe Apple did something in a security settings release to block executing JAVA programs from reading files? I have no idea. I couldn’t find anything where MACOS SERVER had been changed.
Paul
On Nov 20, 2018, at 11:32 AM, Nathan Sweet [email protected] wrote:
You could use an HTTP proxy that shows you the requests and responses. Eg, ProxyTrace on Windows. Sorry I don't know about Mac, maybe this https://www.charlesproxy.com/. Start Java with your proxy settings like: java -Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=8800 -jar dnsmadeeasy.jar 127.0.0.1 means localhost (your local computer) and 8800 is the port your proxy tool is running on.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/EsotericSoftware/dnsmadeeasy/issues/4#issuecomment-440337964, or mute the thread https://github.com/notifications/unsubscribe-auth/AIQzDEwTBB-Hmp44m7hxu8PwmDmy-VAfks5uxC6RgaJpZM4YqDEG.
If you delete the config file, then run the program, does it create a new config file? That is one way to be sure the config file it is reading is the one you have edited with your info. When it saves the config file, it will print Saving: /path/to/file/config.txt. It should be ~/.dnsmadeeasy/config.txt, but who knows. Oh, maybe using sudo runs it as the root user, so it's in the root user's home directory. You can set the folder:
java -Duser.home=/some/path -jar dnsmadeeasy.jar
That would cause it to use /some/path/.dnsmadeeasy/config.txt.
It reading a config file at a different path seems like the most likely problem. Newlines can be a line feed (\n), a carriage return (\r), or a carriage return followed immediately by a linefeed (\r\n).