diff --git a/core/dns.go b/core/dns.go index 6c07ce73..444c8558 100644 --- a/core/dns.go +++ b/core/dns.go @@ -10,7 +10,7 @@ import ( var ( // ErrDNSWithNoQueryName is the error with which gatus will panic if a dns is configured without query name - ErrDNSWithNoQueryName = errors.New("you must specify query name for DNS") + ErrDNSWithNoQueryName = errors.New("you must specify a query name for DNS") // ErrDNSWithInvalidQueryType is the error with which gatus will panic if a dns is configured with invalid query type ErrDNSWithInvalidQueryType = errors.New("invalid query type") ) @@ -30,7 +30,6 @@ func (d *DNS) validateAndSetDefault() { if len(d.QueryName) == 0 { panic(ErrDNSWithNoQueryName) } - if !strings.HasSuffix(d.QueryName, ".") { d.QueryName += "." }