Instruct consul to disable automatic checking for updates.

I am using Consul inside an isolated network, so it cannot connect to the world.

$ journalctl -u consul -f
Jul 17 18:55:15 jammy consul[3363]: 2022-07-17T18:55:15.044Z [ERROR] agent: Failed to check for updates: error="Get "": dial tcp: lookup on [::1]:53: read udp [::1]:35291->[::1]:53: read: connection refused"

Define disable_update_check option to disable automatic checking for updates.

$ echo disable_update_check = true  | sudo tee /etc/consul.d/disable_update_check.hcl
disable_update_check = true

Validate config.

$ sudo -u consul consul validate /etc/consul.d
skipping file /etc/consul.d/consul.env, extension must be .hcl or .json, or config format must be set
bootstrap = true: do not enable unless necessary
Configuration is valid!

Restart service.

$ sudo systemctl restart consul

This option can be defined for Consul and Nomad.