chore: Replace 1.1.1.1 by 8.8.8.8 everywhere due to 1.1.1.1 being unreliable

This commit is contained in:
TwiN 2022-11-15 21:48:14 -05:00
parent f37a0ef2d7
commit eb4e22e76b
7 changed files with 7 additions and 7 deletions

View File

@ -26,7 +26,7 @@ endpoints:
- "[STATUS] == 200" - "[STATUS] == 200"
- name: example-dns-query - 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 interval: 5m
dns: dns:
query-name: "example.com" query-name: "example.com"

View File

@ -26,7 +26,7 @@ endpoints:
- "[STATUS] == 200" - "[STATUS] == 200"
- name: example-dns-query - 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 interval: 5m
dns: dns:
query-name: "example.com" query-name: "example.com"

View File

@ -338,7 +338,7 @@ endpoints:
- name: with-custom-dns-resolver - name: with-custom-dns-resolver
url: "https://your.health.api/health" url: "https://your.health.api/health"
client: client:
dns-resolver: "tcp://1.1.1.1:53" dns-resolver: "tcp://8.8.8.8:53"
conditions: conditions:
- "[STATUS] == 200" - "[STATUS] == 200"
``` ```

View File

@ -49,7 +49,7 @@ type Config struct {
Timeout time.Duration `yaml:"timeout"` Timeout time.Duration `yaml:"timeout"`
// DNSResolver override for the HTTP client // 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"` DNSResolver string `yaml:"dns-resolver,omitempty"`
// OAuth2Config is the OAuth2 configuration used for the client. // OAuth2Config is the OAuth2 configuration used for the client.

View File

@ -31,7 +31,7 @@ endpoints:
- "[STATUS] == 200" - "[STATUS] == 200"
- name: example-dns-query - 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 interval: 5m
dns: dns:
query-name: "example.com" query-name: "example.com"

View File

@ -263,7 +263,7 @@ func TestEndpoint_Type(t *testing.T) {
}{ }{
{ {
args: args{ args: args{
URL: "1.1.1.1", URL: "8.8.8.8",
DNS: &DNS{ DNS: &DNS{
QueryType: "A", QueryType: "A",
QueryName: "example.com", QueryName: "example.com",

View File

@ -75,7 +75,7 @@ gatus_results_total{group="http-ep-group",key="http-ep-group_http-ep-name",name=
if err != nil { if err != nil {
t.Errorf("Expected no errors but got: %v", err) 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", QueryType: "A",
QueryName: "example.com.", QueryName: "example.com.",
}} }}