< Back
New-CFDnsRecord
Post
NAME New-CFDnsRecord
SYNOPSIS
Create a new DNS record for a zone. See the record object definitions for required attributes for each record type.
SYNTAX
New-CFDnsRecord [-Type] {A | AAAA | CNAME} [-Name] <String> [-Content] <String> [[-TTL] <Int32>] [[-Proxied] {true
| false}] [<CommonParameters>]
DESCRIPTION
Creates a new DNS record.
PARAMETERS
-Content <String>
DNS record content
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
DNS record name
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Proxied <String>
Whether the record is receiving the performance and security benefits of Cloudflare
Required? false
Position? 4
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-TTL <Int32>
Time to live for DNS record
Required? false
Position? 3
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Type <String>
DNS record type
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
System.Object
NOTES
Example 1
PS C:\\> New-CFDnsRecord -Type A -Name @ -Content 123.123.123.123 -TTL 120 -Proxied true
Creates a DNS record for the domain with a TTL of 120 seconds and which will proxied by Cloudflare
Example 2
PS C:\\> New-CFDnsRecord -Type CNAME -Name msoid -Content clientconfig.microsoftonline-p.net -TTL 3600 -Proxied
false
Creates the DNS record for Microsoft Online ID
Example 3
PS C:\\> New-CFDnsRecord -Type CNAME -Name enterpriseregistration -Content enterpriseregistration.windows.net -TTL
3600 -Proxied false
PS C:\\> New-CFDnsRecord -Type CNAME -Name enterpriseenrollment -Content enterpriseenrollment.manage.microsoft.com
-TTL 3600 -Proxied false
Creates the DNS records for Mobile Device Management for Office 365
RELATED LINKS
SYNOPSIS
Create a new DNS record for a zone. See the record object definitions for required attributes for each record type.
SYNTAX
New-CFDnsRecord [-Type] {A | AAAA | CNAME} [-Name] <String> [-Content] <String> [[-TTL] <Int32>] [[-Proxied] {true
| false}] [<CommonParameters>]
DESCRIPTION
Creates a new DNS record.
PARAMETERS
-Content <String>
DNS record content
Required? true
Position? 2
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Name <String>
DNS record name
Required? true
Position? 1
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Proxied <String>
Whether the record is receiving the performance and security benefits of Cloudflare
Required? false
Position? 4
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-TTL <Int32>
Time to live for DNS record
Required? false
Position? 3
Default value None
Accept pipeline input? False
Accept wildcard characters? false
-Type <String>
DNS record type
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
System.Object
NOTES
Example 1
PS C:\\> New-CFDnsRecord -Type A -Name @ -Content 123.123.123.123 -TTL 120 -Proxied true
Creates a DNS record for the domain with a TTL of 120 seconds and which will proxied by Cloudflare
Example 2
PS C:\\> New-CFDnsRecord -Type CNAME -Name msoid -Content clientconfig.microsoftonline-p.net -TTL 3600 -Proxied
false
Creates the DNS record for Microsoft Online ID
Example 3
PS C:\\> New-CFDnsRecord -Type CNAME -Name enterpriseregistration -Content enterpriseregistration.windows.net -TTL
3600 -Proxied false
PS C:\\> New-CFDnsRecord -Type CNAME -Name enterpriseenrollment -Content enterpriseenrollment.manage.microsoft.com
-TTL 3600 -Proxied false
Creates the DNS records for Mobile Device Management for Office 365
RELATED LINKS