> For the complete documentation index, see [llms.txt](https://docs.glesys.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.glesys.com/products/connectivity/domains-and-dns/how-tos/dynamic-dns-in-pfsense.md).

# Dynamic DNS in pfSense

pfSense has support for dynamic DNS with Glesys.

***

pfSense is a popular firewall built on open‑source software. One of our customers has written an add‑on that lets you easily use pfSense to update your records in our DNS service dynamically.

To enable pfSense to update your DNS entries automatically, you first need to create an API key in the Glesys Cloud control panel. The key must have access to "Domains", and you must allow your IP address to use it.

If you don’t know your IP address, you can set it to `0.0.0.0/0`. We recommend creating a dedicated API key that you use solely for DNS updates.

You configure dynamic DNS updates under **Services → Dynamic DNS** in pfSense.

Under **Service type,** select **GleSYS**.

* For **Hostname**, enter the **record ID** of the DNS entry; you can obtain this by using the `list_records` function in our API.
* **Username** is your API user (typically your CL account).
* **Password** is your API key.

Click **Save and Force Update**.

<figure><img src="https://3379166260-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlMZhhdQNcWOpX5Bj48GK%2Fuploads%2FBWL83jy9WtBT7SnSbgco%2Fpfsense-dns.png?alt=media&amp;token=b0895da9-1f37-4ddb-ad78-46423faaed8f" alt=""><figcaption></figcaption></figure>

If you’ve done everything correctly, your IP address will now be added to the DNS record you selected.
