Skip to content

No name resolution at advertise parameter #1185

@andienase

Description

@andienase

I understand the problem with the private addresses for the bind parameter so I start the consul agent with the -bind paramter but with this I get an error for the advertise address

-> consul agent -node consul-s1-bind consul-s1 -config-file /home/consul/cfg/consul.cfg
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting raft data migration...
==> Starting Consul agent...
==> Error starting agent: Failed to start Consul server: Failed to start lan serf: Failed to parse advertise address!

The documentation says:
-advertise - The advertise address is used to change the address that we advertise to other nodes in the cluster. By default, the -bind address is advertised.

So ok I tried to tell him the same address as the bind address but it still not working:

-> consul agent -node consul-s1 -bind consul-s1 -advertise consul-s1 -config-file /home/consul/cfg/consul.cfg
==> WARNING: It is highly recommended to set GOMAXPROCS higher than 1
==> Starting raft data migration...
==> Starting Consul agent...
==> Error starting agent: Failed to parse advertise address: consul-s1

The name consul-s1 is resolved via LDAP and is pingable on the os (Linux/SLES 11). The node only starts when I commit the ip address to the advertise parameter.

-> consul agent -node consul-s1 -bind consul-s1 -advertise -config-file /home/consul/cfg/consul.cfg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions