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

    Update DynDNS service list

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 2 Posters 384 Views 2 Watching
    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.
    • S Offline
      sintei
      last edited by

      Hello,

      How do I suggest a new entry on the DynDNS list over services supported?
      Is redmine correct way or does it only handle bugs?

      Today the service "Loopia" is supported, but the username/password that is used, is the one for logging in to the Loopia account with unrestricted access

      Loopia also has "API users" you can create and only give access for instance to update dns records.
      This is done via their XML_RPC server.
      I want to suggest to add this way also.

      Here is an example in python for create an account and register a domain that might be usefull:
      ===group

      ```#!/usr/local/bin/python  
      # -*- coding: utf-8 -*-  
        
      import calendar  
      import sys  
      import time  
      import xmlrpclib  
        
      def main():  
          global_username = 'YOUR_USERNAME'  
          global_password = 'YOUR_PASSWORD'  
          global_domain_server_url = \  
              'https://api.loopia.se/RPCSERV'   
        
          domain = 'anders-via-python-%s.se' % \  
              calendar.timegm(time.gmtime())  
        
          contact = {'firstname' : 'Anders',  
                  'lastname' : 'Andersson',  
                  'company' : 'Loopia AB',  
                  'street' : 'Kopparlundsvägen 7B',  
                  'street2' : '',  
                  'zip' : '72130',  
                  'city' : 'Västerås',  
                  'country_iso2' : 'se',  
                  'orgno' : '556633-9304',  
                  'phone' : '021-128222',  
                  'cell' : '',  
                  'fax' : '',  
                  'email' : 'info@loopia.se'}  
        
          client = xmlrpclib.ServerProxy(uri =  
              global_domain_server_url, encoding = 'utf-8')  
        
          response = client.createNewAccount(global_username,  
          global_password, domain, contact, False, False,  
          True, 'HOSTING_UNIX', 'HOSTING_BUSINESS', True)  
         
          print 'Account created: %s\n' % response  
        
      if __name__ == '__main__':  
          main()  
      ```kotlin
      

      ===

      And here is a syntax for updating DNS server:
      ===group

      status = updateDNSServers(username, password, [customer_number,] domain, nameservers)
      

      ===

      Thanks for pointing me in the correct direction
      //Sintei

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @sintei
        last edited by

        @sintei

        You probably want to see this file https://github.com/pfsense/pfsense/blob/master/src/etc/inc/dyndns.class

        It exists on your pfSense here /etc/inc/

        Feel free to post a pull request as I guess that is the right method.

        Btw : I'm just a pfSense user.

        Btw :

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sintei @Gertjan
          last edited by

          @gertjan Thank you.
          I'm not skilled in programming that's why I asked where to submit a request.
          If I do a pull-request and edit things which most likely is wrong, someone has to view this and I'll wasted his/her time, because.. I suck.

          I'll gladly donate 10usd to whomever does it. Or donate to a cause by his/her choosing.

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