Your own domain & website & Cloudflare

Hi I have had a domain name for years and a website, I now moved over to Cloudflare for Remote HA Access (Instead opf Duckdns). using the good youtube video https://www.youtube.com/watch?v=xXAwT9N-7Hw&t=331s

But now cant now access my website, anyway around this?

Regards Dave

Is your website local or remote?
Do you have DNS records for it?

Hi thanks for the response.
Its remote, hosted by Fasthosts, not sure about DNS records, looking at my control panel I can create a sub domain.
Under DNS on the control panel I had to change them to Cloudflare.

You p obqbly need a CNAME or A record in your DNS pointing to your web server.

You said you moved over from cloudflare but mention fasthosts…so what are you using now and where is your domain registered now?

The instruction you showed is showing Cloudflare Tunnel (also see here https://www.youtube.com/watch?v=jsXHwsjZRbM) so it is a bit different to your duckdns approach which resembles more of a “classic” approach of port forwarding etc like here: https://www.youtube.com/watch?v=GarMdDTAZJo

Basically you need to choose either tunnel or port forwarded access.
I will not explain it but I will show you how my records look like on my portforwarded approach:

  1. Make sure the domain is transferred in Cloudflare and listed in Account Home. Choose the respective Domain (if you have only one, choose that one - if you have none you are doing something absolutely wrong)

  2. Make sure your DNS-Recods are working.
    Protip: remove proxy-status so you can ping your domain.com and make sure that it is pointing to the right IP-Adress of your server. If the IP-ADress is not right, your server does not change the A-Record. In my case my NginxProxyManager Addon does change the Record for me (IIRC) with a DNS-Challenge

Thanks for the reply, my domain name and website is hosted by fasthosts.

I am using cloudflare as a remote connection to my HA, I have found DuckDNS to be unreliable at times.

In the comments in the youtube video I followed someone said you cant have a website on the same domain name, someone replied “Oh Yes You can” but did not say how.

Its all working (HA that is) but l have lost access to my website.

So cloudflare tunnel cannot be used and the Instruction you initially referred to is totally useless.

Since you are using another registrar you need to find a way to update your records from time to time because your ISP changes them (unless you have special confitions which noone has normally). Read the docs of your registrar.

You mentioned that you were using Duckdns: how did you „update“ your Ip-records? Did you use the Add-On?

  1. If you ping your-domain.com…. do you get the external IP it should have? If not: does it have an ip adress and if not: what error do you get?
  2. Referencing to 3: Do you even have any entries for your-domain.com at all?

if not: thats the reason why you cannot enter your website and create any and read on how to do because thats basically what you need to do. Do the basics on how to host and report back.
5. Do you use NginxProxyManager? If yes look up if your registrar is listed for a DNS-Challenge
If no: find a legit way to update it or go to if yes:

Make a subdomain like ha.yourdomain.com and use thatr for HA, than your can access your normal website and HA with ha.yourdomain.com.
That is the way I do it.

1 Like

Yes you can.
Dns records :
www.your.domain points to fasthosts
homeassistant.your.domain points to your local external ip.

In your router, you forward the ip to your home assistant (not advised) or to a reverse proxy (advised)

I use the Linux.io swag container as reverse proxy, but there are other possibilities.

I have added a sub domain name but Cloudflare does not accept sub domain names in the setup

Did you add the url in the Cloudflared add ons?

How are you trying to add it?

Log into Cloudflare, choose your domain, select DNS, add the subdomain and point it to your IP address.

It does work.

they do accept.

traccar.domain.com works flawlessly.