.gov.uk was used as a second-level domain for UK government agencies until 2012 when gov.uk started functioning as a Nominet-registered independent domain. .ac.uk is commonly used as a second-level domain for UK education and research establishments but ac.uk is actually a Nominet-registered domain held by JANET.