mirror of
https://github.com/freedbygrace/PSOPNSenseAPI.git
synced 2026-07-26 11:58:18 +00:00
1.1 KiB
1.1 KiB
Get-OPNSenseDNSServer
SYNOPSIS
Gets DNS server settings from an OPNSense firewall.
SYNTAX
Get-OPNSenseDNSServer
DESCRIPTION
The Get-OPNSenseDNSServer cmdlet retrieves DNS server settings from an OPNSense firewall.
EXAMPLES
Example 1: Get DNS server settings
Get-OPNSenseDNSServer
This example retrieves the DNS server settings from the OPNSense firewall.
PARAMETERS
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
None
OUTPUTS
System.Object
Returns an object representing the DNS server settings.
NOTES
This cmdlet requires a connection to an OPNSense firewall. Use Connect-OPNSense to establish a connection.
RELATED LINKS
Set-OPNSenseDNSServer Get-OPNSenseSystemDNS Set-OPNSenseSystemDNS