NetworkConfig / VpcConfig | VpcTemplatesConfig / SubnetConfig / SubnetPrivateDnsConfig

Subnet Resource-Based Name configuration.

Use this configuration to define custom DNS name settings for your VPC subnets.

enableDnsAAAARecord: true
enableDnsARecord: true
hostNameType: resource-name
interface ISubnetPrivateDnsConfig {
    enableDnsAAAARecord?: boolean;
    enableDnsARecord?: boolean;
    hostnameType?: "ip-name" | "resource-name";
}

Properties

enableDnsAAAARecord?: boolean

(OPTIONAL) Indicates whether to respond to DNS queries for instance hostname with DNS AAAA records.

false
enableDnsARecord?: boolean

(OPTIONAL) Indicates whether to respond to DNS queries for instance hostnames with DNS A records.

false
hostnameType?: "ip-name" | "resource-name"

The type of hostname for EC2 instances.

For IPv4 only subnets, an instance DNS name must be based on the instance IPv4 address. For IPv6 only subnets, an instance DNS name must be based on the instance ID. For dual-stack subnets, you can specify whether DNS names use the instance IPv4 address or the instance ID.