Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Nameserver setup questions

Discussion in 'Bind/DNS/Nameserver' started by brand_land, Mar 18, 2019.

Tags:
  1. brand_land

    brand_land Active Member

    Joined:
    Oct 18, 2018
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Saudi Arabia
    cPanel Access Level:
    Reseller Owner
    Hello
    I have a VPS, when I create accounts, I edit the dns zones to ns1.domainname.com and ns2.domainname.com.
    what I want to know is do I have to use a different number every time I create a new domain as in ns3, ns4 etc or is it okay to use the same ns1 and ns2 for all accounts ?
    I add A records, are there any important records that I should add ?
    Thank you
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. brand_land

    brand_land Active Member

    Joined:
    Oct 18, 2018
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Saudi Arabia
    cPanel Access Level:
    Reseller Owner
    Hello and thank you for your reply,
    I've checked the link that you gave me, but that means the DNS for each website will be the ones that I chose for my VPS right ? won't that cause a problem for email and SSL ? considering that the records don't match the domain name ?

    The IP address that I have to use, I found 2 IP addresses, one in the server manage tab in godaddy and another one in the IP addresses in WHMm which one should I use ?

    Another question, I followed all the instructions and I set up my server nameservers to ns1.mychosenname.com and ns2, when I add host names of the new account, they are added by ns1 and ns2 and the ip address but not the VPS nameservers, instead they are added as ns1.accountname.com and ns2.accountname.com
    is that okay ?
     
    #3 brand_land, Mar 20, 2019
    Last edited: Mar 20, 2019
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    No, the name servers assigned to a domain in it's DNS zone or at it's registrar do not have to match the domain name itself. The key is for the name servers assigned to the domain at it's domain registrar to match the name servers utilized in it's DNS zone on the cPanel & WHM server.

    You can use any IP address assigned to the cPanel & WHM server. NS1 and NS2 can share the same IP address, or you can use a different IP address for NS1 and NS2. One way to confirm an IP address is associated with your cPanel & WHM server is to enter it in your web browser with port 2087 and confirm access to WHM succeeds (e.g. https://IPHERE:2087).

    Are you creating accounts as "root" or are you logged into WHM as a reseller username?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. brand_land

    brand_land Active Member

    Joined:
    Oct 18, 2018
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Saudi Arabia
    cPanel Access Level:
    Reseller Owner
    Thank you again for your reply.
    I found out that I used the correct IP address, and the names That I'm talking about are in the domain dns management of the new account which propagate to my VPS name servers which means everything is correct as I believe, now I've faced another problem with SPF and DKIM, the SPF record in the new account cpanel states the other IP address that I found in the IP addresses in WHM.
    I followed everything correctly, why is SPF and DKIM incorrect ?
     
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Do you see errors reported in the cPanel >> Email Deliverability interface for this account, or are you asking why it's showing an IP address that doesn't match your name server IP addresses?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. brand_land

    brand_land Active Member

    Joined:
    Oct 18, 2018
    Messages:
    39
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Saudi Arabia
    cPanel Access Level:
    Reseller Owner
    No there are no errors, I ran an MX lookup tool and it showed these errors:

    Screenshot (115).png

    DO I tried to go to the account Cpanel and check everything and when I saw the SPF record, the other IP address was in the record.
    Some accounts experienced some emails not being delivered and no mail delivery email is returned.
    Thank you
     
  8. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,529
    Likes Received:
    2,181
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    It's by-design the SPF record makes use of the IP address associated with the account as opposed to the IP address utilized for your name servers. This is normal and should not result in any issues with remote mail servers detecting a valid SPF record.

    The only MXToolBox warning you posted that is likely to result in deliverability issues is the lack of a RDNS record. You can contact your hosting provider to request they set up PTR records for your server's main IP address pointing to your server's hostname.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice