Issues Using CNAME

What is the name of the domain?

mock.biz

What is the issue you’re encountering

I’m having issues accessing CNAME record via name. When I try to access via the IP address directly, it connects, but via the domain name the page fails to load.

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

I’m having issues accessing CNAME record via name. When I try to access via the IP address directly, it connects, but via the domain name the page fails to load.

I don’t know where CNAME comes in here given you also mentioned being able to access the site via IP address… but I’m seeing a redirect loop (ERR_TOO_MANY_REDIRECTS) which is usually caused by incorrect Cloudflare SSL/TLS setting.

Change your Cloudflare SSL/TLS configuration to Full (Strict) and let’s see if this fixes the problem. If this ends up giving you a Cloudflare error page, change this setting to Full instead.

Standing by for feedback.

I tried Full and Full (Strict) but still didn’t load via subdomain / name. Left it on “Full”. Any other suggestions to try?

What is the specific subdomain in question? You didn’t mentioned this… so I assumed and checked at the apex and www, both of which now work.

1 Like

Domain is home.mock.biz, pointing to a Tailscale node. I can connect directly via the IP address, but once I use the subdomain, it doesn’t connect.

Oh, so now there’s Tailscale – which you never mentioned earlier :smiley:

You mentioned CNAME 3x in your original post, but I can see you only have an A record for home.mock.biz pointed at 100.116.33.115.

Note that the Tailscale IP address 100.116.33.115 only works in the Tailscale network and is not routable over the global internet. So you can’t just point a (sub)domain to it and have it working.

I don’t know what steps you’ve taken up to this point, but to use your custom domain for your Tailnet securely (without port forwarding and whatnot), you’re going to have to configure a reverse proxy… and CNAME your custom (sub)domain to the fully-qualified domain of your Tailscale device.

The first 8 minutes of this official Tailscale video walks you through the steps, using Caddy as a reverse proxy and Cloudflare DNS:

2 Likes

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.