AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

TestDNSAnswerInput

import "github.com/aws/aws-sdk-go/service/route53"

type TestDNSAnswerInput struct { EDNS0ClientSubnetIP *string `location:"querystring" locationName:"edns0clientsubnetip" type:"string"` EDNS0ClientSubnetMask *string `location:"querystring" locationName:"edns0clientsubnetmask" type:"string"` HostedZoneId *string `location:"querystring" locationName:"hostedzoneid" type:"string" required:"true"` RecordName *string `location:"querystring" locationName:"recordname" type:"string" required:"true"` RecordType *string `location:"querystring" locationName:"recordtype" type:"string" required:"true" enum:"RRType"` ResolverIP *string `location:"querystring" locationName:"resolverip" type:"string"` }

Gets the value that Amazon Route 53 returns in response to a DNS request for a specified record name and type. You can optionally specify the IP address of a DNS resolver, an EDNS0 client subnet IP address, and a subnet mask.

EDNS0ClientSubnetIP

Type: *string

If the resolver that you specified for resolverip supports EDNS0, specify the IPv4 or IPv6 address of a client in the applicable location, for example, 192.0.2.44 or 2001:db8:85a3::8a2e:370:7334.

EDNS0ClientSubnetMask

Type: *string

If you specify an IP address for edns0clientsubnetip, you can optionally specify the number of bits of the IP address that you want the checking tool to include in the DNS query. For example, if you specify 192.0.2.44 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the checking tool will simulate a request from 192.0.2.0/24. The default value is 24 bits for IPv4 addresses and 64 bits for IPv6 addresses.

The range of valid values depends on whether edns0clientsubnetip is an IPv4 or an IPv6 address:

  • IPv4: Specify a value between 0 and 32

  • IPv6: Specify a value between 0 and 128

HostedZoneId

Type: *string

The ID of the hosted zone that you want Amazon Route 53 to simulate a query for.

HostedZoneId is a required field

RecordName

Type: *string

The name of the resource record set that you want Amazon Route 53 to simulate a query for.

RecordName is a required field

RecordType

Type: *string

The type of the resource record set.

RecordType is a required field

ResolverIP

Type: *string

If you want to simulate a request from a specific DNS resolver, specify the IP address for that resolver. If you omit this value, TestDnsAnswer uses the IP address of a DNS resolver in the AWS US East (N. Virginia) Region (us-east-1).

Method

GoString

func (s TestDNSAnswerInput) GoString() string

GoString returns the string representation

SetEDNS0ClientSubnetIP

func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetIP(v string) *TestDNSAnswerInput

SetEDNS0ClientSubnetIP sets the EDNS0ClientSubnetIP field's value.

SetEDNS0ClientSubnetMask

func (s *TestDNSAnswerInput) SetEDNS0ClientSubnetMask(v string) *TestDNSAnswerInput

SetEDNS0ClientSubnetMask sets the EDNS0ClientSubnetMask field's value.

SetHostedZoneId

func (s *TestDNSAnswerInput) SetHostedZoneId(v string) *TestDNSAnswerInput

SetHostedZoneId sets the HostedZoneId field's value.

SetRecordName

func (s *TestDNSAnswerInput) SetRecordName(v string) *TestDNSAnswerInput

SetRecordName sets the RecordName field's value.

SetRecordType

func (s *TestDNSAnswerInput) SetRecordType(v string) *TestDNSAnswerInput

SetRecordType sets the RecordType field's value.

SetResolverIP

func (s *TestDNSAnswerInput) SetResolverIP(v string) *TestDNSAnswerInput

SetResolverIP sets the ResolverIP field's value.

String

func (s TestDNSAnswerInput) String() string

String returns the string representation

Validate

func (s *TestDNSAnswerInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: