rackspace / rack

A CLI for Rackspace (unmaintained)
Other
81 stars 57 forks source link

dial tcp: lookup identity.api.rackspacecloud.com: no DNS servers #455

Open bobemoe opened 7 years ago

bobemoe commented 7 years ago

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: 09c14b061f4a115c8f1ff07ae6be96d9b11e08df

jrperritt commented 7 years ago

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/?