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

How to configure Dynamic DNS with unsupported DNS provider

Scheduled Pinned Locked Moved DHCP and DNS
14 Posts 3 Posters 646 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.
  • J
    juergenbrandstaetter
    last edited by Dec 13, 2022, 2:44 PM

    Hi,

    my DNS provider is not listed in the list of "Service Type" unfortunately.

    I've got the following ddclient configuration which works perfectly for my current iptables firewall:

    Server: dbsrv2.internic.at (-> this server my DNS provider gave to me)
    Protocol: dyndns2
    Username: ... the FQDN of my domain ...
    Password: ... the pw I configured on my DNS providers interface ...
    Network interface: eth1

    My problem: I don't know how to configure the Dynamic DNS Client in PFSense, so that it works equivallent with ddclient.

    If I take "DynDNS (dynamic)" as service type, "badauth" appears in the log.

    Also, whatever I type into "hostname" it resolves into 62.178.105.55 (which I don't understand)

    /services_dyndns_edit.php: Dynamic DNS dyndns (dbsrv2.internic.at): 62.178.105.55 extracted from local system.
    /services_dyndns_edit.php: Dynamic DNS (dbsrv2.internic.at): running get_failover_interface for wan. found xn1
    /services_dyndns_edit.php: Dynamic DNS dyndns (dbsrv2.internic.at): _update() starting.
    /services_dyndns_edit.php: Response Header: HTTP/1.1 200 OK
    /services_dyndns_edit.php: Response Header: Date: Fri, 09 Dec 2022 15:45:00 GMT
    /services_dyndns_edit.php: Response Header: Server: Apache/2.4.18 (Ubuntu)
    /services_dyndns_edit.php: Response Header: Strict-Transport-Security: max-age=31536000
    /services_dyndns_edit.php: Response Header: Vary: Accept-Encoding
    /services_dyndns_edit.php: Response Header: Content-Type: text/plain
    /services_dyndns_edit.php: Response Header: Accept-Ranges: none
    /services_dyndns_edit.php: Response Header: X-User-Status: vip
    /services_dyndns_edit.php: Response Header: Connection: close
    /services_dyndns_edit.php: Response Header: Transfer-Encoding: chunked
    /services_dyndns_edit.php: Response Header:
    /services_dyndns_edit.php: Response Header:
    /services_dyndns_edit.php: Response Data: badauth
    /services_dyndns_edit.php: Dynamic DNS dyndns (dbsrv2.internic.at): _checkStatus() starting.
    /services_dyndns_edit.php: phpDynDNS (dbsrv2.internic.at): PAYLOAD: badauth

    Any help appreciated

    V 1 Reply Last reply Dec 13, 2022, 3:00 PM Reply Quote 0
    • V
      viragomann @juergenbrandstaetter
      last edited by Dec 13, 2022, 3:00 PM

      @juergenbrandstaetter
      In the type drop-down you can find "Custom". Select this and enter your data.
      You will have to state at least the monitoring interface, user, password and an update URL.

      J 1 Reply Last reply Dec 13, 2022, 3:09 PM Reply Quote 0
      • J
        juergenbrandstaetter @viragomann
        last edited by Dec 13, 2022, 3:09 PM

        @viragomann yes, thanks. I found this, but I've got no "update-URL" from my provider unfortunately.

        Is there some sort of "custom", where I can put in the settings as I had them in ddclient?

        V 1 Reply Last reply Dec 13, 2022, 3:17 PM Reply Quote 0
        • V
          viragomann @juergenbrandstaetter
          last edited by Dec 13, 2022, 3:17 PM

          @juergenbrandstaetter
          Try this one:
          http://dbsrv2.internic.at/nic/update?hostname=EnterYourHostnameHere&myip=%IP%

          Replace your host name.

          J 1 Reply Last reply Dec 13, 2022, 3:40 PM Reply Quote 0
          • J
            juergenbrandstaetter @viragomann
            last edited by Dec 13, 2022, 3:40 PM

            @viragomann said in How to configure Dynamic DNS with unsupported DNS provider:

            %IP%

            OMG, so much thanks!!! It worked!

            I first tried in a browser and then also in pfSense - both worked.

            The result strings are "nochg" (if the IP was unchanged) and "good" if it has changed.

            V 1 Reply Last reply Dec 13, 2022, 3:47 PM Reply Quote 0
            • V
              viragomann @juergenbrandstaetter
              last edited by Dec 13, 2022, 3:47 PM

              @juergenbrandstaetter
              You can enter it into the Result Match box to get a more reliable feedback from pfSense.

              J 1 Reply Last reply Dec 13, 2022, 3:50 PM Reply Quote 0
              • J
                juergenbrandstaetter @viragomann
                last edited by Dec 13, 2022, 3:50 PM

                @viragomann Yes, I did that and it works: "nochg|good"

                But may I ask another thing:

                how often does this check the IP? I need reliable dial-in, so I would want it to check for updates every 5min maximum. Where can I set this?

                V G 2 Replies Last reply Dec 13, 2022, 4:07 PM Reply Quote 0
                • V
                  viragomann @juergenbrandstaetter
                  last edited by Dec 13, 2022, 4:07 PM

                  @juergenbrandstaetter
                  The update is applied after the WAN IP has changed.
                  After an update it checks the IP.
                  It also checks when you load the widget on the dashboard.

                  Why do you need additional check, even the IP doesn't change?

                  Apart from IP changes the update runs once a day by default triggered by cron (/usr/bin/nice -n20 /etc/rc.dyndns.update). You can change the interval if you need. Use the cron package.

                  J 1 Reply Last reply Dec 13, 2022, 4:42 PM Reply Quote 0
                  • G
                    Gertjan @juergenbrandstaetter
                    last edited by Dec 13, 2022, 4:18 PM

                    @juergenbrandstaetter said in How to configure Dynamic DNS with unsupported DNS provider:

                    I need reliable dial-in

                    Several suggestions :

                    Talk with your ISP ^^ as thiose are the ones who 'cut' the connection. So you need a reliable ISP one that changes your IP every xx where xx is days or weeks.

                    For example : you could "redo": your WAN connection on your side every 24 hours. Right after it comes up, dyndns is launched.

                    Also : install the pfSEnse cron package.
                    You will find :
                    fb062972-81c9-42e6-93f5-91fb830601d5-image.png
                    Which means : run every 1 minute after an hour.
                    You could duplicate that line, and run your line every 5 minutes .!

                    Or : why not : get a semi static ISP WAN IP.
                    I've tested that for the last several years or so : works great.

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

                    J 1 Reply Last reply Dec 13, 2022, 4:44 PM Reply Quote 0
                    • J
                      juergenbrandstaetter @viragomann
                      last edited by Dec 13, 2022, 4:42 PM

                      @viragomann ok, so with "the update is applied after the WAN IP has changed" you mean that pfSense automatically triggers the DynDNS update after the WAN interface has experienced a change in its IP by the provider?

                      Because, if that's so, that's all I need. In that case, the DNS is more or less always in sync with the actual IP my WAN interface has.

                      That with the cron once a day I read before, so I thought that it is only updating it once per day (which would be too much out-of-sync after an IP change)

                      V 1 Reply Last reply Dec 13, 2022, 4:46 PM Reply Quote 0
                      • J
                        juergenbrandstaetter @Gertjan
                        last edited by Dec 13, 2022, 4:44 PM

                        @gertjan Thanks! Unfortunately I have no influence on my provider here. But with the DynDNS it worked out quite well so far.

                        As for the cron-job: I am a bit confused now. Because both you and @viragomann mention the cron-job - but on the other hand @viragomann indicated that there is an immediate update if the IP changes on the WAN interface.

                        Why do I need that cron-job additionally? Just for safety?

                        1 Reply Last reply Reply Quote 0
                        • V
                          viragomann @juergenbrandstaetter
                          last edited by Dec 13, 2022, 4:46 PM

                          @juergenbrandstaetter
                          This requires that there is the public IP assigned to pfSense WAN, so that pfSense notices the change.

                          If there is an ISP router in front of it you can only use the cron job and set it to a short interval, e.g. 3 minutes.

                          J 1 Reply Last reply Dec 13, 2022, 4:52 PM Reply Quote 0
                          • J
                            juergenbrandstaetter @viragomann
                            last edited by Dec 13, 2022, 4:52 PM

                            @viragomann thanks. I think I understand.

                            In my case I my providers router works in bridge mode, and my WAN interface is configured as DHCP -> so I guess it should recognize, if the IP changes

                            G 1 Reply Last reply Dec 14, 2022, 7:21 AM Reply Quote 0
                            • G
                              Gertjan @juergenbrandstaetter
                              last edited by Dec 14, 2022, 7:21 AM

                              @juergenbrandstaetter said in How to configure Dynamic DNS with unsupported DNS provider:

                              In my case I my providers router works in bridge mode, and my WAN interface is configured as DHCP -> so I guess it should recognize, if the IP changes

                              Not recognize 😊
                              If you use a DHCP client on your WAN interface, this client will initiate a DHCP lease request as soon as the WAN interface comes 'UP'.
                              The ISP, with it's DHCP server, will give the client an IP (your WAN IP), a gateway, maybe a DNS or two.
                              A DHCP lease has always a duration, like 24 hours. So, half way that duration, the DHCP client will wake up, and request for an DHCP lease 'extension'. It will of course suggest that it likes to keep the actual (WAN) IP.
                              The ISP DHCP server can grant that lease extension, or so, "NO, now you get a new IP (WAN)".

                              The WAN IP changes (or not) a "interface event" is fired, and this will affect all processes that are "bound to" these interfaces, so that these process can be made aware that an IP on some interface changed (or not).
                              On of these process is : the DynDNS. It has stored the (now past) WAN IP in a file, it will compare it with the actual WAN IP, and fire up a dyndns update if the tow are different. And it will update the file with the current WAN IP for future events.

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

                              1 Reply Last reply Reply Quote 0
                              1 out of 14
                              • First post
                                1/14
                                Last post
                              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                                This community forum collects and processes your personal information.
                                consent.not_received