Last active
August 29, 2019 19:50
-
-
Save dentarg/ffec851598406611cd3f8c377c3957f6 to your computer and use it in GitHub Desktop.
Cloudflare worker fetch("https://1.1.1.1/dns-query?name=1.1.1.1.in-addr.arpa&type=PTR&ct=application/dns-json")
This file contains 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
<html> | |
<head> | |
<title>Error communicating with origin</title> | |
<link rel="stylesheet" id="cf_styles-css" href="https://cloudflareworkers.com/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" /> | |
<style type="text/css">body{margin:0;padding:0}</style> | |
</head> | |
<body> | |
<div id="cf-wrapper"> | |
<div id="cf-error-details" class="cf-error-details-wrapper"> | |
<div class="cf-wrapper cf-header cf-error-overview"> | |
<h1> | |
<span class="cf-error-type" data-translate="error">Uh oh...</span> | |
</h1> | |
<h2 class="cf-subheadline" data-translate="error_desc">Error communicating with origin server 1.1.1.1</h2> | |
</div> | |
<section></section><!-- spacer --> | |
<div class="cf-section cf-wrapper"> | |
<h2 data-translate="what_happened">Details</h2> | |
<p><code style="font-family:monospace">TLS peer's certificate is not trusted; reason = Hostname mismatch</code></p> | |
</div> | |
<div class="cf-error-footer cf-wrapper"> | |
<p> | |
<span class="cf-footer-item"><span data-translate="performance_security_by">Performance & security by</span> <a href="https://www.cloudflare.com" target="_blank">Cloudflare</a></span> | |
</p> | |
</div><!-- /.error-footer --> | |
</div> | |
</div> | |
</body> | |
</html> |
This file contains 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
let response = await fetch("https://1.1.1.1/dns-query?name=1.1.1.1.in-addr.arpa&type=PTR&ct=application/dns-json") | |
Response { type: "cors", url: "https://1.1.1.1/dns-query?name=1.1.1.1.in-addr.arpa&type=PTR&ct=application/dns-json", redirected: false, status: 200, ok: true, statusText: "OK", headers: Headers, body: ReadableStream, bodyUsed: false } | |
let body = await response.text() | |
"{\"Status\": 0,\"TC\": false,\"RD\": true, \"RA\": true, \"AD\": false,\"CD\": false,\"Question\":[{\"name\": \"1.1.1.1.in-addr.arpa.\", \"type\": 12}],\"Answer\":[{\"name\": \"1.1.1.1.in-addr.arpa.\", \"type\": 12, \"TTL\": 32, \"data\": \"one.one.one.one.\"}]}" |
This file contains 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
# from the Response object | |
status: 502 | |
statusText: "Bad Gateway" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment