Results 1 to 10 of 10
  1. #1

    Question Changing MX entry

    Hi,

    Need some help

    I'm hosting a website on my server, but the customer wants to manage their own mail server. So they provided me with an IP address. So I tried to change the mx entry through Cpanel to that IP address. It did not work. Later I found out that I would need to have a name rather than IP. But how do I do that?

    Also, I've read you can change the mx entry using the original registrar like NetworkSolutions using advanced DNS entry. The question is where do I change it: in CPanel or using the NetworkSolutions advanced DNS ?

    Thanks in advanced.

  2. #2
    Join Date
    Jun 2006
    Posts
    35
    If your domain is domain.com and IP of email server is IP:

    1. define new A host in DNS:

    smtp.domain.com with IP

    2. delete all MX hosts

    3. create new MX host for domain.com to point to smtp.domain.com

    Good luck.
    www.n3v.net provides affordable system administration and support to companies and individuals with dedicated and colocated servers

  3. #3
    Also make sure to add the domain in /etc/remotedomains. Then remove the domain from localdomains manually or run /scripts/mailperm

  4. #4
    thanks for your replys, do I need to change anything with NetworkSolutions where that domain name is registered?

  5. #5
    no need to change this with your registrar, just need to add these two zone entries with your nameservers(through cpanel)

    custom.domainname.com IN A x.x.x.x
    domainname.com. IN MX 10 custom.domainname.com

    NOTE: Remove all mx entries and also remove the domain entry from your mailserver as the mails will try to delivery local mailbox.
    Live Your DreamZ
    ~Besty

  6. #6

  7. #7
    another question, after doing this, do i have to wait until the the DNS propagates or does it work right away?

    Thanks

  8. #8
    Join Date
    May 2002
    Location
    Kingston, Ontario
    Posts
    1,573
    If you change a DNS zone there will be some propagation time.
    Upload Guardian 2 - Malicious Upload Scanner - Windows and Linux!
    Instantly scan uploaded files
    Get notified when released

  9. #9
    /\ thanks,

    now when I go look at the mx entry (using mxtoolbox.com) for the domain: domain.com and i wanted let say xxx.xxx.xxx.xxx to be the new ip

    i get
    Host Name: xxx.xxx.xxx.xxx.domain.com
    IP Address 0.0.0.0
    TTL 14400


    that host name and ip do not look right. or maybe i should just wait maybe it has not progiated yet. any ideas.

  10. #10
    Join Date
    Dec 2005
    Posts
    368
    When making DNS changes you can always use the "dig" command line tool (part of the BIND package) to query a nameserver directly. This will ensure that you are not seeing the results of caching and so there is no propagation delay.

    So if your nameserver is ns1.mydomain.com, and your client's domain (the one you're switching mx entry for) is clientdomain.com, type the following in the Linux shell:

    Code:
    dig @ns1.mydomain.com clientdomain.com mx
    This means you want to look up the "mx" type record (must be lowercase). You should get a reply that looks something like this:

    ;; QUESTION SECTION:
    ;clientdomain.com. IN MX

    ;; ANSWER SECTION:
    clientdomain.com. 86400 IN MX 10 smtp.clientdomain.com.

    ;; AUTHORITY SECTION:
    clientdomain.com. 86400 IN NS ns1.mydomain.com.

    ;; ADDITIONAL SECTION:
    smtp.clientdomain.com. 86400 IN A 1.2.3.4
    ns1.thetahost.com. 86400 IN A 5.6.7.8

    The "QUESTION SECTION" simply indicates the query you were making. You want to know the MX record for clientdomain.com.

    The "ANSWER SECTION" is the answer to your query. The DNS server has replied that smtp.clientdomain.com is the MX host for that domain. The "10" (may be some other number) is the priority for that MX server (since there can be more than one for redundancy).

    The "AUTHORITY SECTION" means that ns1.mydomain.com is indicating that it is the authority for that domain and not simply relaying that information from somewhere else.

    The "ADDITIONAL SECTION" provides IP addresses for the hosts in the other sections. Here you can see that smtp.clientdomain.com has an IP address of 1.2.3.4.

    If you don't get a result back from the dig request (in which case the QUESTION section is there but not the others), or your results don't match, there is still something wrong with your config.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •