Skip to main content

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"
}
This page was last reviewed on 15 August 2024. It needs to be reviewed again on 15 February 2025 by the page owner #modernisation-platform .
This page was set to be reviewed before 15 February 2025 by the page owner #modernisation-platform. This might mean the content is out of date.