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

    [Solved] Gandi DNS in pfSense 2.4.5 not working

    Scheduled Pinned Locked Moved DHCP and DNS
    8 Posts 3 Posters 854 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.
    • T
      trumee
      last edited by trumee

      Hello,

      @evantill I tried using the new Gandi Live dynamic dns but it is failing to update,

      Mar 27 08:32:55 	php-fpm 	91852 	/services_dyndns_edit.php: phpDynDNS (pbx): (Unknown Response)
      Mar 27 08:32:55 	php-fpm 	91852 	/services_dyndns_edit.php: phpDynDNS (pbx): PAYLOAD: 400
      Mar 27 08:32:55 	php-fpm 	91852 	/services_dyndns_edit.php: Dynamic DNS gandi-livedns (pbx): _checkStatus() starting.
      Mar 27 08:32:53 	php-fpm 	91852 	/services_dyndns_edit.php: Dynamic DNS gandi-livedns (pbx): _update() starting.
      Mar 27 08:32:53 	php-fpm 	91852 	/services_dyndns_edit.php: Dynamic DNS (pbx): running get_failover_interface for opt16. found pppoe2
      Mar 27 08:32:53 	php-fpm 	91852 	/services_dyndns_edit.php: Dynamic DNS gandi-livedns (pbx): xx.xx.xx.xx extracted from local system.
      Mar 27 08:32:53 	php-fpm 	91852 	/services_dyndns_edit.php:
      Mar 27 08:32:53 	php-fpm 	91852 	/services_dyndns_edit.php: Dynamic DNS: updatedns() starting
      

      I have using this until now.

      Thanks

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        What version of Gandi live DNS are you on? I'm on v5 and it works.

        T 1 Reply Last reply Reply Quote 0
        • T
          trumee @A Former User
          last edited by trumee

          @jwj I am on V5 too. I filled the hostname(pbx), domain name(xx.com) and api key.

          1 Reply Last reply Reply Quote 0
          • ?
            A Former User
            last edited by

            The other thing I did is regenerate my key Yesterday before setting up the DDNS client. Strange, when it worked the first time for me I was surprised to a degree. I then put in a different host to check that it created the A record. Any possibility that it's being blocked? I do know that some of the Gandi ip's are in the top spammers list if you use GEOIP blocking. I got hit by that when I was using Gandi for email.

            1 Reply Last reply Reply Quote 0
            • T
              trumee
              last edited by

              @jwj This is what i use at the command line to update DNS

              curl  -XPUT -d '{"rrset_values": ["1.2.3.4"]}' -H "X-Api-Key: ApiKeyblahblah"  -H "Content-Type: application/json" "https://dns.api.gandi.net/api/v5/domains/mydomain.com/records/myhostname/A"
              

              Where do i put "mydomain.com", "myhostname", "A" and "ApiKeyblahblah"?

              1 Reply Last reply Reply Quote 0
              • T
                trumee
                last edited by

                I had to put TTL as well. Now the dns updates fine. Solved!

                SebMS 1 Reply Last reply Reply Quote 0
                • ?
                  A Former User
                  last edited by

                  👍

                  1 Reply Last reply Reply Quote 0
                  • SebMS
                    SebM @trumee
                    last edited by

                    @trumee said in [Solved] Gandi DNS in pfSense 2.4.5 not working:

                    I had to put TTL as well. Now the dns updates fine. Solved!

                    Seems to be working fine without the TTL now.

                    Although pfSense still only supports API key (which Gandi states is "deprecated) and not Personal Access Token (PAT).

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