I'm creating an aws.Route53.Record for a email own...
# aws
s
I'm creating an aws.Route53.Record for a email ownership validation and trying to insert an
@
for the host name, but providing
@
as the string to the
name:
RecordArg value is not adequate, since the actual record that gets created appends the FQDN to it, e.g.
@.<http://domain.com|domain.com>
instead of just
@
.
Copy code
const ownershipValidationDNSRecord = new aws.route53.Record("ownershipDNSRecord", {
  name: '@',
  records: ['provided validation string from email provider'],
  zoneId: zone.zoneId,
  type: aws.route53.RecordType.TXT,
  ttl: 3600,
});
the above code creates the following record (screenshot)
@.<http://domain.com|domain.com>          TXT        Simple     -        No       "value"       3600        - ...
Is there any way to suppress this postfix on the hostname?
l
What instructions suggested
@
as the name? Some DNS record providers use the at-symbol as the default, meaning "nothing". Route53 doesn't. If the instructions you're following say something like "use the default @ value for the name", then in Route53 you need to leave the name blank. The default in Route53 is just an empty string.
s
thanks, will try this
leaving blank inserted domain.com but validation worked. thanks