Learn about Centmin Mod LEMP Stack today
Register Now

Cloudflare DNS NSD didn't install and doesn't work

Discussion in 'Domains, DNS, Email & SSL Certificates' started by negative, Sep 11, 2016.

  1. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    Hello, i did fresh install the centmin beta relase on my new server. (I'm using the same beta release code on my servers already and no problem)

    I think NSD didn't installed while during centmin install.

    Code (Text):
    [root@server ~]# centmin
    /usr/local/src/centminmod ~
    
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 3
    --------------------------------------------------------
    
    ---------------------------------------------
    
    New to NSD DNS setup ? Be sure to read NSD setup guide:
    http://centminmod.com/nginx_domain_dns_setup.html#dns
    
    Enter domain name you want to add to NSD (without www. prefix): domain.com
    
    Enter IP address you want to assign to domain name (your A record): 200.200.200.200
    ---------------------------------------------------------
    You entered domain name: domain.com
    You entered domain IP address (A record): 200.200.200.200
    ---------------------------------------------------------
    
    Are the domain name and IP address (A record) entered correctly ? [y/n]: y
    
    ---------------------------
    Nameserver ns1/ns2 setup:
    ---------------------------
    
    Note #1:
    nameserver ns1/ns2 IP addresses must already exist and be assigned to this
    server by your web host. If unsure, ask your web host the exact IP addresses
    assigned to your server.
    
    
    Note #2:
    For vanity or custom name servers using your own domain name, ensure you
    have created them first with your domain registrar. You can see tutorial guides
    for Namecheap and Godaddy domain registrars for creating domain names'
    private name servers on web site Part #1 at
    http://centminmod.com/nginx_domain_dns_setup.html#dns
    
    
    Want to abort NSD setup to check with web host and/or domain registrar first ? [y/n]: n
    * Enter IP address for ns1 nameserver: 200.200.200.200
    
    * Enter IP address for ns2 nameserver: 200.200.200.200
    --------------------------------------------------------------
    You entered ns1.domain.com IP address: 200.200.200.200
    You entered ns2.domain.com IP address: 200.200.200.200
    --------------------------------------------------------------
    
    Are the ns1/ns2 name server IP address entered correct ? [y/n]: y
    
    grep: /etc/nsd/nsd.conf: No such file or directory
    ---------------------------------------------
    checking to see if entry for domain.com already exists in /etc/nsd/nsd.conf
    ---------------------------------------------
    
    ---------------------------------------------
    no entry for domain.com found in /etc/nsd/nsd.conf
    creating entry for domain.com ...
    ---------------------------------------------
    
    touch: `touch' `/etc/nsd/master/domain.com.zone' yapılamadı: Böyle bir dosya ya da dizin yok
    inc/nsdsetup.inc: line 132: /etc/nsd/master/domain.com.zone: Böyle bir dosya ya da dizin yok
    ---------------------------------------------
    Redirecting to /bin/systemctl restart  nsd.service
    Failed to restart nsd.service: Unit nsd.service failed to load: No such file or directory.
    
    ---------------------------------------------
    Creating zone file at /etc/nsd/master/domain.com.zone
    ---------------------------------------------
    cat: /etc/nsd/master/domain.com.zone: Böyle bir dosya ya da dizin yok
    
    ---------------------------------------------
    Current zone files listing at: /etc/nsd/master/
    ls: /etc/nsd/master/'e erişilemedi: Böyle bir dosya ya da dizin yok
    ---------------------------------------------
    
    ---------------------------------------------
    NSD entry for domain.com created successfully in /etc/nsd/nsd.conf
    NSD database updated at /var/db/nsd/nsd.db
    NSD zone created at /etc/nsd/master/domain.com.zone
    
    ---------------------------------------------
    Remember to check your domain name's DNS is properly configured
    at both your domain registrar & web server end (NSD) by running
    domain name through these 3 dns test sites
    * http://www.dnsvalidation.com/
    * http://www.intodns.com/
    * http://dnscheck.pingdom.com/


    After, i run the "yum install nsd" command and centos installed the NSD service, and started. Then tried again to centmin menu #3 for add dns to vhost

    Code (Text):
    Enter option [ 1 - 24 ] 3
    --------------------------------------------------------
    
    ---------------------------------------------
    
    New to NSD DNS setup ? Be sure to read NSD setup guide:
    http://centminmod.com/nginx_domain_dns_setup.html#dns
    
    Enter domain name you want to add to NSD (without www. prefix): domain.com
    
    Enter IP address you want to assign to domain name (your A record): 200.200.200.200
    ---------------------------------------------------------
    You entered domain name: domain.com
    You entered domain IP address (A record): 200.200.200.200
    ---------------------------------------------------------
    
    Are the domain name and IP address (A record) entered correctly ? [y/n]: y
    
    ---------------------------
    Nameserver ns1/ns2 setup:
    ---------------------------
    
    Note #1:
    nameserver ns1/ns2 IP addresses must already exist and be assigned to this
    server by your web host. If unsure, ask your web host the exact IP addresses
    assigned to your server.
    
    
    Note #2:
    For vanity or custom name servers using your own domain name, ensure you
    have created them first with your domain registrar. You can see tutorial guides
    for Namecheap and Godaddy domain registrars for creating domain names'
    private name servers on web site Part #1 at
    http://centminmod.com/nginx_domain_dns_setup.html#dns
    
    
    Want to abort NSD setup to check with web host and/or domain registrar first ? [y/n]: n
    * Enter IP address for ns1 nameserver: 200.200.200.200
    
    * Enter IP address for ns2 nameserver: 200.200.200.200
    --------------------------------------------------------------
    You entered ns1.domain.com IP address: 200.200.200.200
    You entered ns2.domain.com IP address: 200.200.200.200
    --------------------------------------------------------------
    
    Are the ns1/ns2 name server IP address entered correct ? [y/n]: y
    
    ---------------------------------------------
    checking to see if entry for domain.com already exists in /etc/nsd/nsd.conf
    ---------------------------------------------
    
    ---------------------------------------------
    no entry for domain.com found in /etc/nsd/nsd.conf
    creating entry for domain.com ...
    ---------------------------------------------
    
    inc/nsdsetup.inc: line 113: /etc/nsd/zones/zone.list: Böyle bir dosya ya da dizin yok
    cat: /etc/nsd/zones/zone.list: Böyle bir dosya ya da dizin yok
    touch: `touch' `/etc/nsd/master/domain.com.zone' yapılamadı: Böyle bir dosya ya da dizin yok
    inc/nsdsetup.inc: line 132: /etc/nsd/master/domain.com.zone: Böyle bir dosya ya da dizin yok
    ---------------------------------------------
    Redirecting to /bin/systemctl restart  nsd.service
    
    ---------------------------------------------
    Creating zone file at /etc/nsd/master/domain.com.zone
    ---------------------------------------------
    cat: /etc/nsd/master/domain.com.zone: Böyle bir dosya ya da dizin yok
    
    ---------------------------------------------
    Current zone files listing at: /etc/nsd/master/
    ls: /etc/nsd/master/'e erişilemedi: Böyle bir dosya ya da dizin yok
    ---------------------------------------------
    
    ---------------------------------------------
    NSD entry for domain.com created successfully in /etc/nsd/zones/zone.list
    NSD database updated at /var/db/nsd/nsd.db
    NSD zone created at /etc/nsd/master/domain.com.zone
    
    ---------------------------------------------
    Remember to check your domain name's DNS is properly configured
    at both your domain registrar & web server end (NSD) by running
    domain name through these 3 dns test sites
    * http://www.dnsvalidation.com/
    * http://www.intodns.com/
    * http://dnscheck.pingdom.com/



    I' m using the CLOUDFLARE as DNS service for now but i'm getting NO GLUE error after switch the that new server and i'm trying to understand what is problem. Because cloudflare and domain registrar doesn't accept problem is theirs and i think they are right too. Because i have tried the amazon and hosting dns providers and still my domain dns says NO GLUE for nameservers.

    So, it related with my server ( so it is centminmod )

    I have no problem on my other servers, but i lived a problem on fresh beta install :/ Something is wrong because i doesn't have nsd service even. (it didn't installed while centmin install)

    @eva2000
     
  2. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    123.09beta01 changed to disabled NSD install by default now, so you use centmin.sh menu option 20 to install it now when you want and NOT yum install of NSD. So remove NSD installed via yum first and use centmin.sh menu option 20 to install NSD

    then you need to add your custom ns1/ns2 nameservers with your domain registrar first and wait for it to propagate
     
  3. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    Why disabled default ?

    Also do you know Why i m getting no glue error when i check the dns status ? Do you have any idea @eva2000 ?
     
  4. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    not enough folks use it to be honest and left it so users who need to can. But i should add a check in centmin.sh menu option 3 to check if NSD is installed first :)

    make sure you registered your ns1/ns2 name servers with your domain registrar and that they also have IPs associated with them too What Is A Glue Record - Domainmonster FAQ

    Another reason why NSD isn't installed by default as generally troubleshooting DNS is left to end user to do. So I recommend using a 3rd party DNS provider so you can get technical support for stuff like this :)
     
  5. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  6. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    I m using cloudflare for DNS only (paused) and it gives that error no glue

    I switched to amazon route 56 as dns server and it still gives same error. I also changed the server to another even but still no glue

    Not related with server, dns provider and domain provider too. I really confused
     
  7. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    you mean the cloudflare's or route53's nameservers report no glue ? that is normal as the nameservers are not on same domain as the domain name.
     
  8. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  9. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    Yes i check from intodns and it says no glue

    But @eva2000 i have no problem on my anothwr website on same servers even same cloudflare dns exactly.

    One website reports no glue, other websites looking normal without error ? Really really interesting ...
     
  10. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    contact Cloudflare and ask ;)
     
  11. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    I asked already but they says not releated with they. Also as i said, i changed the route 56 for dns servers but still problem. I didnt understand what does this problem.

    I moved another centmin server and changed ip too. Dns are changed but still no glue. Very interesting ....

    I will go try another server without centmin. Is centmin including something for that problem ? Or any php phpfpm or nginx rule ?
     
  12. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    are all domains with same domain registrar or different domain registrars ? if domain is working across all 3 dns check sites then should be fine as no glue means name servers aren't using same domain as domain name i.e. domain.com with ns1.domain.org which is the case for any 3rd party DNS provider's nameservers

    nothing in Centmin Mod would affect 3rd party DNS resolution/setup IF you setup your DNS properly at your domain registrar and domain DNS provider end
     
  13. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    Yes all domains on same registrar, same cloudflare nameservers and same server :)

    Maybe related with phpfpm, nginx or another custom service ?
     
  14. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    nope nothing would affect DNS.. it's all off server at DNS level
     
  15. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
  16. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    Yes same problem mate ...

    Is it not important ? Because especially if you check it on dnsstuff check tool, it says that important and red errors.
     
  17. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    not important for 3rd party DNS nameserver usage
     
  18. pamamolf

    pamamolf Well-Known Member

    2,493
    229
    63
    May 31, 2014
    Ratings:
    +390
    Local Time:
    4:46 AM
    Nginx-1.13.x
    MariaDB 10.1.x
    It is much easier to use an A record and also all the load is out of the server :)
     
  19. negative

    negative Member

    212
    20
    18
    Apr 11, 2015
    Ratings:
    +48
    Local Time:
    4:46 AM
    1.9.10
    10.1.11
    And for centminmod.com it is interesting;
    2 nameserver is okay, 2 name server returns "no glue" shit
    Ekran Resmi 2016-09-12 00.46.13.png
     
  20. eva2000

    eva2000 Administrator Staff Member

    28,957
    6,575
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,758
    Local Time:
    11:46 AM
    Nginx 1.13.x
    MariaDB 5.5
    yeah don't worry about it if it's all working :)