The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Adding a second A record

Discussion in 'General Discussion' started by pjman, Aug 30, 2007.

  1. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New York
    I'm trying to get my DNS in order for maximum email delivery. One of the problems I'm having is that my mail server hostname differs in IP from the domain I am trying to send from.

    So I added a second A record in mail server's DNS for the domain's IP. I pass DNSREPORT.com now hands down, but I received this email after running UPCP.

    IMPORTANT: Do not ignore this email.
    The hostname (host.name.com) resolves to 12.34.567.890. It should resolve to 12.34.567.889. Please be sure to correct /etc/hosts as well as the 'A' entry in zone file for the domain.

    Some are all of these problems can be caused by
    /etc/resolv.conf being setup incorrectly. Please check this file if you
    believe everything else is correct.

    I sure this is a common issue, but can't find anything in the forums when searching. Is it safe to ignore that email?
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    cPanel requires that the server Hostname should be pointing to the server's main IP that is assigned to eth0 or eth1 in some cases. You should check that what is the main Ip of your server and then add the Hostname A entry pointing to that main IP and this email will be stopped.
     
  3. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New York
    I have two A records.

    I have it pointing to the IP of the hostname and and a second A record pointing to the domain I send high volume email from. IS it safe to leave that second record in there, is my question?
     
  4. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    I am not able to understand. Can you post the /var/named/domain.com.db file in which you have added the A records?
     
  5. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New York
    Here's my zone.

    Here is the zone 'A' entires for my mail server:

    ;; ANSWER SECTION:

    host.server.com. 14400 IN A 12.34.185.228
    host.server.com. 14400 IN A 12.34.185.233



    IP: 12.34.185.228 Is the IP of mail server

    IP: 12.34.185.233 is the IP of the domain I send high volume mails from.


    Thanks for your help!
     
  6. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    There is no need at all for two A records. You only need one A record for host.server.com pointing to the MAIN IP of your server. Email always goes from the server main IP.
     
  7. pjman

    pjman Well-Known Member

    Joined:
    Mar 22, 2003
    Messages:
    101
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    New York
    Thanks.

    Thank you for the input, I will make the adjustment.
     
Loading...

Share This Page