Files
PSOPNSenseAPI/docs/cmdlets/Get-OPNSenseDNSForwarding.md
T

1.3 KiB

Get-OPNSenseDNSForwarding

SYNOPSIS

Gets DNS forwarding settings from an OPNSense firewall.

SYNTAX

Get-OPNSenseDNSForwarding

DESCRIPTION

The Get-OPNSenseDNSForwarding cmdlet retrieves DNS forwarding settings from an OPNSense firewall.

EXAMPLES

Example 1: Get DNS forwarding settings

Get-OPNSenseDNSForwarding

This example retrieves the DNS forwarding 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 forwarding settings.

NOTES

This cmdlet requires a connection to an OPNSense firewall. Use Connect-OPNSense to establish a connection.

Set-OPNSenseDNSForwarding Get-OPNSenseDNSForwardingHost New-OPNSenseDNSForwardingHost Set-OPNSenseDNSForwardingHost Remove-OPNSenseDNSForwardingHost