Results 1 to 9 of 9

Thread: domain problem

  1. #1
    Join Date
    Feb 2006
    Posts
    58

    domain problem

    I changed my nameservers 2 days ago and see this strange problem.

    When I type in "mydomain.com" it changes to "mydomain.com.com" and goes to some search portal.

    But type in "www.mydomain.com" it show my web content fine.

    What is the problem?

  2. #2
    Join Date
    Jun 2006
    Location
    Ahh' UnderPants
    Posts
    1,012
    see in the /var/named/yourdoma.com.db file, there must be mistyping.



  3. #3
    Join Date
    Feb 2006
    Posts
    58
    the file look the same with other domain's file except for the domain name itself ..

  4. #4
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    40
    is www a cname of yourdomain.com? it doesn't look so. don't forget the trailing dots

    Code:
    %domain%. IN A %ip%
    
    localhost.%domain%. IN A 127.0.0.1
    
    mail IN CNAME %domain%.
    www IN CNAME %domain%.
    ftp IN CNAME %domain%.

  5. #5
    Join Date
    Jul 2009
    Posts
    55
    Quote Originally Posted by alamperti View Post
    is www a cname of yourdomain.com? it doesn't look so. don't forget the trailing dots

    Code:
    %domain%. IN A %ip%
    
    localhost.%domain%. IN A 127.0.0.1
    
    mail IN CNAME %domain%.
    www IN CNAME %domain%.
    ftp IN CNAME %domain%.
    www is indeed a cname. The A record may be screwed up. Look at your full DNS record or PM me the domain.

  6. #6
    Join Date
    Feb 2006
    Posts
    58
    Ok. I don't what the problem but please help.

    Domain:
    niebom.com = goes to search portal
    www.niebom.com = correct content

    The DNS Zone was created by directadmin

    $TTL 14400
    @ IN SOA ns1.vietproxy.com. hostmaster.niebom.com. (
    2009071803
    14400
    3600
    1209600
    86400 )

    niebom.com. 14400 IN NS ns1.vietproxy.com.
    niebom.com. 14400 IN NS ns2.vietproxy.com.

    ftp 14400 IN A 66.232.117.36
    localhost 14400 IN A 127.0.0.1
    mail 14400 IN A 66.232.117.36
    niebom.com. 14400 IN A 66.232.117.36
    pop 14400 IN A 66.232.117.36
    smtp 14400 IN A 66.232.117.36
    www 14400 IN A 66.232.117.36

    niebom.com. 14400 IN MX 10 mail



    niebom.com. 14400 IN TXT "v=spf1 a mx ip4:66.232.117.33 ~all"

  7. #7
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    40
    The zone records are correct are resolved ok, here.

    Code:
    [[email protected] ~]$ dig niebom.com a
    
    ; <<>> DiG 9.3.1 <<>> niebom.com a
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60654
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;niebom.com.                    IN      A
    
    ;; ANSWER SECTION:
    niebom.com.             14303   IN      A       66.232.117.36
    
    ;; Query time: 0 msec
    ;; SERVER: 192.168.2.5#53(192.168.2.5)
    ;; WHEN: Mon Jul 20 15:23:27 2009
    ;; MSG SIZE  rcvd: 44
    Your problem is replicated, your webserver is redirecting to the search portal. I would check the .htaccess file, now.

    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www.niebom.com$
    RewriteRule ^.*$ "http\:\/\/niebom\.com" [R=301,L]

  8. #8
    Join Date
    Feb 2006
    Posts
    58
    that was weird, the same code in .htaccess work with other domains ..

    Your code work. Thanks

  9. #9
    Join Date
    Jul 2009
    Location
    Italy
    Posts
    40

Similar Threads

  1. Domain Forwarding problem big problem indeed
    By mrmbdctg in forum Domain Names
    Replies: 4
    Last Post: 06-25-2009, 11:49 PM
  2. Domain Problem , Hosting Problem or Security Problem?
    By xoleno in forum Hosting Security and Technology
    Replies: 0
    Last Post: 03-31-2008, 05:41 AM
  3. Hosting problem or Domain problem ?
    By sweb in forum Running a Web Hosting Business
    Replies: 3
    Last Post: 01-12-2008, 05:20 PM
  4. Problem: Account's domain names redirect on the root domain name
    By ultra2006 in forum Hosting Security and Technology
    Replies: 3
    Last Post: 04-27-2006, 09:20 AM
  5. CPANEL problem? Add-on domain redirecting to main domain
    By CasinoHype in forum Hosting Security and Technology
    Replies: 6
    Last Post: 10-22-2005, 07:07 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •