#4069 can't add a new master domain in a running bind server

open
5
2012-03-16
2012-03-16
AoyD
No

Using fresh CentOS 6.2 x64 with latest updates, webmin 1.583-1, BID 9.7.3

after - Create Master Zone - Fill in: Domain name / Network (mydomain.com), Master server (ns.mydomain.com), Email address (name@mydomain.com)
Apply Zone - Apply Configuration - ERROR: NDC command failed : rndc: neither /etc/rndc.conf nor /etc/rndc.key was found

Discussion

  • Jamie Cameron

    Jamie Cameron - 2012-03-16

    Did you click the "Setup RNDC" button on the main page of the BIND module first? It isn't configured correctly by default on most linux distributions ..

     
  • AoyD

    AoyD - 2012-03-20

    yes. Tried to press Setup RNDC before creating master zone, still errors

     
  • AoyD

    AoyD - 2012-03-20

    also Tried without RNDC setup, nothing helps :(

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-20

    Does either of the files /etc/rndc.conf or /etc/rndc.key exist on your system?

    Alternately, does /var/named/chroot/etc/rndc.conf or rndc.key exist?

     
  • AoyD

    AoyD - 2012-03-21

    yes - /etc/rndc.conf - exists

    --------------------------------------------------------------------------------------------------
    # Start of rndc.conf
    key "rndc-key" {
    algorithm hmac-md5;
    secret "M+fwfGnkntESurI0znIIIw==";
    };

    options {
    default-key "rndc-key";
    default-server 127.0.0.1;
    default-port 953;
    };
    # End of rndc.conf

    # Use with the following in named.conf, adjusting the allow list as needed:
    # key "rndc-key" {
    # algorithm hmac-md5;
    # secret "M+fwfGnkntESurI0znIIIw==";
    # };
    #
    # controls {
    # inet 127.0.0.1 port 953
    # allow { 127.0.0.1; } keys { "rndc-key"; };
    # };
    # End of named.conf

     
  • AoyD

    AoyD - 2012-03-21

    AFTER using RNDC SETUP
    THEN create master domain - Apply zone
    Error is:
    -----------------------------------------------------------------------------------------
    Failed to start BIND : Starting named: Error in named configuration: zone localhost.localdomain/IN: loaded serial 0 zone localhost/IN: loaded serial 0 zone 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa/IN: loaded serial 0 zone 1.0.0.127.in-addr.arpa/IN: loaded serial 0 zone 0.in-addr.arpa/IN: loaded serial 0 zone mydomain.com/IN: NS 'ns.mydomain.com' has no address records (A or AAAA) zone mydomain.com/IN: not loaded due to errors. _default/mydomain.com/IN: bad zone [FAILED]
    -----------------------------------------------------------------------------------------
    and BIND is not starting again

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-21

    Looks like that error about ns.mydomain.com is the real issue - you can't have an NS (Nameserver) record that refers to a host in the same domain which doesn't exist. You will need to add an A (Address) record to the domain for ns with the correct IP address.

     
  • AoyD

    AoyD - 2012-03-21

    do you mean This error is because I am testing Bind with non existing domain name?
    I am doing 100% like in my other server with older version of Linux (CentOS 5.7) and older bind and latest Webmin and all works soo fine.

    If you mean to add address record for master zone before applying zone THEN
    Result is: ERROR: Failed to start BIND : Starting named : [FAILED]

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-22

    No, the error means that you are missing the record called "ns" from your domain.

     
  • AoyD

    AoyD - 2012-03-22

    I am sorry I am beginner.
    I Always Did Like This: (plesase see my Video)
    http://www.youtube.com/watch?v=APCjujr9rZs&feature=youtu.be
    and Always it has worked fine and still is working
    after new version of Linux and Bind it is not working like it was before

    if I am lacking knowledge of configuring bind in new Linux versions Like CentOS 6.2
    Please if it is possible, tell me how to do it step by step
    for example if I have domain mane in registrar - domain.lv with ns: ns.domain.lv with IP: 83.241.17.150

    Thank you so much
    AoyD

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-22

    Could you attach the zone file for that domain to this bug report? You should be able to see the path to it in Webmin, by clicking on your zone and then on Edit Records File.

     
  • AoyD

    AoyD - 2012-03-23

    /var/named/domain.lv.hosts

     
  • AoyD

    AoyD - 2012-03-23

    In my CentOS 5.7 64bit Working server I created the same domain.lv master zone and domain.lv.hosts file looks the same as in This CentOS 6.2 64bit bind not working server

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-24

    That file looks OK .. was it from the problem system?

    The original error suggests that you are missing this line :

    ns.domain.lv. IN A 83.241.17.150

     
  • AoyD

    AoyD - 2012-03-24

    yes uploaded file is from NOT working bind in new Linux CentOS 6.2 64bit
    If Creating master zone and then apply master zone and configuration Error is in my post Date: 2012-03-21 08:20:25 PDT
    If Creating master zone and then ADD address records - and only then apply master zone and configuration - you get error like in my film - failed to start Bind

     
  • AoyD

    AoyD - 2012-03-24

    if it is possible - can you please try to install CentOS 6.2 64bit on virtual machine for test
    you will see better what is wrong
    http://www.centos.org/

     
  • Jamie Cameron

    Jamie Cameron - 2012-03-25

    I have CentOS 6 installed, but I can't re-produce this issue.

    Are you still getting the same error message when you try to start BIND, or is it something different?

     
  • AoyD

    AoyD - 2012-03-26

    yes still the same

    1# I am installing from - CentOS-6.2-x86_64-bin-DVD1.iso
    maybe I should download this image again?

    2# yum update

    3# download webmin 1.583

    Please see My VIDEO
    http://www.youtube.com/watch?v=APCjujr9rZs&feature=youtu.be

    4# install webmin
    install bind
    RNDC setup
    create master zone
    add address records
    apply zone and configuration

    AM I DOING ALL CORRECT ?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks