Failed to resolve server-consul-server.default.svc:8301: lookup server-consul-server.default.svc on 10.100.0.10:53: no such host

I am doing helm install on a kubernetes cluster. Everything runs but then the server logs gives this error.
Failed to resolve server-consul-server.default.svc:8301: lookup server-consul-server.default.svc on 10.100.0.10:53: no such host

My values.yaml file

global:
datacenter: dc1
tls:
enabled: true
enableAutoEncrypt: true
acls:
manageSystemACLs: true
gossipEncryption:
secretName: consul-gossip-encryption-key
secretKey: key
server:
exposeService:
enabled: true
type: NodePort
nodePort:
## all are random nodePorts and you can set your own
http: 30010
https: 30011
serf: 30012
rpc: 30013
grpc: 30014
ui:
service:
type: NodePort