Slide 68
Slide 68 text
68
Route53 (もしくはPowerDNS) のWeb APIを実⾏する
②公開鍵をDNSで公開
client = Aws::Route53::Client.new(
region: REGION,
access_key_id: access_key_id,
secret_access_key: secret_access_key
)
client.change_resource_record_sets({
change_batch: {
changes: [
{
action: "CREATE",
resource_record_set: {
name: domain,
type: "TXT",
ttl: 600,
resource_records: [ { value: "v=DMARC1; k=rsa; p=MIBI...." }],
},
},
],
},
hosted_zone_id: HOSTED_ZONE_ID,
})