Skip to main content

dns - main ip address reporting ns1.example.com instead of hostname.example.com?

Comments

7 comments

  • cPanelLauren
    So this is all because your PTR record is set to the hostname of the nameserver. If the server you're performing this from is not ns1.example.com I would suggest doing the following: 1. Go to WHM>>Networking setup>>Change Hostname - Ensure it's set to the correct hostname for the server. 2. Update your PTR record which may be something you need t request your hosting provider do for you 3. Update /etc/mailhelo
    - this is done automatically but you can manually update it as well.
    0
  • morrow95
    It looks like that is the reason... not sure how or why this changed though since the migration since ips, hostnames, nameservers are all the same as before. Both jupiter.example.com and ns1.example.com are on the same ip address. The PTR for that ip is ns1.example.com. What would you recommend here? I can add a third ip to this vm so the hostname, ns1, and ns2 would all have their own ip then have the host update the ptr records accordingly, but would be worried about downtime with dns when doing so.
    0
  • cPanelLauren
    I'd recommend the steps I suggested already. It wouldn't be necessary to change the IP as far as I am aware.
    0
  • morrow95
    The hostname and the ns1 are on the same ip address at the moment. The ptr for that ip is currently returning ns1.example.com. If the ptr is changed to the hostname (jupiter.example.com) then it would just be incorrect for the nameserver then. Maybe I have misunderstood these all this time? Does the ptr not need to be correct for nameservers or set to the hostname too for the nameservers?
    0
  • cPanelLauren
    So some clarification for PTR records: A PTR record in almost all cases should resolve back to the hostname of the server. Any IP address you send mail from should have a valid PTR record that resolves to the hostname of the server. Since ns1.domain.tld is not the hostname associated with that IP nor is it likely to send mail, it doesn't make sense for it to have a PTR record. If ns1.domain.tld were the hostname of a server, then I would suggest that it have one, in the event that it may send mail but even then, if it's not sending mail it's not mandatory.
    0
  • morrow95
    hostname is jupiter.example.com ns1.example.com ns2.example.com xxx.xxx.xxx.124 - main shared ip with all accounts including example.com (jupiter.example.com and ns1.example.com) xxx.xxx.xxx.125 - right now the only thing pointing to this is ns2.example.com You are saying both of these IPs should have the PTR record pointing to jupiter.example.com? We do not have any accounts on the .125, but we could in the future... so it should point to the hostname as well?
    0
  • cPanelLauren
    You are saying both of these IPs should have the PTR record pointing to jupiter.example.com? We do not have any accounts on the .125, but we could in the future... so it should point to the hostname as well?

    If you will be sending mail from both IP's then yes.
    0

Please sign in to leave a comment.