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.

NAT and DNS problems

Discussion in 'Bind / DNS / Nameserver Issues' started by muriel6060, Feb 25, 2016.

  1. muriel6060

    muriel6060 Registered

    Joined:
    Feb 25, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Our first problem was creating a new Domain, when created, the DNS was pointed to the NAT and not to the Public IP address.

    So, we had to substitute the private IP for the Public IP in Cpanel in the Zone File.

    However, after we changed this configuration at /etc/wwwacct.conf adding 'ADDR - serverIP', everything goes okay, but now when we create a new domain, our Apache starts to point to the external IP address at httpd.conf, therefore, we have to change the file and fix the IP pointing to the internal IP address every time a new domain is created.

    Is anyone having the same problem?
     
  2. muriel6060

    muriel6060 Registered

    Joined:
    Feb 25, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Yes it is enabled and we follow that documentation.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Feel free to open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
  4. muriel6060

    muriel6060 Registered

    Joined:
    Feb 25, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    @cPanelMichael Hello, I'm facing problems with NAT IP.
    After created an account, it shows the NAT IP for that account, with is correct, but when I check the DNS for the same account, it shows the same NAT IP, where it should be my external IP, how can I fix that?
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you have a corresponding public IP address associated with the private IP address in the /var/cpanel/cpnat file? You can read the contents of this file with a command such as:

    Code:
    cat /var/cpanel/cpnat
    Thank you.
     
  6. muriel6060

    muriel6060 Registered

    Joined:
    Feb 25, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Brazil
    cPanel Access Level:
    Root Administrator
    Yes, in this file appears my internal 10.0.2.20 and my external IP 52.67.x.x
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

    Thank you.
     
Loading...

Share This Page