DnsStream can be uninstalled using the uninstall script supplied with each platform-specific package - this is copied to the installation directory by the install script.
On Windows, the uninstaller stops the Windows service, stops the ETW trace session, removes the service registration, and deletes the installation files and data directories.
On Linux, the uninstaller stops and disables the systemd service, removes the service definition, deletes the installation directory, and removes the runtime socket directory.
Uninstalling DnsStream has no effect on Windows or Linux DNS Server services. DNS resolution continues normally throughout and after the uninstall process.
uninstall.ps1 script - located in the DnsStream installation directoryYou do not need to:
The DnsStream install.ps1 script creates the Telemity DnsStream Windows Event Log source during installation, however, the uninstall.ps1 script does not remove it during uninstallation. This is intentional - removing the event log source would also remove all historical DnsStream log entries, including metrics history and any warning or error events that may be needed for post-uninstall review.
Use the following command to remove the event log source and all DnsStream entries from the Windows Event Log manually after uninstall:
Remove-EventLog -LogName "Telemity DnsStream"
This permanently deletes all DnsStream entries from the Windows Event Log. Export any entries you wish to retain before running this command.
The uninstaller modifies the system as follows:
| Location | Contents | Action |
|---|---|---|
%ProgramFiles%\Telemity\DnsStream\ |
DnsStream binary and supporting files | Deleted |
%ProgramData%\Telemity\DnsStream\ |
Configuration file and runtime data | Deleted |
| Windows service | Telemity DnsStream service registration |
Deleted |
| ETW trace session | Telemity DnsStream real-time ETW session |
Stopped |
| Windows Event Log | Telemity DnsStream event log source |
Retained - see Event log retention |
The uninstaller checks whether the Telemity DnsStream service exists and, if it is running, it issues a stop command before proceeding.
DnsStream registers a named real-time ETW consumer session called Telemity DnsStream when it starts. Stopping the Windows service does not release the ETW session registration - the uninstaller explicitly stops it using logman to ensure the session is fully cleaned up.
Open PowerShell as Administrator and run the uninstall.ps1 file found under the %ProgramFiles%\Telemity\DnsStream\ directory:
# Check signed files have a status of "Valid":
(Get-AuthenticodeSignature $Env:ProgramFiles\Telemity\DnsStream\uninstall.ps1).Status
# Check signed files have a subject of "CN=Telemity Ltd, O=Telemity Ltd, L=Redhill, S=Surrey, C=GB":
(Get-AuthenticodeSignature $Env:ProgramFiles\Telemity\DnsStream\uninstall.ps1).SignerCertificate.Subject
& $Env:ProgramFiles\Telemity\DnsStream\uninstall.ps1 -Confirm
Optionally delete the Telemity DnsStream Windows Event Log (as noted under Event log retention):
Remove-EventLog -LogName "Telemity DnsStream"
uninstall.sh script located under /opt/telemity/dnsstream/bin/You do not need to:
The Linux uninstaller modifies the system as follows:
| Location | Contents | Action |
|---|---|---|
/opt/telemity/dnsstream/ |
DnsStream binary, configuration and runtime data | Deleted |
/run/telemity/dnsstream/ |
Runtime socket directory | Deleted |
| systemd service | telemity-dnsstream.service |
Stopped, disabled and removed |
The uninstaller performs the following actions:
telemity-dnsstream.service if it exists.telemity-dnsstream.service./etc/systemd/system/telemity-dnsstream.service./opt/telemity/dnsstream./run/telemity/dnsstream./opt/telemity and /run/telemity if they are empty.Open bash as root and run the uninstall.sh file found under the /opt/telemity/dnsstream/bin directory:
/opt/telemity/dnsstream/bin/uninstall.sh --confirm
Following this the dnsstream user and group created ahead of or during installation can be removed if they are no longer required.