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.

help plz... I can't see my server & virtual domains on Internet... only locally...

Discussion in 'General Discussion' started by HaWkItO, Mar 6, 2005.

  1. HaWkItO

    HaWkItO Registered

    Joined:
    Nov 2, 2003
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hello everybody!
    My problem is this:

    1) I have a cPanel server connected to Internet,
    the public IP of te connection is: 213.XXX.XXX.XXX
    and the private IP of the server en LAN is: 192.168.0.100

    2) The server is connected throught a router with the IP 192.168.0.102
    configured as DMZ to redirect all traffic to the server in 192.168.0.100

    3) I have a MYDOMAIN.COM registered with two child name with the public IP of the server:
    NS1.MYDOMAIN.COM 213.XXX.XXX.XXX
    NS2.MYDOMAIN.COM 213.XXX.XXX.XXX

    4) The DNS configuration of main domain is:
    ------------------------------------------------------------------------------------------------
    Code:
    ; Modified by Web Host Manager
    ; Zone File for mydomain.com
    @       14440   IN      SOA     ns1.mydomain.com.     root.pserver1.mydomain.com.   (
                                            1033045233
                                            28800
                                            7200
                                            3600000
                                            86400
                                            )
    
    mydomain.com. 14400   IN      NS      ns1.mydomain.com.
    mydomain.com. 14400   IN      NS      ns2.mydomain.com.
    mydomain.com. 14400   IN      A       192.168.0.100
    
    localhost.mydomain.com.       14400   IN      A       127.0.0.1
    
    pserver1        14400   IN      A       192.168.0.100
    servidor        14400   IN      A       192.168.0.100
    ns1     14400   IN      A       192.168.0.100
    ns2     14400   IN      A       192.168.0.100
    ------------------------------------------------------------------------------------------------


    *) The problem is that when I try resolve the hostnames on Internet
    I obtain the private IP instead of the public IP.
    For example, if I make a NSLOOKUP to MYDOMAIN.COM or to PSERVER1.MYDOMAIN.COM this returns the IP 192.168.0.100
    If I make a NSLOOKUP to other virtual domain on the server this return the 192.168.0.100 IP too.
    If I make a PING, the domains are resolved always to 192.168.0.100.
    The two only requests tha is resoved fine are the nameservers that is resolved fine because
    the associated public IP 213.XXX.XXX.XXX is in the registry. :mad:

    I tried also to change the namesververs IP to the public IP in the configuration of the zone file of mydomain.com as:
    Code:
    ns1     14400   IN      A       213.XXX.XXX.XXX
    ns2     14400   IN      A       213.XXX.XXX.XXX
    But I obtained the same result. :(

    Definitively, what I have to put in my configuration zone file?
    Is correct create 2 child nameservers in the registry pointing to my public IP?
    Or
    The nameserves in resgistry should be pointing to an 3th party external nameserver (i.e. my Registrar nameserver) in

    which there are two A records pointing to NS1.MYDOMAIN.COM and NS2.MYDOMAIN.COM asociated with my public IP?

    Can somebody help me? :confused:

    Thanks in advance. ;)


    Note: I tried to put in the bind configuration the public IP 213.XXX.XXX.XXX for pserver1.mydomain.com or for any other virtual domain i.e. www.myvirtualdomain1.com and then this domains are resolved to the public IP. But it is not a solution because the ip of the virtual domains should be the main shared IP (192.168.0.100) and on Internet the cPanel Server should resolve that to the public IP (213.XXX.XXX.XXX).
     
    #1 HaWkItO, Mar 6, 2005
    Last edited: Mar 6, 2005
Loading...

Share This Page