question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DNS A record not working as expected

See original GitHub issue

Hoping someone can help me out! Have tried ZEIT’s Twitter support but they were not able to help 😞

I have a domain registered with Now - tread.fyi. There is a static website hosted at the root of this domain https://tread.fyi/. And I have a Node.js server running in a DigitalOcean droplet.

I want to route requests for https://realtime.tread.fyi/ to the DO droplet. I have added an A record to Now’s DNS records, which can be verified here. But pinging the URL shows the requests are routed to alias.now.co instead of the droplet’s IP address.

→ ping https://realtime.tread.fyi
PING alias.zeit.co (3.9.28.56): 56 data bytes
Request timeout for icmp_seq 0

I’m guessing that the default CNAME/ALIAS records on Now’s DNS are intercepting the requests to my subdomain. Here are the DNS records:

         ALIAS http://alias.zeit.co.
*        CNAME http://alias.zeit.co.
realtime A     157.245.38.176

How can I solve this so that the subdomain correctly points to the droplet’s IP?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
jgillichcommented, Jan 25, 2020

I had the same issue because I did this: now dns add foo.com sub.foo.com A 1.2.3.4

It works if I do: now dns add foo.com sub A 1.2.3.4

(Don’t include the main domain in the subdomain or you will end up with sub.foo.com.foo.com)

1reaction
mcsdevvcommented, Apr 6, 2020

Closing this as both @jgillich and @RodolfoSilva have pointed out the correct answer and resources to answer this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DNS A record not working as expected · Issue #3052 - GitHub
I have added an A record to Now's DNS records, which can be verified here. But pinging the URL shows the requests are...
Read more >
Why do I receive the error "DNS records are not set up ...
The error DNS records are not set up correctly appears when Zendesk is unable to verify your DNS records. This is often caused...
Read more >
Find and fix issues after adding your domain or DNS records
Learn to track down any problems you run into while setting up a custom domain by making sure the DNS records are set...
Read more >
Troubleshooting Record Resolution Issues - DNSimple Help
Troubleshooting Record Resolution Issues. The following is checklist of common issues to help you if a record isn't resolving correctly.
Read more >
Troubleshoot issues with DNS record resolution for public ...
Check for record caching issues​​ If the domain isn't resolving to the expected IP address, the DNS resolver might have cached the value....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found