소스 검색

Added to Categories

h345983745 6 년 전
부모
커밋
3e9c75f735
2개의 변경된 파일7개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 0
      src/core/config/Categories.json
  2. 6 2
      src/core/operations/DNSOverHTTPS.mjs

+ 1 - 0
src/core/config/Categories.json

@@ -155,6 +155,7 @@
         "name": "Networking",
         "ops": [
             "HTTP request",
+            "DNS over HTTPS",
             "Strip HTTP headers",
             "Dechunk HTTP response",
             "Parse User Agent",

+ 6 - 2
src/core/operations/DNSOverHTTPS.mjs

@@ -18,9 +18,13 @@ class HTTPSOverDNS extends Operation {
     constructor() {
         super();
 
-        this.name = "DNS Over HTTPS";
+        this.name = "DNS over HTTPS";
         this.module = "Code";
-        this.description = "Calls out to HTTPS Over DNS Resolvers";
+        this.description = ["Takes a single domain name and performs a DNS lookup using DNS vver HTTPS.",
+        "<br><br>",
+        "By default, <a href='https://developers.cloudflare.com/1.1.1.1/dns-over-https/'>Cloudflare</a> and <a href='https://developers.google.com/speed/public-dns/docs/dns-over-https'>Google</a> DNS over HTTPS services are supported.",
+        "<br><br>",
+        "Can be used with any service that supports the GET paramaters <code>name</code> and <code>type</code>."].join('\n');
         this.infoURL = "https://en.wikipedia.org/wiki/DNS_over_HTTPS";
         this.inputType = "string";
         this.outputType = "JSON";