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