Creating new DNS zones
DNS zones are created in the Modernisation Platform core-network-services account through Terraform.
We provide modernisation-platform.service.justice.gov.uk and modernisation-platform.internal to customers on a per-business unit basis.
We accommodate exceptional requests for legacy domain names when guidance for naming things cannot be followed.
Creating new zones
New DNS zones are added in code here.
Example
locals {
modernisation-platform-domain = "modernisation-platform.service.justice.gov.uk"
modernisation-platform-internal-domain = "modernisation-platform.internal"
application-zones = {
new-zone = "an-example-domain.service.justice.gov.uk"
}
}
Delegating new zones to the Modernisation Platform
Email the domains team with the name of the new zone and the associated NS records.
Adding records to new zones
Records should be added to new zones by the requestor in code through the Modernisation Platform Environments repository.
data "aws_route53_zone" "example_zone" {
provider = aws.core-network-services
name = "an-example-domain.service.justice.gov.uk."
}
resource "aws_route53_record" "example_record" {
provider = aws.core-network-services
zone_id = data.aws_route53_zone.example_zone.zone_id
name = "record-in.an-example-domain.service.justice.gov.uk"
type = "A"
}
Was this page useful?