Learn about Centmin Mod LEMP Stack today
Register Now

IPV6 on Sub Domain

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Megaplex21, Sep 28, 2016.

  1. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    ok, i will ask them first

     
  2. SeaTea

    SeaTea Member

    49
    13
    8
    Feb 20, 2015
    the Netherlands
    Ratings:
    +28
    Local Time:
    4:26 PM
    Nginx:1.11
    MariaDB-10
    hmm, I can ping your server via ipv6 from my server, so DNS seems to work. (i have no ipv6 at home so cannot check it via browser)
    Code (Text):
    [root@dev ~]# ping6 player.bioskopbokep.com
    PING player.bioskopbokep.com(2400:6180:0:d0::1001:9001) 56 data bytes
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=1 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=2 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=3 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=4 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=5 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=6 ttl=57 time=190 ms
    64 bytes from 2400:6180:0:d0::1001:9001: icmp_seq=7 ttl=57 time=190 ms
    ^C
    --- player.bioskopbokep.com ping statistics ---
    7 packets transmitted, 7 received, 0% packet loss, time 6007ms
    rtt min/avg/max/mdev = 190.134/190.238/190.339/0.242 ms
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    then probably those online ipv6 test sites are incorrect or not testing properly :)
     
  4. SeaTea

    SeaTea Member

    49
    13
    8
    Feb 20, 2015
    the Netherlands
    Ratings:
    +28
    Local Time:
    4:26 PM
    Nginx:1.11
    MariaDB-10
    tested with 'lynx' browser from CLI on my server shows a working nginx server:
    Code (Text):
     Welcome to player.bioskopbokep.com. This index.html page can be removed.
    
       Useful Centmin Mod info and links to bookmark.
         * Getting Started Guide - http://centminmod.com/getstarted.html
         * Latest Centmin Mod version - http://centminmod.com
         * Centmin Mod FAQ - http://centminmod.com/faq.html
         * Change Log - http://centminmod.com/changelog.html
         * Google+ Page latest news http://centminmod.com/gpage
         * Centmin Mod Community Forum https://community.centminmod.com/
         * Centmin Mod Twitter https://twitter.com/centminmod
         * Centmin Mod Facebook Page https://www.facebook.com/centminmodcom
    
       Cheap VPS Hosting at Digitalocean
    
    
    
     
  5. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1

    wow.. am i must have ipv6 network to connect to domain with ipv6? i ask namecheap and digital ocean like eva say before. and they both say they nameserver support ipv6. this make me more confuse.
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    you're ISP needs to have IPv6 support if you yourself want to connect to site via IPv6. But the issue you have is your DNS nameservers aren't responding with IPv6 from those test sites. You can test in SSH via dig

    Code (Text):
    dig AAAA player.bioskopbokep.com @ns1.digitalocean.com +short
    2400:6180:0:d0::1001:9001
     
  7. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    i try to pointing AAAA record to domain, and its working. so i assume nothings wrong from nameserver from namecheap or digital ocean. they both support ipv6 like they said. i just can't figure out why i can't connect ipv6 with subdomain
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    dig output above proves subdomain can be served over IPv6 as long as your ISP supports clients side IPv6
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  10. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    yeah.. but i dont know why my domain can use ipv6 and my subdomain can't. if nameserver from isp not support ipv6, i think i can't access my domain too. but its not. i can access domain with ipv6, but not for subdomain
     
  11. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    yup, DO nameserver work but only for domain, not for subdomain. even the result said working but still can't access in browser
     
  12. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    tried different browser or incognito private session ? could be due to incorrect usage of
    Code (Text):
    return 301 $scheme://trial.example.com$request_uri;
    

    301 are permanently cached in browser, so you need to clear your browser cache and reboot computer
     
  13. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  14. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    i remove this code
    Code:
    return 301 $scheme://trial.example.com$request_uri;
    from vhost subdomain. and i already test in incognito mode, different browser but still can't access. i curious about 'lynx' browser why SeaTea can access my subdomain with 'lynx' browser
     
  15. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    need to clear browser cache and reboot pc too
     
  16. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    already do that, but still can't access. are this code
    Code:
    location ~ (?:^|/)\. {
    deny all;
    } 
    mean something? i don't find that code in vhost domain.

    now i tried pointing A record for subdomain. so both domain and subdomain have A and AAAA record. let's see if i can access later.
     
  17. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    can be removed it prevents access to .file or .folders and already has a same rule in drop.conf include file in each vhost
     
  18. Megaplex21

    Megaplex21 New Member

    29
    2
    3
    Sep 28, 2016
    Ratings:
    +2
    Local Time:
    9:26 PM
    1.10.1
    finally, i can access my subdomain now. my conclusion about this, we can't access subdomain with ipv6 only. we must connect both ipv4 and ipv6 to make this work. what i do on this case is make A record and AAAA record to subdomain. and case closed. thx all for your help, especially for eva2000
     
  19. eva2000

    eva2000 Administrator Staff Member

    58,909
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    12:26 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah you'd want ipv4 + ipv6 as not many clients side have ipv6 so you'd be restricting traffic to your site anyway
     
  20. SeaTea

    SeaTea Member

    49
    13
    8
    Feb 20, 2015
    the Netherlands
    Ratings:
    +28
    Local Time:
    4:26 PM
    Nginx:1.11
    MariaDB-10
    Sure you can use a website with ipv6 only, I showed you yesterday that your website was fully visible. But the client should use IPv6 too. As I understand you do not have ipv6 working at your client computer, so that means you cannot reach the website. This would only work if your ISP 'translates' ipv4 <> ipv6.

    So for the moment (next 25 years or so, until ipv4 is phased-out) you need to have your website reachable via ipv4 and ipv6 to be sure that people without ipv6 can reach your website.