Table of contents
This page was set to be reviewed before 2018-05-22 by the page owner: #govuk-2ndline. This might mean the content is out of date. Read how to review a page.

Domain Name System (DNS) records

The Reliability Engineering team is responsible for managing several DNS zones.

By default, zones are managed using DynDNS.

The following zones use both DynDNS and Amazon Route 53 as dual providers:


The following use Route 53 and Google Cloud DNS:


If zones are managed with two providers, then both sets of records must be updated in both providers


Use the Cabinet-Office account. Once you have a Dyn ID, you can login here.

Amazon Route 53

Use the “production” account. Speak to Infrastructure if you require access.

Google Cloud DNS

Use the “production” account. Speak to Infrastructure if you require access.

Records for GOV.UK systems

There are a few domains that we use:

  • is the old domain name that GOV.UK publishing used to live on. We maintain records that point to Bouncer so that these URLs redirect.
  • and are where GOV.UK lives.

Making changes to

We use a Jenkins job that publishes changes to The job uses Terraform and pushes changes to the selected provider.

To make a change to this zone, begin by adding the records to the yaml file for the zone held in the DNS config repo.

When this has been reviewed and merged, you can deploy the changes using the “Deploy DNS "Jenkins job.

Changes should be deployed for each provider separately, and you should first run a "plan”, and when you’re happy with the changes, run “apply”.

Please note that due to the Terraform state being held in an S3 bucket, you will require access to the GOVUK AWS “production” account to roll changes for both Amazon and Google.

You will not require credentials for Google Cloud. These credentials are stored in Jenkins itself.

DNS for the top level domain

Jisc is a non-profit which provides networking to UK education and government. They control the top-level domain.

Requests to modify the DNS records for should be sent by email to from someone on Jisc’s approved contacts list. Speak to a senior technologist member of GOV.UK or Reliability Engineering if you need to make a change and don’t have access.

2nd line should be notified of any planned changes via email.

  • is a top-level domain so it cannot contain a CNAME record (see RFC 1912 section 2.4 and the page on the GOV.UK bare redirect). Instead, it contains A records that point to anycast IP addresses for our CDN provider.
  • is a CNAME to, which means that we do not need to make a request to Jisc if we want to change CDN providers. Just change where the CNAME points to.

Delegating domains

At the moment Reliability Engineering are also responsible for delegating DNS to other government services.

The request will arrive by email or Zendesk from a member of the GOV.UK Proposition team. The request will contain the service domain name that needs to be delegated and more than one nameserver hostname (usually,

In both Dyn and Route 53, create a new node for the service domain underneath and add NS records for that node.

We do not manage DNS for service domains. If you get a request asking you to add anything other than NS records, it should be rejected. This is so that we’re not the single point of DNS for government.

There are ongoing plans to move this responsibility to a different part of GDS.

Delegating DNS to other Dyn customers

Dyn support say this about delegating DNS to other Dyn customers:

In order to delegate a subdomain to another Dyn Customer, you will also need to create the subdomain as a Child Zone within your account. Once this is created, we can then transfer the Child Zone into the Ministry of Magic account.

If the Ministry of Magic had attempted to create this zone within their account manually, it will give them an error stating that the ‘Parent Zone exists within another account’.

Follow these steps:

  • Open a ticket with Dyn support with the name of the domain to transfer
  • Create a new zone in our Dyn account for the subdomain
  • Create a TXT record on the zone: Case 000001234 with Dyn support - delegate to Ministry of Magic

In order to revoke a domain that’s been delegated in this way, open a ticket with Dyn. As we have control over the parent domain they should be happy to reverse the delegation.

Other weird bits of DNS

If you receive a request to change any other DNS that hasn’t come from the GOV.UK Proposition team, send it to them using the Zendesk group “3rd Line–GOV.UK Proposition”.

More about DNS

This page was set to be reviewed before 2018-05-22 by the page owner: #govuk-2ndline. This might mean the content is out of date. Read how to review a page.