-1

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.

2
  • Is the centOS dedicated server also the DNS server?
    – sysadmin1138
    Oct 26, 2010 at 5:27
  • yes it is a dns server as well
    – sagarmatha
    Oct 26, 2010 at 5:44

1 Answer 1

2

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.

example.com.        IN      MX  10   mail.example.com.

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .