domain problem

Discussion in 'Server Operation' started by unkn0wn, Feb 3, 2007.

  1. unkn0wn

    unkn0wn New Member

    Hi,
    i have problem .
    When i type www.mysite.com its all ok but when i type mysite.com
    its redirected to my other site hosted on that server.
    What is a problem?
     
  2. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

  3. unkn0wn

    unkn0wn New Member

    Hmm i dont understand well that.
    Can u explain me what to config in BIND for that?
     
  4. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Sorry, I thought you used ISPConfig.

    If not, you need to make sure in bind both domain.tld and www.domain.tld point to the same IP address. That implies you create a record like:
    Code:
    domain.tld.      A        nn.nn.nn.nn
    Watch the last dot behind the tld. It has to be there.
     
  5. unkn0wn

    unkn0wn New Member

    $TTL 14400
    @ 86400 IN SOA ns2.server.net. www.mysite.net. (
    2006110511
    28800
    7200
    2419200
    86400
    )

    mysite.net. 86400 IN NS ns1.server.net.
    mysite.net. 86400 IN NS ns2.server.net.

    mysite.net. . 14400 IN A 11.11.11.11

    localhost.mysite.net. 14400 IN A 127.0.0.1


    mysite.net. IN MX 10 ns1.server.net.

    ftp 14400 IN A 11.11.11.12
    mail 14400 IN A 11.11.11.11
    www 14400 IN A 11.11.11.12
    web 14400 IN A 11.11.11.12
    ns1 14400 IN A 11.11.11.11
    ns2 14400 IN A 11.11.11.12


    Whats wrong with this?
     
  6. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    Looks different from what I used to do.

    Do you get a valid/expected answer section when you do
    Code:
    dig @ns1.server.net ANY mysite.net
    dig @ns1.server.net ANY www.mysite.net
    BTW: In your 1st post you talk about mysite.com and this config describes mysite.net :confused:
     
  7. unkn0wn

    unkn0wn New Member

    mysite.net and com are just examples not real domain.
    when i dig for www.bloodzero.net it shows correct IN A
    but bloodzero.net dont show IN A record why that?
     
  8. martinfst

    martinfst ISPConfig Developer ISPConfig Developer

    I think you fixed it by now, as using dig on the domains you mention both have valid A records to the same IP.
     

Share This Page