Learn about Centmin Mod LEMP Stack today
Become a Member

DNS adding an A Record for hostname using an existing domain

Discussion in 'Domains, DNS, Email & SSL Certificates' started by hitman, Sep 30, 2016.

Tags:
  1. hitman

    hitman Member

    117
    10
    18
    Jul 18, 2014
    Ratings:
    +14
    Local Time:
    7:37 AM
    hello
    i have created a NSD domain dns and now i would like to create another A Record to use for a hostname.
    do i just add the A Record in the
    /etc/nsd/master/newdomain.com.zone

    or do i follow another procedure?

    thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    30,913
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    yeah just add to the existing domain.com.zone file in /etc/nsd/master and restart nsd service afterwards :)

    Though for reliability and performance you should use a 3rd party for DNS hosting :)
     
    • Like Like x 1
  3. hitman

    hitman Member

    117
    10
    18
    Jul 18, 2014
    Ratings:
    +14
    Local Time:
    7:37 AM
    hello
    i am trying this in a new server for test and it is a fresh install of centmin beta09 on centos 7
    but it shows errors that /etc/nsd does not exist
    and when i try to reinstall nsd from option 20 i get
    Code:
    Setting up directories...
    chmod: cannot access '/var/run/nsd': No such file or directory
    chown: cannot access '/var/run/nsd/': No such file or directory
    sed: can't read /etc/nsd/nsd.conf: No such file or directory
    sed: can't read /etc/init.d/nsd: No such file or directory
    chown: cannot access '/var/run/nsd/': No such file or directory
    chmod: missing operand after '0755/var/db/nsd/'
    Try 'chmod --help' for more information.
    inc/nsd_reinstall.inc: line 167: /etc/init.d/nsd: No such file or directory
    inc/nsd_reinstall.inc: line 168: /etc/init.d/nsd: No such file or directory
    
    any help?
     
  4. eva2000

    eva2000 Administrator Staff Member

    30,913
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    123.09beta01 doesn't install NSD by default anymore, use centmin.sh menu option 20 submenu option to do that first :)

    i should add a check for that in centmin.sh menu option 3
     
    • Like Like x 2
  5. eva2000

    eva2000 Administrator Staff Member

    30,913
    6,908
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,404
    Local Time:
    3:37 PM
    Nginx 1.13.x
    MariaDB 5.5
    just updated 123.09beta01 to do just that
    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 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
    --------------------------------------------------------
    NSD is not installed yet
    run centmin.sh menu option 20
    option to install NSD first