Want to subscribe to topics you're interested in?
Become a Member

DNS My site is down - DNS A & AAAA records

Discussion in 'Domains, DNS, Email & SSL Certificates' started by CarpCharacin, Nov 10, 2016.

Tags:
  1. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    utahfishkeepers.us and www version of the domain need AAAA DNS records

     
  2. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    But does the hostname subdomain?
     
  3. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    I added an AAAA record for www, but when I tried to go to my site it said too many redirects.
     
  4. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    not needed
     
  5. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    I removed the www record because it caused the site to go down. It said too many redirects.
     
  6. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  7. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    I am using CloudFlare for the DNS.
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    yeah contact Cloudflare for support :)

    AAAA record should be immediate propagated with cloudflare
     
  9. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    repost the contents of /usr/local/nginx/conf/conf.d/newdomain.com.conf and if applicable /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf wrapped in CODE tags (outlined at How to use forum BBCODE code tags)
     
  10. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    How do I get to that? With FileZilla?
     
  11. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    SSH use cat command to output contents of a file
    Code (Text):
    cat /usr/local/nginx/conf/conf.d/newdomain.com.conf

    Code (Text):
    cat /usr/local/nginx/conf/conf.d/newdomain.com.ssl.conf

    then highlight output for copy and paste
     
  12. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    here it is
    Code:
    # Centmin Mod Getting Started Guide
    # must read http://centminmod.com/getstarted.html
    
    # redirect from non-www to www
    # uncomment, save file and restart Nginx to enable
    # if unsure use return 302 before using return 301
    server {
                listen   80;
                listen [2600:3c01::f03c:91ff:fe2c:f69e]:80;
                server_name utahfishkeepers.us;
                return 301 $scheme://www.utahfishkeepers.us$request_uri;
           }
    
    server {
    
      server_name utahfishkeepers.us www.utahfishkeepers.us;
    
    # ngx_pagespeed & ngx_pagespeed handler
    #include /usr/local/nginx/conf/pagespeed.conf;
    #include /usr/local/nginx/conf/pagespeedhandler.conf;
    #include /usr/local/nginx/conf/pagespeedstatslog.conf;
    
      #add_header X-Content-Type-Options "nosniff" always;
      #add_header X-Xss-Protection "1; mode=block" always;
      #add_header X-Content-Type-Options "nosniff" always;
    
      # limit_conn limit_per_ip 16;
      # ssi  on;
    
      access_log /home/nginx/domains/utahfishkeepers.us/log/access.log main_ext buffer=256k flush=60m;
      error_log /home/nginx/domains/utahfishkeepers.us/log/error.log;
    
      include /usr/local/nginx/conf/autoprotect/utahfishkeepers.us/autoprotect-utahfishkeepers.us.conf;
      root /home/nginx/domains/utahfishkeepers.us/public;
      # uncomment cloudflare.conf include if using cloudflare for
      # server and/or vhost site
      #include /usr/local/nginx/conf/cloudflare.conf;
      include /usr/local/nginx/conf/503include-main.conf;
    
      # prevent access to ./directories and files
      #location ~ (?:^|/)\. {
      # deny all;
      #}
    
        location /webmail {
    #    auth_basic                      "Restricted Access";
    #    auth_basic_user_file             /usr/local/nginx/pass/my_pass;
        root /usr/share/;
        include /usr/local/nginx/conf/staticfiles.conf;
        include /usr/local/nginx/conf/php.conf;
    #       include /usr/local/nginx/conf/drop.conf;
    #       include /usr/local/nginx/conf/errorpage.conf;
        }
    
        location / {
      include /usr/local/nginx/conf/503include-only.conf;
    
        try_files $uri $uri/ /index.php?&$args;
    
        location /internal_data/ {
        internal;
        allow 127.0.0.1;
        deny all;
        }
    
        location /library/ {
        internal;
        allow 127.0.0.1;
        deny all;
        }
    
        location ~* \.(3gp|js|woff|woff2|ttf|eot|svg|gif|jpg|jpeg|png|ico|wmv|avi|asf|asx|mpg|mpeg|mp4|pls|mp3|mid|wav|swf|flv|exe|zip|tar|rar|gz|tgz|bz2|uha|7z|doc|docx|xls|xlsx|pdf|iso)$ {
        gzip_static off;
    #       dd_header Pragma public;
        add_header Cache-Control "public, must-revalidate, proxy-revalidate";
        access_log off;
        expires 30d;
    #       break;
        }
    
        location ~ \.(ttf|svg|ttc|otf|eot|woff|woff2|font.css|css|js)$ {
        add_header Access-Control-Allow-Origin "*";
        }
    location = /portal {
      return 302 /;
      }
    
    # block common exploits, sql injections etc
    #include /usr/local/nginx/conf/block.conf;
    
      # Enables directory listings when index file not found
      #autoindex  on;
    
      # Shows file listing times as local time
      #autoindex_localtime on;
    
      # Enable for vBulletin usage WITHOUT vbSEO installed
      # More example Nginx vhost configurations at
      # http://centminmod.com/nginx_configure.html
      #try_files            $uri $uri/ /index.php;
    
    
      }
    
      include /usr/local/nginx/conf/staticfiles.conf;
      include /usr/local/nginx/conf/php.conf;
      include /usr/local/nginx/conf/drop.conf;
      #include /usr/local/nginx/conf/errorpage.conf;
      include /usr/local/nginx/conf/vts_server.conf;
    
     
  13. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    looks ok
     
  14. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    But my site went down when I added an AAAA record for www
     
  15. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    2nd server{} context missing ipv6 listen directives and adjust server_name just for www
    Code (Text):
    server {
                listen   80;
                listen [2600:3c01::f03c:91ff:fe2c:f69e]:80;
                server_name utahfishkeepers.us;
                return 301 $scheme://www.utahfishkeepers.us$request_uri;
           }
    
    server {
                listen   80;
                listen [2600:3c01::f03c:91ff:fe2c:f69e]:80;
      server_name www.utahfishkeepers.us;
     
  16. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    How do I fix that?
     
  17. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    edit the nginx vhost relevant sections
     
  18. CarpCharacin

    CarpCharacin Member

    267
    21
    18
    Oct 13, 2016
    Salt Lake City
    Ratings:
    +34
    Local Time:
    3:49 PM
    1.15.x
    MariaDB 10.1
    How do I do that and where do I do it?
     
  19. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    actually faq 39 FAQ - CentminMod.com LEMP Nginx web stack for CentOS outlined format would be

    Code (Text):
    server {
                listen   80;
                listen [2600:3c01::f03c:91ff:fe2c:f69e]:80 ipv6only=on;
                server_name utahfishkeepers.us;
                return 301 $scheme://www.utahfishkeepers.us$request_uri;
           }
    
    server {
                listen   80;
                listen [2600:3c01::f03c:91ff:fe2c:f69e]:80 ipv6only=on;
      server_name www.utahfishkeepers.us;
     
  20. eva2000

    eva2000 Administrator Staff Member

    58,905
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    7:49 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Edit your nginx vhost i.e. /usr/local/nginx/conf/conf.d/newdomain.com.conf

    use nano or vim linux text editor

    Easiest way to edit configuration or any files on your server is via logging into your server via ssh and directly editing them using nano or vim linux text editors.

    I started out with pico text editor in Pine so I prefer using it's successor, nano which you can read up more about nano here and here. For vim text editor read here and here.

    Also there's numerous online how to use guides for nano and vim you can search for via google :)