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

    How to use dynamic DNS without external services

    DHCP and DNS
    dyndns dns android cellular
    2
    6
    968
    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
      Shedaim
      last edited by

      Hello,

      I have several Android endpoints with changing IP addresses. I'd like to dynamically update their IP addresses to pfsense's DNS.
      I am not connected to the internet, therefore can't use known DynDNS services. I'd like the end-point devices to send an HTTP POST to their local pfsense's DNS, with their hostname and IP address. Is this possible?

      Thank you,

      Shedaim

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        Huh? If your not on the internet how are the devices going to post anything to your pfsense.. Are they on your local network, wired or wireless?

        Why would you not just have say pfsense run dhcp and register their IPs it give them..

        Please go into more detail of your setup so we can figure out the best way to accomplish what your wanting to accomplish.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • S
          Shedaim
          last edited by

          Hi,

          I am using a virtual LTE core to provide services to several Android devices.
          Those devices are getting their IP address dynamically from the P-GW from a pre-configured IP pool for a specific APN.
          I want to be able to make phone calls using SIP client to SIP client (Real Point-to-point == No server). In order to do that, I need to be calling a hostname/phone number (Therefore dynDNS).
          Pfsense is hosting FW, routing and DNS capabilities. I'd like Pfsense to host the dynamic DNS capability as well.

          1 Reply Last reply Reply Quote 0
          • johnpozJ
            johnpoz LAYER 8 Global Moderator
            last edited by

            Ok that makes way more sense now...

            There are no services in pfsense for such a function. The bind package could be used those, it allows for dynamic updates.. Which then sure you could use some sort of web page to update it with..

            But there is nothing out of the box to click here, with the gui for example too allow this..

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • S
              Shedaim
              last edited by

              Ok, thanks.
              I saw that bind was installed already. Now, searching for "how to" guides, I saw that a file named.conf should exist. Am I supposed to create it myself? have you done this in the past?

              Right now if I try to use nsupdate to update a record:

              nsupdate
              zone zone_name
              update add new_dns_entry_name600 in A 1.1.1.1
              send
              

              I get the following error:

              Reply from SOA query:
              ;; ->>HEADER<<- opcode: QUERY, status: REFUSED, id:  10164
              ;; flags: qr ra; QUESTION: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0
              ;; QUESTION SECTION:
              ;new_dns_entry_name                           IN      SOA
              

              I believe I should be using a key or something to be able to do that but I could not find any relevant key in the Pfsense VM.

              Thanks for the help

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by johnpoz

                yeah you need to create your key ;)

                Simple google for bind dynamic dns should get you going.

                Have not done it in years... But guess I could fire bind in pfsense and do a walk through... Pretty busy with getting back to work from holiday so not sure be able to get to until later.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.7.2, 24.11

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