Site Not Working -- When I add www. infront of the domain?

Discussion in 'Site & Server Administration' started by SuryaPuthran, Feb 26, 2007.

  1. #1
    I moved my site to a new server before 15 days....

    Sometimes...

    The site not working when i adding www. in front of the domain...
    www. domain.com - not working
    domain.com - working
    if i use proxy - www. domain.com working

    But after some hours both working without any problem.
    It happends daily from some hours...



    What are the possible reasons for this problem?

    DNS Problem? or Server Problem? or Problem with my ISP?
     
    SuryaPuthran, Feb 26, 2007 IP
  2. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    yes, DNS problem.

    Check your DNS record for your domain. Make sure there is a "www" setup to point to your account as well.
     
    Mxhub, Feb 26, 2007 IP
  3. SuryaPuthran

    SuryaPuthran Guest

    Messages:
    121
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks for your reply....
    I am a noob in server administartion

    Server uses direct admin panel
    There i checked dns settings

    Records are like this

    *.domain.com. A xx.xx.xx.xxx
    domain.com. A xx.xx.xx.xxx
    ftp A xx.xx.xx.xxx
    localhost A 127.0.0.1
    mail A xx.xx.xx.xxx
    pop A xx.xx.xx.xxx
    www A xx.xx.xx.xxx
    domain.com. NS ns1.xx.xx.xxx.server.com.
    domain.com. NS ns2.xx.xx.xxx.server.com.
    mail MX 10
    domain.com. TXT "v=spf1 a mx ip4:xx.xx.xx.xxx ?all"

    If thats a dns problem ... how the sites works good in some countries with www. domain.com
     
    SuryaPuthran, Feb 26, 2007 IP
  4. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #4
    are u from india and do u use airtel ??
     
    koolasia, Feb 26, 2007 IP
  5. SuryaPuthran

    SuryaPuthran Guest

    Messages:
    121
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yep! :confused:
     
    SuryaPuthran, Feb 26, 2007 IP
  6. koolasia

    koolasia Banned

    Messages:
    1,413
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Then its an ISP Problem . Coz Some Of My Frnds Are Facing Such Problems too
     
    koolasia, Feb 26, 2007 IP
  7. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    look correct to me.
    you can pm me and i can test for you on my side if it is really ISP problem.
     
    Mxhub, Feb 26, 2007 IP
  8. AdminZoom

    AdminZoom Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Are you running 2 DNS servers? I have seen the record on one of the two get screwed up - sometimes the control panel doesn't fix it. That can cause intermittent issues like this.
     
    AdminZoom, Feb 26, 2007 IP
  9. tespio

    tespio Peon

    Messages:
    16
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    It looks your DNS is configured to accept hits on wildcards. So doesnt matter if you a request is made to www. or www2. or anythinghere. domain. com it should open. Of course you will need to have the right configuration in apache vhost conf..
    Therefore your apache configuration for the domain should contain these lines:

    ServerName www. domain.com
    ServerAlias *.domain.com

    then it should work.

    Hope it helps you

    P.S. i added space in the Servername directive because the forums wont let me write it correctly assuming i am advertising. :)
     
    tespio, Feb 26, 2007 IP