Skip to content

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

Description

@bobemoe

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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