Files
PSOPNSenseAPI/docs/cmdlets/Get-OPNSenseDNSServer.md

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.

Set-OPNSenseDNSServer Get-OPNSenseSystemDNS Set-OPNSenseSystemDNS