Updating IP address using commandline (Windows)?
Hello,
I have a dynamic IP and want to update my OpenDNS IP address using command line.
Unfortunately, I cannot used OpenDNS IP Updater because I am trying to do this on my Windows Server 2019 machine and OpenDNS IP Updater doesn't run on it unless I atleast login once. So in case the Windows Server 2019 machine restarts, my IP won't update until I manually login.
But I can run a batch file before I login to Windows.
I tried using the follow using CURL but I get badauth every time.
curl -user email@email.com:Password@321 http://updates.dnsomatic.com/nic/update?hostname=
Error:
curl : badauth
At line:1 char:1
+ curl -user email@email.com:Password@123 http://updates.dnsomati ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
Can someone please help me?
0 Links
Please sign in to leave a comment.
Comments
0 comments