From 829a9c26799a946b8788bf76497cf26c6b1dc2a8 Mon Sep 17 00:00:00 2001 From: TwiN Date: Thu, 16 Jun 2022 20:21:44 -0400 Subject: [PATCH] fix(dns): Use Cloudflare's DNS instead of Google's DNS --- .examples/docker-compose-postgres-storage/config/config.yaml | 2 +- .examples/docker-compose-sqlite-storage/config/config.yaml | 2 +- config.yaml | 2 +- core/endpoint_test.go | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.examples/docker-compose-postgres-storage/config/config.yaml b/.examples/docker-compose-postgres-storage/config/config.yaml index de783853..8ddf08d5 100644 --- a/.examples/docker-compose-postgres-storage/config/config.yaml +++ b/.examples/docker-compose-postgres-storage/config/config.yaml @@ -26,7 +26,7 @@ endpoints: - "[STATUS] == 200" - name: example-dns-query - url: "8.8.8.8" # Address of the DNS server to use + url: "1.1.1.1" # Address of the DNS server to use interval: 5m dns: query-name: "example.com" diff --git a/.examples/docker-compose-sqlite-storage/config/config.yaml b/.examples/docker-compose-sqlite-storage/config/config.yaml index b455c218..5f4af247 100644 --- a/.examples/docker-compose-sqlite-storage/config/config.yaml +++ b/.examples/docker-compose-sqlite-storage/config/config.yaml @@ -26,7 +26,7 @@ endpoints: - "[STATUS] == 200" - name: example-dns-query - url: "8.8.8.8" # Address of the DNS server to use + url: "1.1.1.1" # Address of the DNS server to use interval: 5m dns: query-name: "example.com" diff --git a/config.yaml b/config.yaml index 75e9126c..fec86f17 100644 --- a/config.yaml +++ b/config.yaml @@ -31,7 +31,7 @@ endpoints: - "[STATUS] == 200" - name: example-dns-query - url: "8.8.8.8" # Address of the DNS server to use + url: "1.1.1.1" # Address of the DNS server to use interval: 5m dns: query-name: "example.com" diff --git a/core/endpoint_test.go b/core/endpoint_test.go index 93c0df6b..68faa9c7 100644 --- a/core/endpoint_test.go +++ b/core/endpoint_test.go @@ -33,7 +33,7 @@ func TestEndpoint_Type(t *testing.T) { want EndpointType }{{ fields: fields{ - URL: "8.8.8.8", + URL: "1.1.1.1", DNS: &DNS{ QueryType: "A", QueryName: "example.com", @@ -426,7 +426,7 @@ func TestIntegrationEvaluateHealthForDNS(t *testing.T) { conditionBody := Condition("[BODY] == 93.184.216.34") endpoint := Endpoint{ Name: "example", - URL: "8.8.8.8", + URL: "1.1.1.1", DNS: &DNS{ QueryType: "A", QueryName: "example.com.",