From eb4e22e76b55107b285692829561eba5a8fe9d7e Mon Sep 17 00:00:00 2001 From: TwiN Date: Tue, 15 Nov 2022 21:48:14 -0500 Subject: [PATCH] chore: Replace 1.1.1.1 by 8.8.8.8 everywhere due to 1.1.1.1 being unreliable --- .examples/docker-compose-postgres-storage/config/config.yaml | 2 +- .examples/docker-compose-sqlite-storage/config/config.yaml | 2 +- README.md | 2 +- client/config.go | 2 +- config.yaml | 2 +- core/endpoint_test.go | 2 +- metrics/metrics_test.go | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.examples/docker-compose-postgres-storage/config/config.yaml b/.examples/docker-compose-postgres-storage/config/config.yaml index 8ddf08d5..de783853 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: "1.1.1.1" # Address of the DNS server to use + url: "8.8.8.8" # 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 5f4af247..b455c218 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: "1.1.1.1" # Address of the DNS server to use + url: "8.8.8.8" # Address of the DNS server to use interval: 5m dns: query-name: "example.com" diff --git a/README.md b/README.md index ffa65da5..ea06eb96 100644 --- a/README.md +++ b/README.md @@ -338,7 +338,7 @@ endpoints: - name: with-custom-dns-resolver url: "https://your.health.api/health" client: - dns-resolver: "tcp://1.1.1.1:53" + dns-resolver: "tcp://8.8.8.8:53" conditions: - "[STATUS] == 200" ``` diff --git a/client/config.go b/client/config.go index 6fb407de..25682f6a 100644 --- a/client/config.go +++ b/client/config.go @@ -49,7 +49,7 @@ type Config struct { Timeout time.Duration `yaml:"timeout"` // DNSResolver override for the HTTP client - // Expected format is {protocol}://{host}:{port}, e.g. tcp://1.1.1.1:53 + // Expected format is {protocol}://{host}:{port}, e.g. tcp://8.8.8.8:53 DNSResolver string `yaml:"dns-resolver,omitempty"` // OAuth2Config is the OAuth2 configuration used for the client. diff --git a/config.yaml b/config.yaml index 342af993..ee49818f 100644 --- a/config.yaml +++ b/config.yaml @@ -31,7 +31,7 @@ endpoints: - "[STATUS] == 200" - name: example-dns-query - url: "1.1.1.1" # Address of the DNS server to use + url: "8.8.8.8" # 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 c323283b..2bb827de 100644 --- a/core/endpoint_test.go +++ b/core/endpoint_test.go @@ -263,7 +263,7 @@ func TestEndpoint_Type(t *testing.T) { }{ { args: args{ - URL: "1.1.1.1", + URL: "8.8.8.8", DNS: &DNS{ QueryType: "A", QueryName: "example.com", diff --git a/metrics/metrics_test.go b/metrics/metrics_test.go index 937244f6..c5818f53 100644 --- a/metrics/metrics_test.go +++ b/metrics/metrics_test.go @@ -75,7 +75,7 @@ gatus_results_total{group="http-ep-group",key="http-ep-group_http-ep-name",name= if err != nil { t.Errorf("Expected no errors but got: %v", err) } - dnsEndpoint := &core.Endpoint{Name: "dns-ep-name", Group: "dns-ep-group", URL: "1.1.1.1", DNS: &core.DNS{ + dnsEndpoint := &core.Endpoint{Name: "dns-ep-name", Group: "dns-ep-group", URL: "8.8.8.8", DNS: &core.DNS{ QueryType: "A", QueryName: "example.com.", }}