cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
74
Views
0
Helpful
0
Replies

Updating IP address using commandline (Windows)?

lolcocks
Level 1
Level 1

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 Replies 0