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.

Strange DNS Issues

Discussion in 'Bind / DNS / Nameserver Issues' started by robcyb, Feb 11, 2004.

  1. robcyb

    robcyb Active Member

    Joined:
    Apr 20, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    Hey all,
    Kinda got a problem here with Cpanel :rolleyes:. Basically, when a user goes to a domain of there's, for example:

    http://mail.xrshosting.com

    For some odd and perculiar reason, it loads the domain:

    http://www.xtrememods.com

    This domain, Xtrememods.Com was consequently the first domain to be setup on my server, and whenever a user also goes to:

    http://207.44.208.92

    This also goes to that website. Is there anyway possible to stop this from doing this! My clients are not impressed and have had several complaints over this issue and I need to get it resolved.

    Thanks for your help!
     
  2. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    That's not dns, that's your httpd.conf file. Edit /usr/local/apache/conf/httpd.conf and add a virtualhost entry for your server. Otherwise the very first one listed will be the one that is the default page.

    <VirtualHost server.ip.address>
    BytesLog domlogs/server.domain.com-bytes_log
    ServerName server.domain.com
    DocumentRoot /usr/local/apache/htdocs
    </VirtualHost>
     
  3. robcyb

    robcyb Active Member

    Joined:
    Apr 20, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    I swapped around the first entires in my httpd.conf file last night, to go straight to the companies hosting site.
    However, by adding that entry that you stated below

    If I replace server.domain.com with neo.xrshosting.com will that then just point to let's say, neo.xrshosting.com? (Which is one of the servers names).

    However, this is still not a solution to the problem I have. Clients are wishing to add http://mail.domain.com to access their webmail using that link instead, is this still not possible? Even if I add the above to the httpd.conf file, it will still point to the server neo.xrshosting.com's home directory...

    If you could just tell me how to allow users to access their webmail this way, then it would be greatly appreciated, still keeping the option to access webmail via: http://www.domain.com/webmail

    Thanks in advance!
     
  4. bamasbest

    bamasbest Well-Known Member

    Joined:
    Jan 10, 2004
    Messages:
    531
    Likes Received:
    0
    Trophy Points:
    16
  5. casey

    casey Well-Known Member

    Joined:
    Jan 17, 2003
    Messages:
    2,303
    Likes Received:
    0
    Trophy Points:
    36
    Location:
    If there is trouble, it will find me
    Exactly. The first virtualhost entry will be the site that the main IP points to.

    As far as your subdomain issue goes, mail.domain.com points to the server ip address, because that's the mail server. Your customers should not be upset about that.

    Try using wmail.domain.com or webmail.domain.com instead.
     
Loading...

Share This Page