I run www.bavaerials.de and wanted to use Cloudflare. I set the account up, switched Nameservers with my hoster and after two hours I now get 404 Not found for my domain. I had some strange DNS Records from the scanner. I’ve tried with some minimum settings but no luck. Somehow email does work for the domain.
Your www hostname is still pointing directly to your webserver, so provided you imported the correct data from the old DNS server, nothing has really changed.
The domain root is still your origin (I’ve obscured the IP address) $dig +short bavaerials.de 81.xxx.yyy.zzz
You should compare the DNS records from your old provider with the account you created on Cloudflare. If the site worked on the same IP before you changed your nameservers then something else has changed.
(As I was looking at this I think you clicked the Orange cloud button, but I was getting 404 from the Strato IP address also).
The problem is I can’t access my old DNS settings as these were deactivated as I switched Nameservers. The scanner imported many Records which I don’t understand and don’t know if I need them.
These are my current settings:
;; MX Records
bavaerials.de. 300 IN MX 5 smtpin.rzone.de.
*.bavaerials.de. 300 IN MX 5 smtpin.rzone.de.
;; TXT Records
_domainkey.bavaerials.de. 300 IN TXT "o=~\; t=y\; [email protected]"
;; SRV Records (Service locator)
_autodiscover._tcp.bavaerials.de. 300 IN SRV 0 100 443 autoconfigure.strato.de.
;; CNAME Records
k1._domainkey.bavaerials.de. 300 IN CNAME dkim.mcsv.net.
autoconfig.bavaerials.de. 300 IN CNAME autoconfigure.strato.de.
www.bavaerials.de. 300 IN CNAME bavaerials.de.
;; A Records (IPv4 addresses)
wp.bavaerials.de. 300 IN A 81.xxx.yyy.zzz
bavaerials.de. 300 IN A 81.xxx.yyy.zzz
;; AAAA Records (IPv6 addresses)
bavaerials.de. 300 IN AAAA 2a01:aaa:bbb:ccc:ddd
Do you recall your old NS records? I think the welcome email from CF has them, or get them from the API. It would be worth double checking that the basic records match, and they may still be available directly from the old NS.
Your origin returns nothing, so something up with there.
$ curl -I -H "Host: bavaerials.de" http://81.xxx.yyy.zzz/ HTTP/1.1 404 Not Found
Your web server (Nginx) is returning the 404 and nothing is wrong with DNS. This is probably a server side issue. What if you disable CF (gray cloud) without touching your server?
I think the issue is that I’m on a shared hoster with many other sites. I believe the requests get routetd through CF Nameservers and come back to my hoster from a different IP. That’s why I get the 404 as CF apperently doesn’t send host-header with the request. I called my hoster but they are all clueless and say I’m the first who wants to use this service.
You didn’t mention where that entry is and I assumed it was the old DNS entry since at the time autodiscover.tcp.bavaerials.de points nowhere.
BTW the two DNS entries show your case is not a regular website and may need access to special ports.
Sorry if I didn’t make myself clear there. The post above with the records is what the DNS Scanner found and what I had set initially on CF. Unfortunately, these settings don’t work. Right now I’m stuck with no idea on how to get it working. I’m on a shared hoster with not much knowledge of DNS. Would have loved to use CF but now I think I have to revert my Nameservers back to standard as my site has been offline for more than 24 Hours. I called my hoster and they were absolutely not cooperative in this. All they said was that by using different nameservers I gave all control away. What a bummer…
Wait… something has happened. My site is now available. I did revert the changes by my hoster back to the standard nameservers and hour ago but I’m not sure if what I see now is via CF or my Server.
Thank you so much for your help guys! To be honest I have no idea what I did to make it work. I will investigate this further and let you know if I find the reason. Thanks again!