Question

How do I make my domain work?

Posted October 26, 2014 4.2k views

I moved my website hosting to digital ocean. I changed the DNS in godaddy where I registered it and added records in DO control panel. When I ping my website (georgekmeid.com) it resolves to my droplet IP as it should but the browser can’t find my domain. However, when I enter my IP instead of my domain, my website loads successfully.

This is my zone file:

“`$TTL 1800
@ IN SOA NS1.DIGITALOCEAN.COM. hostmaster.georgekmeid.com. (
1414269135 ; last update: 2014-10-25 20:32:15 UTC
3600 ; refresh
900 ; retry
1209600 ; expire
1800 ; ttl
)
IN NS NS1.DIGITALOCEAN.COM.
NS NS2.DIGITALOCEAN.COM.
NS NS3.DIGITALOCEAN.COM.
MX 1 ASPMX.L.GOOGLE.COM.
MX 5 ALT1.ASPMX.L.GOOGLE.COM.
MX 5 ALT2.ASPMX.L.GOOGLE.COM.
MX 10 ASPMX2.GOOGLEMAIL.COM.
MX 10 ASPMX3.GOOGLEMAIL.COM.
@ IN A 178.62.108.107


Please help. Thank you.

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.

×
4 answers

On the surface. there doesn’t seem to be any problem with your Zone records.
You should try opening a ticket for this.

Opening your website georgekmeid.com in a browser redirects to www.georgekmeid.com. That sub domain does not exists.

Create a CNAME record for www and point it to @.

to have cname record for “www” that points to @ you need to remove a A record for “www”.
so A record with domain.com that points to ip address and cname record with www.domain.com that points to a domain.com

I have had the following scenario:

  • No CNAME record.
  • Two A records with example.tld and www.example.tld
  • Two AAAA (IPV6) records with example.tld and www.example.tld
  • /etc/apache2/sites-available/example.tld.conf file had ServerName example.tld

I removed the A and AAAA records with the www.example.tld.
Then added a CNAME with

  • Hostname www.
  • Is An Alias of <^>example.tld Note: dont forget/ignore the period (.) at the end of each field here.

Check https://mxtoolbox.com/SuperTool.aspx for both example.tld and www.example.tld before and after making the changes.

Hopefully it helps.

Submit an Answer