Created
March 24, 2026 16:20
-
-
Save scripting/4e2f731c4a270787c0f73b96ac3868e3 to your computer and use it in GitHub Desktop.
Frontier script that finds out if files a folder of domains have moved
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on checkDomains () { | |
| «Changes | |
| «3/24/26; 11:39:01 AM by DW | |
| «Loop over all the domains that were on Palatka and see which ones still resolve to palatka's IP address. | |
| «tcp.dns.getdottedid ("palatka.scripting.com") | |
| «"161.35.120.52" | |
| «tcp.dns.getdomainname ("161.35.120.52") | |
| «"161.35.120.52" | |
| local (domainsFolder = nodeEditorSuite.getAllServersFolder () + "palatka:pagepark:domains:"); | |
| local (adroutline = @scratchpad.palatkaDomains); | |
| new (outlinetype, adroutline); | |
| edit (adroutline); | |
| target.set (adroutline); | |
| fileloop (f in domainsFolder) { | |
| local (name = file.filefrompath (f) - ":"); | |
| try { | |
| local (id = workspace.getserveraddress (tcp.dns.getdottedid (name))); | |
| op.insert (name + " == " + id, down)}}; | |
| op.firstsummit (); | |
| op.deleteline ()}; | |
| bundle { //test code | |
| checkDomains ()} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment