Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 am using CentOS dedicated server with matrix control panel, which doesn't have facility to change MX record so that I can send my email to google apps mail.

share|improve this question
Is the centOS dedicated server also the DNS server? – sysadmin1138 Oct 26 '10 at 5:27
yes it is a dns server as well – sagarmatha Oct 26 '10 at 5:44

You can hand edit the DNS files to make this change. The main file should be /etc/named.conf. In that will be two lines to pay attention to.

 options {
        directory "/var/named";

This tells you where your DNS zone-file is based in. Then, under the zone directive of your domain should be a line like:

    file "domains/named.local"

That file will be located at "/var/named/domains/named.local". Your location will be different. Open that file.

You should see a line in there for your current MX record.        IN      MX  10

That is what you change to point to GoogleApps. At that point you reload the DNS process. I don't know what the exact CentOS command for this is, but you can do much the same thing by issuing a SIGHUP to the named process.

ps ax |grep namd
 4357 ?        Ss    25:19 /usr/local/sbin/named

kill -HUP 4357

This forces a reload of the domain files.

share|improve this answer

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.