Name not resolved without www

What is the name of the domain?

domain.com

What is the issue you’re encountering

Domain failing to redirect without www

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

Setting up site for the first time. But this isn’t a propagation issue - we’ve had the domain set up for weeks and just haven’t gotten around to getting everything fixed and ready. The site sits in an AWS S3 bucket and is entirely static. DNS is hosted on a Cloudflare professional account.

Objective is to have all visitors to the site who just put in “domain.com” instead of “www.domain.com” to be redirected to the latter.

Visits to www.domain.com → works fine
Visits to domain.com → fails to redirect with an “ERR_NAME_NOT_RESOLVED” error.

Currently have a single redirect rule setup:

  • Custom filter expression
    Field: hostname
    Operator: does not equal
    Value: www.domain.com
    Then…
    Type: static
    URL: www.domain.com
    Status code: 301

Place at First

Make sure you have a proxied DNS record for the apex domain (@). Use proxied AAAA 100:: as you are just redirecting.

Otherwise, if you can give the domain name and show a screenshot of the redirect rule it is easier to check.

1 Like

qubrium.com

Proxy appears to be on.

I have also tried changing the DNS Name field from www.qubrium.com to *

If I do that, it still doesn’t work but it’s a different error – too many redirects. And it looks like it is trying to redirect to https://qubrium.com/www.qubrium.com. And also when I do that, going to www.qubrium.com doesn’t work - it tries to send it to qubrium.com without the www

You don’t have a DNS record for your apex domain. Only for www.

Create a DNS record for your apex domain as described above in the previous reply.

Then, in your redirect rule, the target URL should start with the https://

1 Like

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