How To Properly Setup and Configure Godaddy DNS Settings

If you buy domains through Godaddy, but host the website and mail somewhere else, chances are you had to edit your DNS settings.

Up until a few weeks ago I had been doing it wrong.  It was working, for the most part, but some things like reverse dns lookups would fail, and strange errors would sometimes crop up.

When you buy your domain through Godaddy, find your way into Total DNS Control.  You will see a page similar to this:

Scary, that’s for sure.

Now, before we can edit this, you need to know where your website is going to be hosted.  So if you are hosting at for example, you would sign up with them and they would give you the IP Address to use for your site.

Armed with that IP Address, you can start editing your DNS Record.  Keep in mind that this is not gospel – your mileage may vary.  This works for me everytime when I point to a website I am setting up in CPanel and also need to manage the mail.  If you want your mail through Godaddy, then you do not want to make these changes.

  1. Switch to advanced mode so that you can edit more than one line at a time.
  2. Change the @ A(Host) @ record to your new IP.
  3. Delete every CNAME except for www and ftp
  4. Add the mail A(Host) Record for mail pointing to the same new ip.
  5. Delete the MX record with Priority 0.
  6. Change the priority 10 record to mail.YOU-DOMAIN-NAME.COM
  7. Add new SPF record and follow the following prompts
    1. Choose “an ISP or other mail provider”
    2. inbound tab: all inbound servers may send mail
    3. outbound tab: all addresses in A records
    4. PTR tab: include PTR
    5. The resultant line should look like “v=spf1 a mx ptr ~all”

Your DNS should now look like this: