Skip to content

Instantly share code, notes, and snippets.

@scripting
Created March 24, 2026 16:20
Show Gist options
  • Select an option

  • Save scripting/4e2f731c4a270787c0f73b96ac3868e3 to your computer and use it in GitHub Desktop.

Select an option

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