Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ the request is also explicitly disabled. This test is run every 30 seconds.

### DNS Test

Test DNS is working by making a HTTP GET request to a [random-number]dns-check.pinging.net.
Caching is explicitly disabled and the random number part of the subdomain prevents common caching
of the DNS lookup. This test is run every 30 seconds.
Test DNS is working by making a HTTP GET request to a `[random-number]dns-check.<this site's
domain>`. Caching is explicitly disabled and the random number part of the subdomain prevents
common caching of the DNS lookup. This test is run every 30 seconds.

### Browser Check

Expand Down
6 changes: 3 additions & 3 deletions frontend/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ <h2 id="dns">DNS Test</h2>
understands (e.g. 192.168.100.100).
</p>
<p>
Test DNS is working by making a HTTP GET request to a [random-number]dns-check.pinging.net.
Caching is explicitly disabled and the random number part of the subdomain prevents common
caching of the DNS lookup. This test is run once when the page is loaded.
Test DNS is working by making a HTTP GET request to a [random-number]dns-check.&lt;this site's
domain&gt;. Caching is explicitly disabled and the random number part of the subdomain prevents
common caching of the DNS lookup. This test is run once when the page is loaded.
</p>

<h2 id="browser">Browser Check</h2>
Expand Down
6 changes: 5 additions & 1 deletion frontend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,11 @@ async function testHttpOrDns(testName: string) {
});
} else {
pong = fetch(
"https://" + randomNumber + "dns-check.pinging.net/api/dns-check",
"https://" +
randomNumber +
"dns-check." +
window.location.hostname +
"/api/dns-check",
{
method: "GET",
cache: "no-store",
Expand Down
Loading