Remove-IBDNSAlias
SYNOPSIS
Remove DNS aliases for a specified hostname in Infoblox.
SYNTAX
Remove-IBDNSAlias [-Hostname] <String> [-Aliases] <String[]> [-WhatIf] [-Confirm] [<CommonParameters>]
DESCRIPTION
This function removes DNS aliases for a given hostname in Infoblox. If the hostname does not include the DNS domain, it appends the default domain before updating Infoblox. The function ensures that the specified aliases are removed from the host record.
EXAMPLES
EXAMPLE 1
Removes the DNS aliases "alias1" and "alias2" from the hostname "server01" in Infoblox.
EXAMPLE 2
Removes the DNS alias "alias1.gentgrp.gent.be" from the fully qualified hostname "server01.gentgrp.gent.be" in Infoblox.
PARAMETERS
-Hostname
The hostname for which DNS aliases will be removed. If the hostname does not include the DNS domain, it will be appended automatically.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False
-Aliases
An array of DNS aliases to be removed from the specified hostname.
Type: String[]
Parameter Sets: (All)
Aliases: Aliasen
Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.