fix(dns): Use Cloudflare's DNS instead of Google's DNS

This commit is contained in:
TwiN 2022-06-16 20:21:44 -04:00
parent dfcdc57a18
commit 829a9c2679
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@ -33,7 +33,7 @@ func TestEndpoint_Type(t *testing.T) {
want EndpointType want EndpointType
}{{ }{{
fields: fields{ fields: fields{
URL: "8.8.8.8", URL: "1.1.1.1",
DNS: &DNS{ DNS: &DNS{
QueryType: "A", QueryType: "A",
QueryName: "example.com", QueryName: "example.com",
@ -426,7 +426,7 @@ func TestIntegrationEvaluateHealthForDNS(t *testing.T) {
conditionBody := Condition("[BODY] == 93.184.216.34") conditionBody := Condition("[BODY] == 93.184.216.34")
endpoint := Endpoint{ endpoint := Endpoint{
Name: "example", Name: "example",
URL: "8.8.8.8", URL: "1.1.1.1",
DNS: &DNS{ DNS: &DNS{
QueryType: "A", QueryType: "A",
QueryName: "example.com.", QueryName: "example.com.",