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.

Cpanel DNS on EC2

Discussion in 'Bind / DNS / Nameserver Issues' started by jamiedolan, Mar 8, 2011.

  1. jamiedolan

    jamiedolan Member

    Joined:
    Jan 18, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Neenah, Wisconsin, United States
    Hello;

    Does anyone have the Cpanel DNS only running on an Amazon Ec2?

    If so, which image did you use to set it up?

    Does amazon still have the NAT issue that causes issues with Cpanel?

    Thanks
    Jamie
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    817
    Likes Received:
    22
    Trophy Points:
    18
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    I've never tried it, but I would think that if you're behind a firewall using NAT, all you need to do is add port redirection for port 2087 so the firewall can route it to the correct internal IP.
     
  3. jamiedolan

    jamiedolan Member

    Joined:
    Jan 18, 2011
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Neenah, Wisconsin, United States
    Hello;

    This is the comment I read about it; It is over 2 years old, so I don't know if it applies anymore:

    "Officially cPanel does not support NAT based networks, which
    is how EC2 is architected.

    However there are workarounds.
    If DNS zones are not set locally there is nothing to do.
    If zones are set locally, you would need to edit the DNZ zone templates in WHM
    and put the external IP address.

    The issue arises, when a sub-domain is created.
    cPanel will automatically insert the external IP in the Apache virtualhost block.
    So you will need to have some sort of cron to check for such and replace
    the external IP with the internal IP if found in httpd.conf"

    That was from this thread: https://forums.aws.amazon.com/message.jspa?messageID=94972

    That sounded like a bit more modification that I really wanted to deal with, I didn't know if the problem still applied now though.

    The other option I'm thinking of, is my VPS provider offers slave name servers. So I think if I just setup my cpanel box as a master, and theirs as slaves, then I can use their name servers as primary.

    Thanks

    Jamie
     
Loading...

Share This Page