Configure dns names in place of IP

Hi,
i have small doubt regarding configurations in config,json.
can we put DNS names in place of ip address in
“bind_addr” and “retry_join” fields?
e.g
“node_name”: “user@client1”,
“bind_addr”: " 10.10.10.10",
“data_dir”: “…/data”,
“server”: true,
“ports”: {
“server”: 8300,
“serf_lan”: 8301,


},
in bind address above can i configure host name ?
like myhost.mydomain.com
or it strictly has to be an IP address?
i am using consul 1.6

No, for bind_addr you must use an IP address, not a hostname. For retry_join , you can use hostnames or DNS names.