< Back

Add-DynDnsHttpRedirect

Sat Jan 18, 2020 8:14 pm

NAME Add-DynDnsHttpRedirect



SYNOPSIS

The command Add-DynDnsHttpRedirect creates a new HTTP Redirect service on the zone/node indicated.





SYNTAX

Add-DynDnsHttpRedirect [-Zone] <String> [[-Node] <String>] [-Url] <String> [[-ResponseCode] {301 | 302}]

[-Confirm] [-IncludeUri] [-WhatIf] [<CommonParameters>]





DESCRIPTION

The command Add-DynDnsHttpRedirect creates a new HTTP Redirect service on the zone/node indicated. Note: Creating

a new HTTP redirect will automatically publish the change to the zone.





PARAMETERS

-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the command.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-IncludeUri [<SwitchParameter>]

Sets the flag indicating whether the redirection should include the originally requested URI.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Node <String>

A node in the specified zone. If the node does not end with the domain of the zone, it will be appended.



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResponseCode <String>

The HTTP response code to return for redirection.



301 - Permanent redirect\\ 302 - Temporary redirect



Required? false

Position? 3

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Url <String>

The target URL where the client is sent. Must begin with either http:// or https://.



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the command runs. The command is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Zone <String>

The zone in which to create the HTTP Redirect service.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

DynDnsHttpRedirect







NOTES









--------------------------- Example ---------------------------



PS C:\\> Add-DynDnsHttpRedirect -Zone anovelidea.org -Node newtest -Url https://www.anovelidea.org -ResponseCode

301 -IncludeUri

WARNING: This will autopublish the HTTP redirect to the zone.



Confirm

Are you sure you want to perform this action?

Performing the operation "Create HTTP redirect to https://www.anovelidea.org" on target "newtest.anovelidea.org".

[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): y





Zone : anovelidea.org

Name : newtest.anovelidea.org

Url : https://www.anovelidea.org

ResponseCode : 301

IncludeUri : True



Create a new HTTP redirect service to permanently redirect newtest.anovelidea.org to https://www.anovelidea.org.



RELATED LINKS

Online Version: https://powershell.anovelidea.org/modul ... irect.html

Get-DynDnsHttpRedirect https://powershell.anovelidea.org/modul ... irect.html

Remove-DynDnsHttpRedirect https://powershell.anovelidea.org/modul ... irect.html

Create HTTP Redirect (API) https://help.dyn.com/create-http-redirect-api/