Using PTR for rDNS

Discussion in 'Installation/Configuration' started by badmonkey, Nov 13, 2017.

  1. badmonkey

    badmonkey New Member

    The background: there are a couple of domains registered with GoDaddy, and hosted on a Linux server with someone else. It is a fully unmanaged box to which I have full control. The host setup PTR for the box.

    The question: can anyone help guide me through filling in the information necessary for reverse DNS to work so our emails don't hit the spam folder? I have no clue how to set this up. Thanks for your time!
     
  2. Taleman

    Taleman Member HowtoForge Supporter

    Ask that host to setup PTR to point to mail.somedomain.tld. Then use that host for sending mail.
     
  3. badmonkey

    badmonkey New Member

    Don't I need to set something up for DNS?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    In most cases, the PTR is managed by the provider that hosts the server. Ask their support to setup the rdns record for the IP address.
     
  5. badmonkey

    badmonkey New Member


    Shouldn't an A record, or some DNS information referencing the PTR be entered into the ISPConfig control panel as well as the GoDaddy CP?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

  7. badmonkey

    badmonkey New Member

    Thanks for the help guys. Finally figured it out. For anyone as confused about it as I...lol....

    in SSH, get your PTR record using
    Code:
    dig -x xx.yy.zz.aa
    Should look something like aa.zz.yy.xx.in-addr.arpa.

    Hostname can be retrieved on the command line using the command hostname

    Then in ISPConfig > DNS > Records > PTR

    In the Name box add:
    Code:
    aa.zz.yy.xx.in-addr.arpa.
    In the Canonical Hostname box paste the hostname from command line. Most people know it of course, but it's an easy way to do it. Don't forget to add a "." after it. Save.
     
    ahrasis likes this.
  8. Taleman

    Taleman Member HowtoForge Supporter

    Does that solve Your original problem:
    I thought You need to have PTR record point to the e-mail server hostname, so other servers checking can see IP-number resolving back to the hostname claiming to be the sender. Or is the mail server hostname aa.zz.yy.xx.in-addr.arpa.?
     
  9. badmonkey

    badmonkey New Member

    If someone said what I did is incorrect, well, I certainly can't argue it. lol. However, testing with 4 different online tools, they all state rDNS is working. Perhaps all by accident? :D

    If there's a better way let's explore it! It's good having the correct info out there for others as well. At least for me, it needs to be spelled out with specifics. This is all new and confusing. o_O
     
    ahrasis likes this.

Share This Page