Check if your domain correctly resolves and what to do if it doesn't

Here is what to do if you are getting "Domain X cannot be resolved" error. Make sure you check MX type of record, all emails are resolving using MX record as opposed to A type record.