#954 rndc does not appear to be working

1.050
closed
5
2003-01-30
2003-01-28
No

Jamie,

I have now got Webmin 1.050 running against BIND
9.22rc1 on a few of systems. A couple have views
configured, whilst the other does not.

What I am trying to get working now is the rndc feature.
You said before that the "Apply" changes button is only
visable if the named.pid value is correclty set, prepended
with the chroot dir information. We both of these are
correct, and at the top level, the button is visable.

However, my understanding of the rndc feature, was that
it should allow you to reload an individual zone, and so I
should be seeing the "Apply changes" button within the
master zone itself. This I don't see, only the delete zone
button.

Should I be, or is Webmin being clever and only
reloading zones, when zones have been changed, and
reloading everything if nothing has been modified ?

What value needs to be added to the module config ?

At the moment I have /usr/local/sbin/rndc. Do I need to
add anything to this ?

Sorry for all the questions,

Cheers,

Richard

Discussion

  • Jamie Cameron

    Jamie Cameron - 2003-01-28

    Logged In: YES
    user_id=129364

    As long as /usr/local/sbin/rndc is entered in
    the 'Command to reload a zone' field on the Module
    Config page, and assuming that it actually exists, the
    Apply Changes button should appear on all master zone
    pages. Make sure you don't accidentally enter a space at
    the start of the path though ..

     
  • Richard Whelan

    Richard Whelan - 2003-01-28

    Logged In: YES
    user_id=656397

    Jamie,

    I have that path entered, and there is no space at the
    beginning. The only button I see with in a master zone, is the
    delete zone, not apply zone.

    Any clues/ideas ?

    Cheers,

    Richard

     
  • Jamie Cameron

    Jamie Cameron - 2003-01-28

    Logged In: YES
    user_id=129364

    The only other reason that the button would not appear is if
    the module has been configured to stop the user from
    applying changes, which can be done in the Webmin Users
    module by clicking on BIND DNS Server next to your Webmin
    login name..

     
  • Nobody/Anonymous

    Logged In: NO

    Jamie,

    All the button within the users section are set to yes. I'm
    logging in as Administrator as well.

    Is there anything else I could check ?

    cheers,

    Richard

     
  • Jamie Cameron

    Jamie Cameron - 2003-01-29

    Logged In: YES
    user_id=129364

    I presume that /usr/local/sbin/rndc is the real path and
    that it is not relative to the chroot directory? And also
    that it is executable?

     
  • Nobody/Anonymous

    Logged In: NO

    Jamie,

    It's both. I made sure it was in both locations, along with the
    config file as well. That is also available in /etc, the within the
    chroot area.

    As yes, both have 755 on them.

    Cheers,

    Richard

     
  • Jamie Cameron

    Jamie Cameron - 2003-01-29

    Logged In: YES
    user_id=129364

    TRy installing the updated module attached to this bug
    report - it fixes one possible problem, and also writes some
    debug information to /var/webmin/miniserv.error showing the
    tests that the code does to determine if ndc is installed or
    not.

     
  • Nobody/Anonymous

    Logged In: NO

    Jamie,

    Bingo, as we say over here. That's it. I now have both
    buttons, and it works just fine. Also added it onto my other
    server with the views, which as I'm sure you know has fixed
    the problem with that as well. No longer icons, just the listed
    domains as required.

    I reckon this could be closed now.

    Thanks for your time,

    Richard

     
  • Nobody/Anonymous

    Logged In: NO

    Jamie,

    Before you close it, I have just found one problem. Outside of
    views it works fine.

    As soon as you are in a view, the rndc command fails.

    It tries to to:

    /usr/local/sbin/rndc reload <zone>

    where it should be doing

    /usr/local/sbin/rndc reload <zone> <class> <view>

    Could you possibly change it to recognise when it's inside a
    view and do this ?

    Cheers,

    Richard

     
  • Jamie Cameron

    Jamie Cameron - 2003-01-30
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2003-01-30

    Even more updated BIND module

     
  • Jamie Cameron

    Jamie Cameron - 2003-01-30

    Logged In: YES
    user_id=129364

    Thanks for the info .. I have attached an even newer version
    of the module that adds IN viewname to the rndc command to
    this bug report.

     
  • Nobody/Anonymous

    Logged In: NO

    Jamie,

    That's it. It doesn't show the right command next to the Apply
    button, it's missing the class and view information, but
    clicking on the button does work.

    Thanks for this, much appreciated.

    Richard

     

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

Sign up for the SourceForge newsletter:





No, thanks