Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

156
LINES

< > BotCompany Repo | #1010768 // EagleDNS for botcompany.de [the real one, #1010768, but currently using domain provider's DNS]

JavaX source code (desktop) [tags: @@NXwF8 archiveHpGt4UVa archiveUKt9jCC8 use-pretranspiled] - run with: x30.jar

Download Jar. Uses 2616K of libraries. Click here for Pure Java version (20161L/124K).

!7

// NOTE: make sure the SOA is correct!

static double refreshEvery = 0 /*60*/;
static int smartBotTimeOut = 60*30;

sS zone = [[
botcompany.de. IN    SOA   ns1.stefantrades.pro.  stefan\.reich\.maker\.of\.eye.gmail.com.  (
                                        20190925     ; Serial
                                        60M     ; Refresh
                                        15M     ; Retry
                                        7D      ; Expiry
                                        30M )   ; Minimum
@                       IN      NS      ns1.stefantrades.pro.
@                       IN      NS      ns2.stefantrades.pro.
@                       IN      A       167.86.121.181
c8                      IN      A       167.86.121.181
home                300 IN      A       2.203.147.51
oldmain                 IN      A       185.183.156.46
coffee                  IN      A       195.154.179.147
*.coffee                IN      A       195.154.179.147
vnc-coffee              IN      A       195.154.179.147
transpile-coffee        IN      A       195.154.179.147
avor                    IN      A       195.154.179.147
robin-avor              IN      A       195.154.179.147
christian-avor          IN      A       195.154.179.147
avor-qa                 IN      A       195.154.179.147
*.avor-qa               IN      A       195.154.179.147
cruddie                 IN      A       195.154.179.147
*.cruddie               IN      A       195.154.179.147
stripe-test             IN      A       195.154.179.147
meta-bot                IN      A       195.154.179.147
ada-v2                  IN      A       195.154.179.147
fia                     IN      A       195.154.179.147
e-buck                  IN      A       195.154.179.147
ada-aws                 IN      A       18.233.63.26
; sometimes the * entry doesn't work? vnc.botcompany.de caused NXDOMAIN
*                       IN      A       167.86.121.181
vnc                     IN      A       167.86.121.181
code                    IN      A       167.86.121.181
www                     IN      A       167.86.121.181
butter                  IN      A       167.86.121.181
stefans-os              IN      A       167.86.121.181
smartbot                IN      A       167.86.121.181
create                  IN      A       167.86.121.181
mail                    IN      A       167.86.121.181
javax                   IN      A       167.86.121.181
ada                     IN      A       167.86.121.181
mech                    IN      A       167.86.121.181
theadmi                 IN      A       176.58.127.141
theadmi2                IN      A       176.58.127.141
tester                  IN      A       144.126.145.56
gazellebot              IN      A       173.212.209.120
;pays5-bot               IN      A       173.212.209.120
pays5-bot               IN      A       195.154.179.147
bea-bot                 IN      A       173.212.209.120
tlc                     IN      A       195.154.179.147
big                     IN      A       192.99.13.227
;@                       MX      10      mail1.domainssaubillig.de.
@                       MX      10      mail.botcompany.de.
mail                    MX      10      mail.botcompany.de.
_acme-challenge.botcompany.de. IN      TXT   "aWAwa7cLpPcFoIylAqQn13tmNyfZ6H36GUt2dFyt-eM"
botcompany.de.          IN      TXT     "google-site-verification=YL5Hu5zvww8np30b4LLv_fgK0rppl2uzUKe8-14Gk98"
]];

// Note: zone2 not active yet

sS zone2 = [[
gazelle.rocks. IN    SOA   ns1.stefantrades.pro.  stefan\.reich\.maker\.of\.eye.gmail.com.  (
                                        20190101     ; Serial
                                        5M     ; Refresh
                                        15M     ; Retry
                                        7D      ; Expiry
                                        30M )   ; Minimum
@                       IN      NS      ns1.stefantrades.pro.
@                       IN      NS      ns2.stefantrades.pro.
@                       IN      A       173.212.209.120
*                       IN      A       173.212.209.120
;@                       MX      10      mail1.domainssaubillig.de.
]];

lib 1008223 // dnsjava
lib 1010766 // EagleDNS
lib 1004911 // log4j

import se.unlogic.eagledns.EagleDNS;

static File zonesDir;
static EagleDNS eagleDNS;

