Introduction
The Stork server depends on agents deployed on each DNS/DHCP server machine managed by Stork. Each DNS/DHCP server must have its own instance of the Stork agent, installed locally on that machine.
Each instance of the Stork agent must be registered with the Stork server before the Stork server can use that agent. This establishes a secure communications channel between that agent and the Stork server.
Each agent must then be authorized in the Stork server web UI. This tells the server to accept that agent as trustworthy.
Re-Registering
In the event of problems with communication between the Stork server and a single agent, one troubleshooting step may be to re-register the agent. There is little cost in doing so, and if the problem is due to corrupt or stale registration information, this is an easy fix.
If the agent is already registered, repeating the registration process will replace the previous registration.
Registration
Summary
- Stop the Stork agent service, if it is running (
systemctl stop isc-stork-agent) - Initiate the registration dialog (see below)
- Answer the prompts in the dialog
- Start the Stork agent service (
systemctl start isc-stork-agent)
Initiating the dialog
The base command is stork-agent register. That invokes the stork-agent program, with the register subcommand as the only argument. However, the command must be run under the same user account the Stork agent service will normally run as.
The default account used by ISC packages and documentation is itself a user called stork-agent. With that in mind, the following example of a complete command may be helpful:
sudo -u stork-agent -- stork-agent register
If the user account is different, change -u stork-agent in the above appropriately. The stork-agent register part is the actual command, and should always be the same.
This command will begin an interactive dialog. The agent will prompt for information to use during registration. In most cases, you can press ENTER/RETURN to accept the default.
Note that some questions pertain to how the agent should contact the Stork server, and others tell the agent how it should identify itself to the Stork server (and in effect, tell the server how it should contact the agent).
The register subcommand also accepts several options (switches). For a complete list, consult the stork-agent(8) manual page. This can be used to script the registration process. See the complex command example, below.
Stork server URL
The one option without a default is the URL of the Stork server. The prompt is:
>>> Enter the URL of the Stork server:
Typically, this will be the same base URL you use to access the Stork web user interface. Both your web browser, and the Stork agent, talk to the same Stork web server.
When providing your response, note the following:
- You must use complete URL syntax, not a bare hostname or IP address
- You must include the port number
- The URL can use an IP address, an unqualified name, or a fully-qualified domain name
- If a name is used, it must be resolvable on the Stork agent machine
An example response might look like:
http://stork.example.com:8080
Note the port number (8080), which is the default for the Stork server. An example using an IP address might be:
http://192.0.2.42:8080
This URL can also be given via the --server-url switch to the register subcommand.
Stork agent TCP port
The default TCP port for the Stork agent to listen on is 8080. If you have changed this port, you will need to provide the alternate port number during the registration dialog. For example:
>>>> Enter port number that Stork Agent will listen on [8080]: 8081
Changing the Stork agent listening port is common if the Stork server and the Stork agent are both running on the same host server.
This port can also be given via the --agent-port switch to the register subcommand.
Sample dialog
Below is a sample of what the agent registration might look like, when run on a DHCP server named kea1, against a Stork server named stork.example.com.
root@kea1# sudo -u stork-agent -- stork-agent register
>>> Enter the URL of the Stork server: http://stork.example.com:8080
>>> Enter the Stork server access token (optional):
>>> Enter IP address or FQDN of the host with Stork agent (for the Stork server connection) [kea1]:
>>> Enter port number that Stork Agent will listen on [8080]:
INFO[2026-12-01 02:25:46] register.go:96 Forced agent certificates regeneration.
INFO[2026-12-01 02:25:46] register.go:450 =============================================================================
INFO[2026-12-01 02:25:46] register.go:451 AGENT TOKEN: E634D0B9C98B1F347BBB7E99AE238EE48BF61E377BECC01BE73439892B8FA542
INFO[2026-12-01 02:25:46] register.go:452 =============================================================================
INFO[2026-12-01 02:25:46] register.go:455 Authorize the machine in the Stork web UI
INFO[2026-12-01 02:25:46] register.go:468 Try to register agent in Stork Server
INFO[2026-12-01 02:25:46] register.go:274 Machine registered
INFO[2026-12-01 02:25:46] register.go:346 Stored agent-signed cert and CA cert
INFO[2026-12-01 02:25:46] main.go:317 Registration completed successfully
root@kea1#
Sample complex command
This command would perform the same registration as in the above dialog:
sudo -u stork-agent -- stork-agent register --server-url http://stork.example.com:8080 --agent-host kea1 --agent-port 8080 --non-interactive
Authorization
Once the registration process completes, the agent must be authorized on the Stork server.
- Log in to the Stork web user interface
- In the menu at the top of the page, click Services, then Machines.
- Depending on your screen width, you may need to first click the "hamburger menu" icon to reveal the menu.
- A "hamburger menu" icon is three stacked horizontal lines
- On the Machines page, click Unauthorized in the filter buttons (at the right, near the top)
- Find the DNS/DHCP machine in question
- In the Action column on the far right, click the hamburger menu icon
- In the resulting menu, click Authorize

Confirming authorization
Optionally, you may confirm the Stork server is communicating with the Stork agent.
- Click the Authorized filter button
- Find the same DNS/DHCP machine again.
- Click the machine name (blue hyperlink)
- Confirm machine information appears and is accurate

Removing Machines
The Stork server's management database retains records of each Machine object indefinitely. You may want to remove an old Machine registration, either because it was re-registered under a different ID, or simply because that DNS/DHCP server has been retired.
- Log in to the Stork web user interface
- In the menu at the top of the page, click Services, then Machines.
- On the Machines page, click Authorized in the filter buttons (at the right, near the top)
- Find the DNS/DHCP machine in question
- In the Action column on the far right, click the hamburger menu icon
- In the resulting menu, click Remove

