Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using a Hostgator VPS running CentOS 5. I only have shell access (no control panel).

I'm supposed to change my MX records and add a CNAME record for verification. What should I do? I know it would have been really easy through some kind of a control panel but I really haven't been provided one. Thanks in advance.

Edit: first: then, edit /var/named/ to add the proper MX records. kthxbai

share|improve this question

Normally you talk with your DNS provider and insert those into their records. If you don't have one then you'd have to edit the files for your DNS daemon, but I strongly suspect that you're not running your own DNS server.

share|improve this answer
Yup, running my own DNS server. I got BIND installed and I've had to configure it to map my domain name to my IP following a tut that laid out the details. I was hoping there would be something similar for Google mail. Thanks. – user41010 May 10 '10 at 20:10
There isn't anything special you need to do for Google Mail versus other services. Just add a MX record and a CNAME record and increment the serial. – Ignacio Vazquez-Abrams May 10 '10 at 20:50
Don't forget the little things, like SPF. – John Gardeniers May 10 '10 at 21:40
Have you read Google Apps help on the topic? It is pretty straight-forward. – tomjedrz May 10 '10 at 21:42
Thanks, but how to do it through shell? Sorry if this is a noob question. – user41010 May 11 '10 at 14:32

Gmail has nothing to do with your VPS. All you have to do is modify the DNS entries for your domain name.

You necessarily have a control panel to do such thing.

share|improve this answer
I really don't have a control panel, one that would let me graphically change the DNS settings. I need to do it through shell. How should I go about doing that? – user41010 May 10 '10 at 20:11
Go with Ignacio's advice and setup your MX records. – Antoine Benkemoun May 10 '10 at 21:12
How do I do it in shell? Thanks. – user41010 May 11 '10 at 17:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.