private/Functions/Hanwha/Get-HanwhaDNSSettings.ps1

#https://$($ip)/stw-cgi/network.cgi?msubmenu=dns&action=set&Type=Manual&PrimaryDNS=10.119.3.254&SecondaryDNS=10.119.3.254

Function Get-HanwhaDNSSettings {
    [cmdletBinding()]
    Param(
        [Parameter()]
        [hashtable]$Object
    )
    
    <#
    Object Definition:
    @{
        IP = [String(Mandatory)]
        Credential = [PSCredential(Mandatory)]
    }
    #>


    #Set basic Paramters for Invoke-HanwhaCommand
    $CamCmd = @{
        Arguments = @{
            IP = $Object.IP
            Menu = 'network'
            SubMenu = 'dns'
            Action = 'view'
            Parameters = @()
        }
        Credential = $Object.Credential
    }

    return (Invoke-HanwhaCommand @CamCmd).DNS
}