Welcome to Centmin Mod Community
Register Now

DNS Bind

Discussion in 'Domains, DNS, Email & SSL Certificates' started by Itworx4me, Mar 17, 2017.

  1. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Hello,

    I have been having a terrible time trying to get my dns to resolve to my vps account. I have followed the instruction for centmin. Nothing I seem to do works. Do I have to have bind setup for this to work?


    Thanks,
    Itworx4me
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  3. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
  4. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    from your info you provided you entered the domain wrongly when setting up NSD
    Code (Text):
    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): y
    
    ---------------------------------------------------------
    You entered domain name: y
    

    you are meant to enter domain name i.e. yourdomain.com but you entered = y just a single letter

    so you created a NSD zone file at /etc/nsd/master/y.zone instead of /etc/nsd/master/yourdomain.com.zone
    so you need to edit /etc/nsd/master/y.zone contents and replace all instances of single letter y with yourdomain.com

    and need to rename it where yourdomain.com is your domain name
    Code (Text):
    mv /etc/nsd/master/y.zone /etc/nsd/master/yourdomain.com.zone
    

    then edit /etc/nsd/nsd.conf entry for your domain replacing that letter y with yourdomain.com
    Code (Text):
    zone:
            name: y
            zonefile: "master/y.zone"
    


    there's also an nsd error separate issue
    Code (Text):
    Stopping nsd: /etc/init.d/nsd: line 71: /usr/local/sbin/nsdc: No such file or directory
    

    did you install NSD via centmin.sh menu option 20 ? as 123.09beta01 no longer installs NSD out of the box
    Code (Text):
    --------------------------------------------------------
        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 MySQL Upgrade & Management
    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 ] 5
    --------------------------------------------------------
    
     
  5. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Yes I installed this option with menu item 20.
     
  6. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    How do I fix this error ?

    Thanks,
    Itworx4me
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    try reinstalling NSD via centmin.sh menu option 20 submenu option
     
  8. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    reinstalled and get this error:
    chmod: missing operand after `0755/var/db/nsd/'
    Try `chmod --help' for more information.
    Stopping nsd: nsd is not running
    Starting nsd:
    check if nsd is running...
    root 5261 0.0 0.0 4076 544 pts/0 S+ 03:08 0:00 tee /root/centminlogs/centminmod_1.2.3-eva2000.09.004_180317-030820_nsd_reinstall.log
    nsd 8349 0.0 0.0 15104 944 ? Ss 03:08 0:00 /usr/local/sbin/nsd -c /etc/nsd/nsd.conf
    nsd 8351 0.0 0.0 21968 852 ? S 03:08 0:00 /usr/local/sbin/nsd -c /etc/nsd/nsd.conf
    nsd 8352 0.0 0.0 15236 624 ? S 03:08 0:00 /usr/local/sbin/nsd -c /etc/nsd/nsd.conf
    root 8354 0.0 0.0 6444 696 pts/0 S+ 03:08 0:00 grep nsd
    *************************************************
    * NSD Re-installed
    *************************************************
     
  9. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    even with the error nsd is up and running but still can't get the name to resolve to the server.
     
  10. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  11. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
  12. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Will you be able to help me with the new dns settings? They are asking for this info:
    Code:
    An A, AAAA or CNAME record was not found for the www subdomain. The www.food-karts.com subdomain will not resolve.
    An A, AAAA or CNAME record was not found pointing to the root domain. The food-karts.com domain will not resolve.
    An MX record was not found for your root domain. An MX record is required for mail to reach @food-karts.com addresses.
    Thanks for all your help George
     
  13. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    1. sign up for cloudflare
    2. add your domain to cloudflare
    3. update domain DNS nameservers with ones provided by cloudflare
    4. then add your DNS records via cloudflare gui i.e. A record for main domain and www pointing to server IP address and MX records provided by 3rd party email provider and wait for dns propagation via https://www.whatsmydns.net/
    5. if only DNS and not using cloudflare cache/cdn/waf for performance/security then disable that part as per https://community.centminmod.com/threads/cloudflare-dns-only-configuration.6867/

    no server changes needed

    cloudflare support pages Cloudflare Support and DNS DNS – Cloudflare Support

    Getting started Getting Started – Cloudflare Support
     
  14. Itworx4me

    Itworx4me Active Member

    316
    29
    28
    Mar 14, 2017
    Ratings:
    +52
    Local Time:
    3:28 AM
    Nginx 1.27.4
    MariaDB 10.6.21
    Does this error present any issues?

    After days of trying to get the dns to work. @eva2000 thank you for all your help. I signed up for cloudflare and in literally minutes the domain was working as it should.

    Thanks,
    Itworx4me
     
  15. eva2000

    eva2000 Administrator Staff Member

    54,935
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,812
    Local Time:
    8:28 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    fixed the bug https://community.centminmod.com/threads/fix-bug-typo-in-inc-nsd_reinstall-inc.10828/ you can just stop and disable NSD service

    Code (Text):
    service nsd stop
    chkconfig nsd off
    


    yup why i suggest 3rd party DNS easier, more reliable etc :)