Advertisement
Neki_play

DNSDataBase

Jul 26th, 2021 (edited)
439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.96 KB | None | 0 0
  1. //using ClearCore.Optimize.DNS;
  2.  
  3. MCC.LoadPlugin(new DBSDataBaseUpdater());
  4.  
  5. //Script Extensions
  6.  
  7. public class DBSDataBaseUpdater: Plugin
  8. {
  9.     public void GetDataBase()
  10.     {
  11.         PluginPostObject(new DNSSettings("1.1.1.1", "CloundFlare"));
  12.         PluginPostObject(new DNSSettings("8.8.8.8", "Google Public DNS"));
  13.         PluginPostObject(new DNSSettings("9.9.9.9", "Quad9 DNS"));
  14.         PluginPostObject(new DNSSettings("8.26.56.26", "Comodo Secure DNS"));
  15.         PluginPostObject(new DNSSettings("77.88.8.8", "Yandex"));
  16.         PluginPostObject(new DNSSettings("208.67.222.222", "OpenDNS"));
  17.         PluginPostObject("LoadDone");
  18.     }
  19.     public override void Initialize()
  20.     {
  21.         GetDataBase();
  22.     }
  23.     public override void ReceivedObject(object s)
  24.     {
  25.         if (s.GetType() == typeof(string))
  26.         {
  27.             string text = (string)s;
  28.             if (text == "GetDataBase")
  29.             {
  30.                 GetDataBase();
  31.             }
  32.         }
  33.     }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement