dial tcp: lookup identity.api.rackspacecloud.com: no DNS servers
bobemoe opened this issue · 1 comments
I'm trying to install the api binay follow this: https://developer.rackspace.com/docs/rack-cli/
I have downloaded the binary, chmod u+x
"./rack configure" worked ok, I entered my username api key and region (LON)
when I run "./rack servers instance list" I get
error Post https://identity.api.rackspacecloud.com/v2.0/tokens: dial tcp: lookup identity.api.rackspacecloud.com: no DNS servers
I have found a similar issue here:
https://linuxconfig.org/docker-dial-tcp-lookup-index-docker-io-no-such-host-fix
and managed to get "rack" to work by adding the following to /etc/hosts
166.78.226.217 identity.api.rackspacecloud.com
37.188.100.146 lon.servers.api.rackspacecloud.com
as i am going to be using the api in automation i would rather not hard code IP addresses into the system, so would still like to resolve this but not sure what to try next?
rack version 1.2
commit: 09c14b0
Hmm, I'd thought all regions could use that single endpoint now. Does it work for you if you set RS_AUTH_URL=https://lon.identity.api.rackspacecloud.com/v2.0/
?