-4

I have a web server at home. I bought a top level domain mydomain.com and I want it to point to my server. I also have a duckdns domain mydomain.duckdns.org. They say in their faq:

Q: I want to use my own Domain name with DuckDNS, can I do this?

A: Yes you can. At your NAME provider set your purchased record as a CNAME to your duckdns.org record. www.ilikeweasels.org CNAME weasels.duckdns.org

But that doesn't seem to do the trick. If there is an A record then it doesn't allow me to setup a CNAME. Then if I delete the A and have the CNAME only, then it I get this:

M-PRIF -E- [mydomain.com] Cannot get domain data (-nameserverIP- -nameservername-)

UPDATE: So I could manage to set it up for www.mydomain.com, but not for mydomain.com.

UPDATE2: I've just read this one Why can't a CNAME record be used at the apex (aka root) of a domain? and It seems I shouldn't create a CNAME record for the root domain. So the question here is whether there is any workaround?

3 Answers3

1

Found a workaround. I left the root A record and created a CNAME for www.mydomain.com. Then with HTTP 301 all requests going to mydomain.com have been redirected to www.mydomain.com which then points to mydomain.duckdns.org and finally my webserver.

0

I had the same issue and would like to leave my solution here for future travelers:

I created two DNS entries. One CNAME that maps all sub domains *.mydomain.com to mydomain.duckdns.org. And one ALIAS that points mydomain.com to mydomain.duckdns.org.

Then on my local server I'm using a reverse proxy to handle some sub domains but that is just optionally.

-1

The physical address is designated by the A record which a CNAME would refer to, so it's strange that you are not able to set up a CNAME.

Are you maybe reversing the order? I.E. putting the CNAME where the original host name should be or vice versa?

EDIT: I just saw your edit, did this solve your issue? Regardless you should most definitely be able to set up a CNAME as you mentioned in your question.

INV3NT3D
  • 103