Join the community today
Become a Member

DNS Server DNS address could not be found.

Discussion in 'Domains, DNS, Email & SSL Certificates' started by elargento, May 2, 2017.

  1. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    I'm unable to load my site domain2.com, I don't know what I've done wrong.

    1) I set up hostname in the server, ns1.domain.com
    2) I created a ns1.domain.com A record in CloudFlare domain.com account and pointed it to the server IP
    3) I pointed the domain (domain2.com) to ns1.domain.com and ns2.domain.com (the domain registrar required a 2nd DNS)
    4) I created a ns2.domain.com A record in Cloudflare and pointed it to the server IP

    However, domain2.com doesn't load. What did I do wrong? Basically I want to point domain2.com to domain.com DNS

    These are the results of intodns.com domain test
    upload_2017-5-1_15-30-9.png

     
    Last edited: May 2, 2017
  2. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Adding vanity custom ns1.domain.com and ns2.domain.com nameservers to a domain nameserver record with DNS provider isn't the only thing you need to do for vanity nameservers. You need to register and create them on DNS provider's end via their control panels. Example is listed at https://centminmod.com/nginx_domain_dns_setup.html#dns for Part 1 guide of registering private nameservers. Ignore Part 2 as you aren't using local NSD DNS server.
     
  3. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    I'm so sorry Eva, I'd appreciate an example since I don't get it.
    Let me tell you what I currently have set up:
    1) Domain.com points to ns1.domain2.com and ns2.domain2.com
    2) Domain2 DNS are managed by CloudFlare. An A record has been set up for ns1 and ns2 pointing to centminmod server.
    3) I already created the nameservers in domain2.com registrar and pointed them to centminmod server.
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Oh then you're missing the step needed to create vanity custom nameservers with your domain registrar first (usually your dns provider for that guide i wrote).
     
  5. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    sorry, I edited the post while you where posting. Actually I already created the nameservers (ns1 and ns2) in domain2.com domain registrar and pointed them to centminmod server
     
  6. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    might need to wait 48-72hrs for propagation ? :)
     
  7. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    Ns1.domain2.com should be propagated already, more than 24 hours have passed. ns2.domain.com was just created
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I'd contact your domain registrar and check then :)
     
  9. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    Do you usually experience issues like this one? Maybe the .xyz domain extension is a bit tricky? Domain.com actually is domain.xyz

    Don't know if it helps but this is the content of
    /usr/local/nginx/conf/conf.d/domain.xyz.conf
    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;
    #            server_name domain.xyz;
    #            return 301 $scheme://www.domain.xyz$request_uri;
    #       }
    
    server {
     
      server_name domain.xyz www.domain.xyz;
    
    # 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-Frame-Options SAMEORIGIN;
      #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/domain.xyz/log/access.log main_ext buffer=256k flush=60m;
      error_log /home/nginx/domains/domain.xyz/log/error.log;
    
      include /usr/local/nginx/conf/autoprotect/domain.xyz/autoprotect-domain.xyz.conf;
      root /home/nginx/domains/domain.xyz/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 / {
      include /usr/local/nginx/conf/503include-only.conf;
    
    # 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;
    }
    
     
    Last edited: May 2, 2017
  10. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    Cloudflare has replied and I'm still confused since I want to manage DNS through CloudFlare and not through the server by using BIND or NSD https://community.centminmod.com/threads/domain-name-dns-setup-on-local-nsd-server.855/

     
  11. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    Their reply wasn't helpful at all:
     
  12. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Still sort of confused at what you want to do ? Anyway just make it simple use cloudflare provided nameservers instead of vanity ones off your domain ;)
     
  13. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    I have a blog network and I want to use CloudFlare to set the dns (alpha.domain2.com and alpha.domain.com) and hide the server IP since it was affected by a DDoS attack recently so I want to use CloudFlare to set the nameservers.

    Since I have many domains I want to point them to the DNS in CloudFlare (they are too many to add them to CloudFlare)
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Cloudflare doesn't work that way, it assigns a set of DNS namservers per domain, so you need to add each domain separately for separate dns management. It isn't like cpanel/WHM where you can create your own vanity DNS nameservers and have each added domain automatically using these vanity DNS nameservers. Not for standard Cloudflare at least

    For Cloudflare business you can get vanity nameservers Can I get vanity or custom NameServers using Cloudflare?

    But even that is per domain
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Or Enterprise Virtual DNS protection for your own DNS servers Cloudflare introduces Virtual DNS to protect and accelerate your DNS infrastructure
     
  16. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
  17. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    All alternatives like Cloudflare do charge per domain. The 3 I use are Cloudflare, Sucuri Cloudproxy and Incapsula (more expensive than Cloudflare).
     
  18. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    If hiding IP is for DDOS protection measures, then other thing you can do is what @RoldanLT does - don't bother with hiding the ip with services and use a server with native DDOS protection like OVH and then just ensuring your OVH server hides and doesn't leak IPs via email sending etc.
     
  19. elargento

    elargento Member

    352
    17
    18
    Jan 4, 2016
    Ratings:
    +44
    Local Time:
    7:44 AM
    10
    How would it work?
    The DNS points to the server IP, if anybody ping that DNS he will see the server IP
     
  20. eva2000

    eva2000 Administrator Staff Member

    54,860
    12,239
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,810
    Local Time:
    8:44 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    It wouldn't matter if IP can be seen as it's DDOS protected at OVH.

    Whenever OVH gets US West coast datacenter up and running, that's what I'd probably end up doing with OVH US West coast :)