Hi, looking for a free dynamic dns I found that many providers are not free anymore, or have caveats in their free versions, like you need to log manually to keep alive your account or similar things.
Then I found
d y n d n s DOT it … written this way so you will not think I’m spamming
In the meanwhile I discovered that the site I linked has a caveat too… Something like expiring after 30 days without logging in , like similar services…
So, I’ll stick with your suggestions… EntryDNS or freedns.afraid.org , I’ll need to choose one and hope they won’t disappear like other free services…
afraid has many domains, but most of them are “third-party”, it could be safer to stay with “owned” domains, like mooo.com or chickenkiller.com…
Get your code from their site… and then just do the following… this is written for 6.9 with error catching… if your doing it on earlier (like 6.0) then just ditch the :do and the on-error stuff. … Fetch works just fine. I have it in a scheduled script… its super easy since it will get your ip for you.
:do {
/tool fetch url=“https://entrydns.net/records/modify/<YOUR CODE>”
mode=https keep-result=no
} on-error={
$logError “EntryDNS: Failed Fetching URL”
}
I’m running it minutely on several sites… haven’t had a problem yet. You “could” write it to check the IP before updating… you want me to write one to do that?
Really nice script, thank you…
Anyway, if this is not a problem for entrydns, I have no problems just updating every 5 minutes
Regarding your script, just a question: LocalSite is global because you need to still have it at the next script run, am I correct?
I tried, as an exercise, to modify your code since I’m behind nat , only one entrydns host, and I don’t have other usage cases…
Obviously, you are much more skilled than me, I just tried to learn something tweaking your script, this is not to “criticize” it
Can you tell me if my simplified script below would work correctly?
Thank you again
Feel free to tweak away. And it looks right to me.
You may also need to change
:if ([:typeof $previousIP] = “nothing”) do={ :set previousIP “” }There were a couple of versions where it would have been “nil” instead of “nothing”… I forget which though. It was like 6.4 to 6.7 or something.
EDIT: And yes… thats why the one variable is a global.
i am using this script.
is there a line that i should put my dialup pppoe interface? my ip interface that i want is “pppoe-out1”
of course i put my token in the place “INSERT_TOKEN_HERE”
still nothing.
please can you paste a script here with my credentials so i just copy and paste it. i feel stupid that i cannot do it. is it so difficult?
my interface is “pppoe-out1”
my token is “MBAtrFK9dAs5_YJrMDEe”
Hi, sorry for the long delay…
I’ve understood my error, inadvertently I merged the “do” from the if block and the “do” of the on-error block, thank you
Am I right now? BTW I added logging of the current IP, can you tell me if this is correct?
EDIT: freemannnn , regarding your question, try to use the script, inserting your token and changing only the last block with this posted here. The interface is (at least imho) not required since entrydns detects your EXTERNAL ip , it doesn’t need to know your network structure.