p {
  tryToAcquirePort5000();
  
  S conf = loadSnippet(#1010767);
  zonesDir = programFile("zones");
  saveZones();
  
  conf = conf.replace(
    [[<Property name="zoneFileDirectory">zones</Property>]],
    [[<Property name="zoneFileDirectory">]] + f2s(zonesDir) + [[</Property>]]);
  File configFile = saveProgramTextFile("config.xml", conf);
  
  //eagleDNS = nuObject("se.unlogic.eagledns.EagleDNS", f2s(configFile));
  print("Making EagleDNS.");
  pcall {
    eagleDNS = new EagleDNS(f2s(configFile));
  }
  
  // For some weird reason, on the servers, no lines are printed
  // after this point... but they still execute!? (Auto-reload works.)
  
  printAndProgramLog("Made EagleDNS." + (eagleDNS == null ? "..not" : ""));
  bot("Eagle DNS.");
  if (refreshEvery != 0) doEvery_daemon(refreshEvery, r refresh);
  
  // Restart after successful transpile
  
  print("Making SnippetUpdateConnector.");
  ownResource(snippetUpdateConnector(verbose := true));
  
  ownResource(vmBus_onMessage snippetUpdate(voidfunc(L l) {
    print("Got snippet update: " + l);
    S uri = getString(l, 1);
    new Matches m;
    if (swic(uri, "/transpileOK/", m))
      if (sameSnippetID(programID(), firstIntAsString(m.rest()))) {
        programLog("Restarting");
        restart();
      }
  }));
}

answer {
  if "test" ret "OK";
  if "refresh" {
    refresh();
    ret "OK";
  }
}

static void refresh() {
  saveZones();
  eagleDNS.reloadZones();
}

static void saveZones {
  S acmeChallenge = loadTextFileTrim(userFile("acme-challenge.txt")); // Note: not used anymore, just edit this source
  if (nempty(acmeChallenge))
    zone = jreplace(zone,
      "_acme-challenge.botcompany.de. IN TXT <quoted>",
      "_acme-challenge.botcompany.de. IN TXT " + quote(unnull(acmeChallenge)));
  print(zone);
  saveTextFile(newFile(zonesDir, "botcompany.de"), zone);
  saveTextFile(newFile(zonesDir, "gazelle.rocks"), zone2);
}

download  show line numbers  debug dex  old transpilations   

Relations

Travelled to 24 computer(s): aoiabmzegqzx, bhatertpkbcr, bvpoyihotdib, cbybwowwnfue, cfunsshuasjs, elmgxqgtpvxh, fzcpzdstiiyc, gwrvuhgaqvyk, ishqpsrjomds, iveijnkanddl, jozkyjcghlvl, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney, xeobevbjagfg, xrpafgyirdlv

Comments [hide]

ID Author/Program Comment Date
2024 ubataecj 1 2024-05-01 03:36:54
2023 ubataecj 1 2024-05-01 03:36:54
2022 ubataecj 1 2024-05-01 03:36:54
2018 ubataecj 1 2024-05-01 03:36:52
2014 ubataecj 1 2024-05-01 03:36:49
2010 ubataecj 1 2024-05-01 03:36:46
2001 ubataecj 1 2024-05-01 03:36:43
1993 ubataecj 1 2024-05-01 03:36:41
1989 ubataecj 1 2024-05-01 03:36:37
1985 ubataecj 1 2024-05-01 03:36:35
1981 ubataecj 1 2024-05-01 03:36:32
1977 ubataecj 1 2024-05-01 03:36:26
1973 ubataecj 1 2024-05-01 03:36:24
1969 ubataecj 1 2024-05-01 03:36:19
1968 ubataecj 555 2024-05-01 03:36:19
1966 ubataecj 555 2024-05-01 03:36:19
1965 ubataecj 555 2024-05-01 03:36:19
1961 ubataecj 555 2024-05-01 03:36:17
1956 ubataecj 555 2024-05-01 03:36:13
1948 ubataecj 1 2024-05-01 03:36:08
1946 ubataecj 555 2024-05-01 03:36:07
1926 ubataecj 1 2024-05-01 03:36:04
1925 ubataecj 555 2024-05-01 03:36:03
1921 ubataecj 1 2024-05-01 03:36:01
1920 ubataecj 555 2024-05-01 03:36:01
1910 ubataecj 1 2024-05-01 03:35:58
1909 ubataecj 1 2024-05-01 03:35:58
1908 ubataecj 1 2024-05-01 03:35:58
1907 ubataecj 1 2024-05-01 03:35:57
1906 ubataecj 555 2024-05-01 03:35:57
1902 ubataecj 1 2024-05-01 03:35:55
1901 ubataecj 555 2024-05-01 03:35:55
1897 ubataecj 1 2024-05-01 03:35:51
1896 ubataecj 555 2024-05-01 03:35:51
1887 ubataecj 1 2024-05-01 03:35:49
1886 ubataecj 555 2024-05-01 03:35:48
1882 ubataecj 1 2024-05-01 03:35:46
1881 ubataecj 555 2024-05-01 03:35:46
1874 ubataecj 1 2024-05-01 03:35:43
1870 ubataecj 1 2024-05-01 03:35:38
1865 ubataecj 1 2024-05-01 03:35:35
1860 ubataecj 1 2024-05-01 03:35:31
1859 ubataecj 555 2024-05-01 03:35:31
1855 ubataecj 1 2024-05-01 03:35:10
1848 ubataecj 555 2024-05-01 03:35:09
1845 ubataecj 1 2024-05-01 03:35:07
1843 ubataecj 555 2024-05-01 03:35:07
1840 ubataecj 1 2024-05-01 03:35:05
1838 ubataecj @@mpKpC 2024-05-01 03:35:05
1837 ubataecj 555????%2527%2522\'\" 2024-05-01 03:35:04
1836 ubataecj 555'" 2024-05-01 03:35:04
1835 ubataecj 555'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2024-05-01 03:35:04
1832 ubataecj 1 2024-05-01 03:35:03
1830 ubataecj 555*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2024-05-01 03:35:00
1827 ubataecj 1 2024-05-01 03:34:59
1825 ubataecj 555vreVZx1h')) OR 615=(SELECT 615 FROM PG_SLEEP(15))-- 2024-05-01 03:34:57
1822 ubataecj 1 2024-05-01 03:34:56
1820 ubataecj 555HdXhzx91') OR 872=(SELECT 872 FROM PG_SLEEP(15))-- 2024-05-01 03:34:55
1812 ubataecj 1 2024-05-01 03:34:54
1808 ubataecj 555dpuCe6xF' OR 722=(SELECT 722 FROM PG_SLEEP(15))-- 2024-05-01 03:34:54
1797 ubataecj 1 2024-05-01 03:34:48
1795 ubataecj 1 2024-05-01 03:34:47
1793 ubataecj 1 2024-05-01 03:34:47
1792 ubataecj 1 2024-05-01 03:34:47
1791 ubataecj 1 2024-05-01 03:34:46
1790 ubataecj 1 2024-05-01 03:34:46
1789 ubataecj 555-1)) OR 959=(SELECT 959 FROM PG_SLEEP(15))-- 2024-05-01 03:34:45
1785 ubataecj 1 2024-05-01 03:34:41
1784 ubataecj 555-1) OR 624=(SELECT 624 FROM PG_SLEEP(15))-- 2024-05-01 03:34:40
1783 ubataecj @@TtJHf 2024-05-01 03:34:38
1782 ubataecj 1????%2527%2522\'\" 2024-05-01 03:34:37
1781 ubataecj 1'" 2024-05-01 03:34:37
1780 ubataecj 1'||DBMS_PIPE.RECEIVE_MESSAGE(CHR(98)||CHR(98)||CHR(98),15)||' 2024-05-01 03:34:37
1779 ubataecj 555-1 OR 111=(SELECT 111 FROM PG_SLEEP(15))-- 2024-05-01 03:34:37
1778 ubataecj 1*DBMS_PIPE.RECEIVE_MESSAGE(CHR(99)||CHR(99)||CHR(99),15) 2024-05-01 03:34:31
1777 ubataecj 555QUKNVdd1'; waitfor delay '0:0:15' -- 2024-05-01 03:34:31
1776 ubataecj 1rzHOXcbs')) OR 581=(SELECT 581 FROM PG_SLEEP(15))-- 2024-05-01 03:34:24
1775 ubataecj 555-1 waitfor delay '0:0:15' -- 2024-05-01 03:34:23
1774 ubataecj 1mAvn2iD9') OR 84=(SELECT 84 FROM PG_SLEEP(15))-- 2024-05-01 03:34:14
1773 ubataecj 555-1); waitfor delay '0:0:15' -- 2024-05-01 03:34:13
1771 ubataecj 1R3ftLQwD' OR 322=(SELECT 322 FROM PG_SLEEP(15))-- 2024-05-01 03:34:05
1770 ubataecj 555-1; waitfor delay '0:0:15' -- 2024-05-01 03:34:04
1769 ubataecj 1-1)) OR 248=(SELECT 248 FROM PG_SLEEP(15))-- 2024-05-01 03:33:57
1768 ubataecj (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2024-05-01 03:33:56
1767 ubataecj 1-1) OR 159=(SELECT 159 FROM PG_SLEEP(15))-- 2024-05-01 03:33:49
1766 ubataecj 5550"XOR(555*if(now()=sysdate(),sleep(15),0))XOR"Z 2024-05-01 03:33:48
1765 ubataecj 1-1 OR 397=(SELECT 397 FROM PG_SLEEP(15))-- 2024-05-01 03:33:45
1764 ubataecj 5550'XOR(555*if(now()=sysdate(),sleep(15),0))XOR'Z 2024-05-01 03:33:45
1763 ubataecj 1dH3mPeaB'; waitfor delay '0:0:15' -- 2024-05-01 03:33:42
1762 ubataecj 555*if(now()=sysdate(),sleep(15),0) 2024-05-01 03:33:41
1761 ubataecj 1-1 waitfor delay '0:0:15' -- 2024-05-01 03:33:38
1760 ubataecj -1" OR 2+197-197-1=0+0+0+1 -- 2024-05-01 03:33:38
1759 ubataecj -1' OR 2+680-680-1=0+0+0+1 or 'G2tXpr8L'=' 2024-05-01 03:33:37
1758 ubataecj -1' OR 2+692-692-1=0+0+0+1 -- 2024-05-01 03:33:37
1757 ubataecj -1 OR 2+475-475-1=0+0+0+1 2024-05-01 03:33:37
1756 ubataecj -1 OR 2+221-221-1=0+0+0+1 -- 2024-05-01 03:33:37
1755 ubataecj 555 2024-05-01 03:33:37
1754 ubataecj 1-1); waitfor delay '0:0:15' -- 2024-05-01 03:33:34
1753 ubataecj 555 2024-05-01 03:33:30
1752 ubataecj 1-1; waitfor delay '0:0:15' -- 2024-05-01 03:33:08
1751 ubataecj 555 2024-05-01 03:32:50
1750 ubataecj 555 2024-05-01 03:32:50
1749 ubataecj 555 2024-05-01 03:32:50
1748 ubataecj 555 2024-05-01 03:32:50
1747 ubataecj (select(0)from(select(sleep(15)))v)/*'+(select(0)from(select(sleep(15)))v)+'"+(select(0)from(select(sleep(15)))v)+"*/ 2024-05-01 03:32:49
1746 ubataecj 555 2024-05-01 03:32:46
1745 ubataecj 10"XOR(1*if(now()=sysdate(),sleep(15),0))XOR"Z 2024-05-01 03:32:42
1744 ubataecj 555 2024-05-01 03:32:41
1743 ubataecj 10'XOR(1*if(now()=sysdate(),sleep(15),0))XOR'Z 2024-05-01 03:32:38
1742 ubataecj 555 2024-05-01 03:32:37
1741 ubataecj 1*if(now()=sysdate(),sleep(15),0) 2024-05-01 03:32:35
1740 ubataecj 555 2024-05-01 03:32:34
1739 ubataecj -1" OR 2+207-207-1=0+0+0+1 -- 2024-05-01 03:32:31
1738 ubataecj -1' OR 2+214-214-1=0+0+0+1 or 'KPubyBXl'=' 2024-05-01 03:32:31
1737 ubataecj -1' OR 2+920-920-1=0+0+0+1 -- 2024-05-01 03:32:31
1736 ubataecj -1 OR 2+238-238-1=0+0+0+1 2024-05-01 03:32:31
1735 ubataecj -1 OR 2+568-568-1=0+0+0+1 -- 2024-05-01 03:32:31
1734 ubataecj 1 2024-05-01 03:32:30
1733 ubataecj 555 2024-05-01 03:32:29
1732 ubataecj 1 2024-05-01 03:32:26
1731 ubataecj 555 2024-05-01 03:32:25
1730 ubataecj 555 2024-05-01 03:32:16
1729 ubataecj 555 2024-05-01 03:32:12
1728 ubataecj 555 2024-05-01 03:32:08
1727 ubataecj 555 2024-05-01 03:32:02
1726 ubataecj 555 2024-05-01 03:32:02
1725 ubataecj 555 2024-05-01 03:32:02
1724 ubataecj 555 2024-05-01 03:32:02
1723 ubataecj 555 2024-05-01 03:32:02
1722 ubataecj 555 2024-05-01 03:32:02
1721 ubataecj 555 2024-05-01 03:31:58
1720 ubataecj 555 2024-05-01 03:31:52
1719 ubataecj 1 2024-05-01 03:27:58
1718 ubataecj 1 2024-05-01 03:27:58

add comment

Snippet ID: #1010768
Snippet name: EagleDNS for botcompany.de [the real one, #1010768, but currently using domain provider's DNS]
Eternal ID of this version: #1010768/187
Text MD5: 0247381ef2dcd6c7714ffc9fca6c6438
Transpilation MD5: 18b8e2153b81603e063593155ea04514
Author: stefan
Category: javax / dns
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2024-06-16 21:13:51
Source code size: 6393 bytes / 156 lines
Pitched / IR pitched: No / No
Views / Downloads: 3959 / 58014
Version history: 186 change(s)
Referenced in: [show references]