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

We welcome your feedback on this new version of the documentation. Send your comments to


import ""

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.


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, or 2001:db8:85a3::8a2e:370:7334.


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 for edns0clientsubnetip and 24 for edns0clientsubnetmask, the checking tool will simulate a request from 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


Type: *string

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

HostedZoneId is a required field


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


Type: *string

The type of the resource record set.

RecordType is a required field


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).



func (s TestDNSAnswerInput) GoString() string

GoString returns the string representation


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

SetEDNS0ClientSubnetIP sets the EDNS0ClientSubnetIP field's value.


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

SetEDNS0ClientSubnetMask sets the EDNS0ClientSubnetMask field's value.


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

SetHostedZoneId sets the HostedZoneId field's value.


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

SetRecordName sets the RecordName field's value.


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

SetRecordType sets the RecordType field's value.


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

SetResolverIP sets the ResolverIP field's value.


func (s TestDNSAnswerInput) String() string

String returns the string representation


func (s *TestDNSAnswerInput) Validate() error

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

On this page: