Report this

What is the reason for this report?

Cannot connect managed Redis via redli - no such host

Posted on October 24, 2019

I’ve tried to create multiple managed redis databases in multiple regions. All have the same issue.

I’m using redli, the recommended CLI for redis.

Whenever I try the connection string as provided in “Connection details - flags”, I keep seeing the following error

2019/10/24 15:17:15 Dial dial tcp: lookup db-redis-nyc1-xxxxxxxx.db.ondigitalocean.com: no such host

If do nslookup to the database host, it always returns no records. In fact if I do nslookup db.ondigitalocean.com, it returns

Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
*** Can't find db.ondigitalocean.com: No answer

Any ideas? Seems like for some reason I can’t get any DNS records connecting the DB host to the server.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have just created a managed MySQL cluster and have the same problem. DNS is not working for both public and private db hostnames.

It has magically started working now

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.