Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Gandi DHCP update utility

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 1 Posters 2.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      andrewinhawaii
      last edited by

      As many Gandi.net customers know, Gandi does not support standard dynamic DNS updates (Gandi is a domain registrar in France).  However, they do have a very powerful XML RPC interface that provides a superset of the functionality (see http://doc.rpc.gandi.net/).  However, there is no application that I could find that implements this API.  So I wrote a command line application that implements most of it.  In Perl.  Ooops.  I would like to publish it under the GPL v3, to hopefully assist as many people as possible.  However, while it works fine on my test system - tested against both Gandi's OTE and production systems - it relies on the Perl5 interpreter.  This may be my second PERL program in 20 years, since I write mainly in C and assembly, so it's not pretty.  And I have not written any code in PHP (I didn't even know you could use it outside of web scripting until pfSense).

      So I now have 2 problems: (1) converting from Perl to PHP and (2) hooking it to pfSense's WAN DHCP client update mechanism.

      I'd like to post the code here to distribute it (it's a little over 1K lines), and take all comments and advice about porting it to PHP, upgrading it, or makinng it more suitable for pfSense.  The other option, of course, is to install the Perl5 package on my pfSense box.  But I view this as a last resort.

      Thanks-

      Andrew

      1 Reply Last reply Reply Quote 0
      • A
        andrewinhawaii
        last edited by

        I posted the code here: http://www.16paws.com/projects/pfSense/gandi.perl

        Andrew

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.