import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { TestDNSAnswerRequest, TestDNSAnswerResponse } from "../models/models_0"; import type { Route53ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../Route53Client"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link TestDNSAnswerCommand}. */ export interface TestDNSAnswerCommandInput extends TestDNSAnswerRequest { } /** * @public * * The output of {@link TestDNSAnswerCommand}. */ export interface TestDNSAnswerCommandOutput extends TestDNSAnswerResponse, __MetadataBearer { } declare const TestDNSAnswerCommand_base: { new (input: TestDNSAnswerCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: TestDNSAnswerCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

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.

*

This call only supports querying public hosted zones.

* *

The TestDnsAnswer returns information similar to what you would expect from the answer * section of the dig command. Therefore, if you query for the name * servers of a subdomain that point to the parent name servers, those will not be * returned.

*
* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53Client, TestDNSAnswerCommand } from "@aws-sdk/client-route-53"; // ES Modules import * // const { Route53Client, TestDNSAnswerCommand } = require("@aws-sdk/client-route-53"); // CommonJS import * // import type { Route53ClientConfig } from "@aws-sdk/client-route-53"; * const config = {}; // type is Route53ClientConfig * const client = new Route53Client(config); * const input = { // TestDNSAnswerRequest * HostedZoneId: "STRING_VALUE", // required * RecordName: "STRING_VALUE", // required * RecordType: "SOA" || "A" || "TXT" || "NS" || "CNAME" || "MX" || "NAPTR" || "PTR" || "SRV" || "SPF" || "AAAA" || "CAA" || "DS" || "TLSA" || "SSHFP" || "SVCB" || "HTTPS", // required * ResolverIP: "STRING_VALUE", * EDNS0ClientSubnetIP: "STRING_VALUE", * EDNS0ClientSubnetMask: "STRING_VALUE", * }; * const command = new TestDNSAnswerCommand(input); * const response = await client.send(command); * // { // TestDNSAnswerResponse * // Nameserver: "STRING_VALUE", // required * // RecordName: "STRING_VALUE", // required * // RecordType: "SOA" || "A" || "TXT" || "NS" || "CNAME" || "MX" || "NAPTR" || "PTR" || "SRV" || "SPF" || "AAAA" || "CAA" || "DS" || "TLSA" || "SSHFP" || "SVCB" || "HTTPS", // required * // RecordData: [ // RecordData // required * // "STRING_VALUE", * // ], * // ResponseCode: "STRING_VALUE", // required * // Protocol: "STRING_VALUE", // required * // }; * * ``` * * @param TestDNSAnswerCommandInput - {@link TestDNSAnswerCommandInput} * @returns {@link TestDNSAnswerCommandOutput} * @see {@link TestDNSAnswerCommandInput} for command's `input` shape. * @see {@link TestDNSAnswerCommandOutput} for command's `response` shape. * @see {@link Route53ClientResolvedConfig | config} for Route53Client's `config` shape. * * @throws {@link InvalidInput} (client fault) *

The input is not valid.

* * @throws {@link NoSuchHostedZone} (client fault) *

No hosted zone exists with the ID that you specified.

* * @throws {@link Route53ServiceException} *

Base exception class for all service exceptions from Route53 service.

* * * @public */ export declare class TestDNSAnswerCommand extends TestDNSAnswerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: TestDNSAnswerRequest; output: TestDNSAnswerResponse; }; sdk: { input: TestDNSAnswerCommandInput; output: TestDNSAnswerCommandOutput; }; }; }