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
  • @AndrewB And what would you recommend? – fishmong3r May 17 '16 at 19:28
  • Just a note on terminology: mydomain.com is not a top-level domain (com, on the other hand, is an example of a tld). Also the root domain sounds like it refers to the actual root (aka .), particularly written with definite article like that. – Håkan Lindqvist May 17 '16 at 21:26

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.

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.

  • No, I'm still unable to get mydomain.com to point to my server. – fishmong3r May 17 '16 at 19:05
  • Best of luck, my apologies for jumping in without much of answer. Here are some links I found. Here and here – INV3NT3D May 17 '16 at 19:12

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.