View Poll Results: Are you interesting in it?

Voters
4. You may not vote on this poll
  • Yes, I'm interesting in it

    3 75.00%
  • No, I don't

    1 25.00%
Page 1 of 3 123 LastLast
Results 1 to 20 of 54

Thread: [POLL] DirectAdmin MultiServer feature for slave DNS without DirectAdmin itself?

  1. #1
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129

    Question [POLL] DirectAdmin MultiServer feature for slave DNS without DirectAdmin itself?

    Poll is closed. See main thread http://forum.directadmin.com/showthread.php?t=43924
    Last edited by roman_m; 05-14-2013 at 09:11 AM.

  2. #2
    nobaloney's Avatar
    nobaloney is offline NoBaloney Internet Svcs - In Memoriam †
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,119
    Does this work with the DirectAdmin Multi-Server option, or do we need to do something else on the master?

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  3. #3
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    Sound interesting, are you going to share this for free?

    @Jeff
    Technically is a daemon and as he sayd act as a DA Server, so on the real DA Server you should just set reomme data (ip user pass) and nothing else if i didnt missunderstand. Sound's good, sound's like the think i did told you via email

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  4. #4
    nobaloney's Avatar
    nobaloney is offline NoBaloney Internet Svcs - In Memoriam †
    Join Date
    Jun 2003
    Location
    California
    Posts
    26,119
    @SeLLeRoNe:

    I'd like to assume the same, but I also remember years ago watching a movie in which one of the characters said:
    When you assume you make an ass out of you (u) and me.
    So I no longer assume .

    Jeff
    +1 951 643-5345
    Third-Party DirectAdmin administration and support
    Dedicated Servers, Dedicated Reseller Accounts
    NoBaloney Internet Services div. Qnito Incorporated
    848 North Rainbow Blvd., Suite #3789
    Las Vegas, NV 89107-1103

  5. #5
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    13,750
    Quote Originally Posted by nobaloney View Post
    Does this work with the DirectAdmin Multi-Server option?
    Since this

    + listen to tcp 2222 and imitates DirectAdmin /CMD_API_DNS_ADMIN (port can be changed in config)
    and knowing the fact that Multi-Server uses API... I can with some kind of certainty answer YES.
    Regards, Alex G.

    - Get the best commercial DirectAdmin support and hire me on poralix.com
    - Follow and like @Poralix on Facebook

  6. #6
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    hehe Ok :P
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  7. #7
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Quote Originally Posted by nobaloney View Post
    Does this work with the DirectAdmin Multi-Server option,
    Exactly. You do not need to modify or tune anything on Master. On slave, you need to include named.conf entry to DirectSlave (I calling it, hehe) named.conf (in case of "master" mode), or in case of "slave" mode you need to set up slave bind with axfr.

    Sorry, software not well-documented, so give me few days (maybe a weekend) to write out some docs.

  8. #8
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Quote Originally Posted by SeLLeRoNe View Post
    Sound interesting, are you going to share this for free?

    @Jeff
    Technically is a daemon and as he sayd act as a DA Server, so on the real DA Server you should just set reomme data (ip user pass) and nothing else if i didnt missunderstand. Sound's good, sound's like the think i did told you via email

    Regards
    Yep, exactly right. It transfers zone configs via HTTP proto with Basic (as native DirectAdmin API authen mech) HTTP authentication (I think, SSLEAY also possible) and passes them to hacked CGI module (tricky, but not scary), that understands plain input. When just write out stdin to named.conf and $domain.db. Voila.

  9. #9
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Quote Originally Posted by SeLLeRoNe View Post
    Sound interesting, are you going to share this for free?
    Of course, just for DA users community.

  10. #10
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    Nice Thanks!

    I can test it once you feel ready

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  11. #11
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Okay
    I will post download link to installation tarball, when I done a bit of documenting.

  12. #12
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Here is a link

    http://mazur.net.ua/download/directslave.tar.gz

    Extract and read README. Feel free to contact me (via email now, skype is offline on weekend

  13. #13
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    Thanks, im installing required perl components and i'll test it once done.

    I would add a suggestion, there is a way to use encrypted password in conf file? Or maybe use a system user?

    Once test are over i think ill prepare an install script for automatize it

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  14. #14
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    Ok, i did found some bugs:

    1 - background 1 option doenst work.

    if i set to 0 i see output and work correctly.
    if i set to 1 i run program but doesnt start, check on ps aux and netstat but doesnt start listening neither.

    Code:
    >/usr/local/directslave/bin/directslave
    >ps aux | grep direct
    root     13860  0.0  0.0 103224   860 pts/0    S+   15:21   0:00 grep direct
    >netstat -ant | grep :2222
    Other thing:

    named_workdir /var/named
    named_conf /etc/named.conf

    on config (for centos) this doenst work.

    Let me explain, it create the file correctly in /var/named/zoenfile
    the include zone is correctly added in /etc/named.conf

    BUT with wrong path:

    Code:
    zone "server.crazynetwork.it" { type master; file "named/test.crazynetwork.it.db"; };
    As you can see it take just named/ and exclude the starting /var/

    Checking the outpu on dns sync appear this error:

    Use of uninitialized value in length at /usr/local/directslave/bin/directslave line 98.

    Dont know if it is related (i dont speak perl sorry :P)

    On Multi-Server Setup test it work ok (when is running ofc)
    Tests OK
    Net::Server::HTTP/2.006 connection OK.
    But i would suggest to change the reply to something like DirectSlave Server (version)
    for have a more clear knowledge of where we are linked

    Test has been run on CentOS 6.2.

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  15. #15
    Join Date
    Aug 2008
    Posts
    4,695
    The path in named.conf should be using a relative path. You should get used to putting zones in a sub folder.

  16. #16
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    why should matter?

    I did set that way cause so i can use same path as directadmin use.

    da itself have named.conf in /etc and all zones in /var/named/

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

  17. #17
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    Quote Originally Posted by SeLLeRoNe View Post
    why should matter?

    I did set that way cause so i can use same path as directadmin use.

    da itself have named.conf in /etc and all zones in /var/named/

    Regards
    Yes, you right. That should not matter, user decide to run bind chrooted or not, but path to zone files should be clearly understood for more flexible control. So I rewritten this part to use absolute path in DirectSlave named.conf and here is new version

    http://mazur.net.ua/download/directslave-1.2.tar.gz

    CHANGES:
    auth - encrypted password entry in config for security reason
    bin/pass for generating auth entry in etc/directslave.conf
    fixed bug with crash of app after starting in background mode
    version - entry removed from config and hardcoded into script
    named_workdir - use absolute path instead of relative
    debug - option for debugging

    Tested on FreeBSD and Ubuntu 12.04. I have no CentOS, but DirectSlave shoud work on any system, that have perl, even the windows (with named for win32 hehe).

    Set debug option to 1 and run derictslave, than email me the output.

    Do not forget to read README.

    Still need more testers...
    Last edited by roman_m; 06-24-2012 at 02:40 AM.

  18. #18
    Join Date
    Mar 2012
    Location
    Netherlands
    Posts
    78
    Works great, have tested it on CentOS. With master and slave.

    Thank you for your hard work and good readme.

  19. #19
    Join Date
    May 2005
    Location
    Ukraine, Kiev
    Posts
    129
    That's great, nice to hear about

  20. #20
    Join Date
    Oct 2004
    Location
    A Coruña, Spain
    Posts
    6,786
    I can still confirm that on CentOS it is working fine.

    Any news about multi-user?

    Regards
    SeLLeRoNe - Andrea Iannucci
    Head of Managed Service - Senior DevOps Engineer
    If you need my support write me an E-Mail to Support@CrazyNetwork.it

Page 1 of 3 123 LastLast

Similar Threads

  1. Replies: 459
    Last Post: 08-19-2017, 07:33 AM
  2. [feature request] Multiserver test connections running with cron
    By zEitEr in forum Feedback & Feature Requests
    Replies: 5
    Last Post: 10-24-2012, 09:35 AM
  3. [Poll] Using the default DirectAdmin skin or not?
    By M.Kouwenhoven in forum Skin Programming
    Replies: 4
    Last Post: 10-09-2010, 01:58 PM
  4. Replies: 0
    Last Post: 07-02-2006, 08:01 AM
  5. Log Viewer Feature Poll
    By jmstacey in forum 3rd Party Software
    Replies: 1
    Last Post: 11-15-2005, 08:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •