How to use dynamic DNS without external services

  • 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,


  • LAYER 8 Global Moderator

    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.

  • 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.

  • LAYER 8 Global Moderator

    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..

  • 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:

    zone zone_name
    update add new_dns_entry_name600 in A

    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
    ;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

  • LAYER 8 Global Moderator

    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.