it won't let me add domain name

Posted July 18, 2016 5.6k views

Digital Ocean doesn’t have any restriction on domain name, right? I redirected my domain name from Bluehost to digital ocean 4 hours ago. When i tried to add domain to my droplet, it always gave this error message saying: Name only valid hostname characters are allowed.(a-z, A-Z, 0-9, ., _and - ) Or a single record of “@”. My domain name is I don’t think it is abnormal. Can someone help me here? Thanks.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers

I assume you’re trying to create a domain record, and point it at your droplet. You have to do this on the networking tab, not on the droplets page; that’s how you change the hostname. Check out this tutorial on how to do that.

that was the instruction i was following. I finished step 1 and 2, and i double checked with my domain name company Namecheap that my setting was correct. Then step 3 just won’t go through. However, I never tested step 2. Do i just enter WHOIS into my CMD windows command line tool? It says it couldn’t recognize WHOIS as a command. Not sure what to do now. Please advise. Thanks.

  • No, run that command on your droplet.

  • You’re rather vague about step 3. Step 2 just verifies that you correctly configure your nameservers to point to Digital Ocean.

    • It’s possible that you might have copied and pasted your domain name in and some empty space was included in the copy/pasting. You have probably resolved this by now but I’m writing this in case anyone else runs into this error. I just did. I deleted the empty space and the issue was resolved.