csperkins.org

Networked Systems H (2020-2021)

Lecture 8: Naming and the Tussle for Control

Lecture 8 discusses naming in the Internet and the tussle for control over the names that can be used. It talks about what is the DNS, how DNS name resolution operates, and technical mechanisms for DNS name resolution. It also considers what names exist, how they are allocated, who controls their allocation, and some of the issues to consider when discussing who should control name allocation.

Part 1: DNS Name Resolution

The first part of the lecture introduces the DNS and DNS name resolution. It describes the structure of the DNS as a distributed database containing records mapping names to IP addresses, along with other information. It reviews the structure of a DNS name. And it outlines the process by which names are resolved to IP addresses.

00:00:00.000 In this lecture, I’d like to talk

00:00:02.043 about naming, and the tussle for control

00:00:04.087 over the names used in the Internet.

 

00:00:07.230 I'll start by introducing what is the

00:00:09.699 DNS, and how does DNS resolution work.

00:00:12.168 Then, I’ll move to talk about the

00:00:14.638 structure and organisation of DNS names and

00:00:17.107 the way names are assigned, the methods

00:00:19.576 for DNS resolution, and some of the

00:00:22.045 politics of how names are assigned in

00:00:24.515 the Internet.

 

00:00:25.320 The paper you see on the slide,

00:00:28.410 the “Tussle in Cyberspace” paper, by David

00:00:31.499 Clark, John Wroclawski, Karen Sollins, and Bob

00:00:34.589 Braden,

 

00:00:35.130 talks about some of these issues in

00:00:38.118 more detail. It talks about some issues

00:00:41.107 of control over the network, how protocol

00:00:44.095 design influences the control that can be

00:00:47.083 provided, how the protocols can evolve,

00:00:49.645 and who can provide control over the

00:00:52.633 protocols.

 

00:00:53.160 And I’d encourage you to read it,

00:00:55.111 as the DNS is one of those

00:00:57.062 areas where we see this tussle most

00:00:59.014 clearly, I think.

 

00:01:03.060 So, to start with, in this part

00:01:05.086 of the lecture, I’d like to talk

00:01:07.112 about DNS name resolution.

 

00:01:08.370 I'll talk a little bit about what

00:01:10.297 is the DNS, a bit about the

00:01:12.223 structure of names, and how the name

00:01:14.150 resolution works.

 

00:01:19.020 So to start with, what is the

00:01:22.319 DNS?

 

00:01:22.890 Well, as we see in the packet

00:01:26.592 diagrams at the top of slide,

00:01:29.764 which have IPv4, on the left,

00:01:32.937 and IPv6 packets, we can see that

00:01:36.638 IP packets contain addresses rather than names.

 

00:01:40.440 When the network is delivering an IP

00:01:43.223 packet it doesn't use a domain name,

00:01:46.007 it uses an IP address. And the

00:01:48.790 IP addresses are designed for efficient processing

00:01:51.574 by routing hardware. They’re not designed to

00:01:54.357 be human readable.

 

00:01:55.650 Now, we have been lucky enough,

00:01:58.422 I think, that IPv4 addresses are at

00:02:01.657 least approximately human readable, at least no

00:02:04.891 less so than a phone number,

00:02:07.664 for example, and so people have used

00:02:10.898 them

 

00:02:11.460 as human readable identifiers in some cases.

00:02:14.550 But, as we move more and more

00:02:17.639 towards IPv6, this is not really possible;

00:02:20.729 the IPv6 addresses are not at all

00:02:23.819 memorable.

 

00:02:24.360 So, as users, we need a way

00:02:27.616 of using more meaningful names for devices

00:02:30.873 on the network, when we're connecting to

00:02:34.129 devices on the network,

 

00:02:36.090 that can be translated into the IP

00:02:39.267 addresses which the network uses internally.

 

00:02:42.090 And the Domain Name System, the DNS,

00:02:45.884 provides such a

 

00:02:47.610 naming scheme.

 

00:02:50.430 The DNS is a distributed database.

00:02:52.941 It runs on top of the Internet,

00:02:55.871 and maps human readable names into IP

00:02:58.801 addresses.

 

00:03:03.330 If you're going to a website,

00:03:05.808 and the example here is my website

00:03:08.699 and the teaching page where you can

00:03:11.589 find the lecture materials for this course,

 

00:03:14.580 you start with a URL, in this

00:03:21.106 case https://cperkins.org/teaching/.

 

00:03:23.070 And that comprises,

 

00:03:25.440 at the start, the protocol used to

00:03:28.342 access the site, HTTPS. It’s got a

00:03:31.244 domain name, and it's got the file

00:03:34.146 part which specifies which particular file,

00:03:36.633 which particular directory on the site,

00:03:39.121 to access.

 

00:03:40.050 And you can extract the domain name

00:03:43.631 from that, in this case www.csperkins.org

 

00:03:46.800 And that's the name of the site.

 

00:03:52.200 But, of course, that's just the name,

00:03:54.111 it's not something which can be used

00:03:56.021 in the packets.

 

00:03:56.940 So the role of the DNS is

00:03:59.081 to translate that domain name, and turn

00:04:01.222 it into a set of IP addresses

00:04:03.363 which can be used to reach the

00:04:05.504 server.

 

00:04:05.910 So you'd feed that name into the

00:04:08.697 DNS, and out would pop a set

00:04:11.484 of IP addresses. And, in this case,

00:04:14.271 for this particular site, there’d be an

00:04:17.058 IPv4 address and an IPv6 address,

00:04:19.447 as you see at the bottom of

00:04:22.234 the slide.

 

00:04:23.130 And for people and applications, we deal

00:04:25.935 with the names. People don't care about

00:04:28.739 the IP addresses, they care about the

00:04:31.544 names, and the application’s should care about

00:04:34.349 the names.

 

00:04:35.250 And the Internet routing and forwarding should

00:04:37.362 deal with the IP addresses. And the

00:04:39.473 very last step before establishing a connection,

00:04:41.585 should be to resolve the name to

00:04:43.697 the addresses

 

00:04:44.400 which can then be used to establish

00:04:46.479 the connection. And everything else in the

00:04:48.558 application should work on the names.

 

00:04:55.590 We see that the DNS names are

00:05:01.089 structured hierarchically.

 

00:05:02.760 There’s a sequence of subdomains, a top-level

00:05:07.794 domain, and the DNS root.

 

00:05:11.490 We start with the subdomains, which describe

00:05:15.825 the particular site, the particular part within

00:05:20.159 the site. And, in this case,

00:05:23.875 the subdomains are www and csperkins.

 

00:05:27.690 And obviously there are lots of these.

00:05:33.274 We’re used to sites such as google.com

00:05:38.857 or facebook.com, or in the university dcs.glasgow.ac.uk

00:05:44.441 where the “dcs”, “glasgow”, and “ac”,

00:05:49.227 are the subdomains.

 

00:05:51.720 The subdomains all live within a top-level

00:05:54.888 domain.

 

00:05:55.440 The top-level domain can be either a

00:05:58.906 country code top-level domain such as “.uk”,

00:06:02.372 “.de”, “.cn” for China, “.io” for the

00:06:05.837 British Indian Ocean Territory, “.ly” for Libya,

00:06:09.303 and so on. Or it can be

00:06:12.769 a generic top-level domain, such as “.com”,

00:06:16.235 “.org”, or “.net”.

 

00:06:17.820 And the top-level domains live within the

00:06:20.542 DNS root.

 

00:06:21.420 The DNS root is, kind of,

00:06:24.043 the invisible bit after the “.org” in

00:06:27.102 this case. It’s the servers which identify

00:06:30.162 and deliver the top-level domains. Someone has

00:06:33.222 to control what is the set of

00:06:36.282 possible top-level domains, and it's the DNS

00:06:39.342 root which defines this.

 

00:06:41.190 And there’s a set of what are

00:06:43.561 known as root servers, which advertise the

00:06:45.932 top-level domains, and specify the top of

00:06:48.303 the hierarchy.

 

00:06:49.080 And,

 

00:06:50.910 as I think should be clear after

00:06:53.511 a little bit of thought, the DNS

00:06:56.111 root can't live in the DNS.

 

00:06:58.440 This is the place where you start

00:07:00.958 doing DNS resolution, so the root servers

00:07:03.477 have to have well-known, fixed, IP addresses,

00:07:05.995 and be reachable by IP address,

00:07:08.153 because they're the thing you contact in-order

00:07:10.672 to start making use of the DNS.

 

00:07:13.290 So new DNS resolves need to be

00:07:15.782 able to reach them to find the

00:07:18.273 top-level domains, before they can answer DNS

00:07:20.765 queries. So the root has to work

00:07:23.256 independently of the DNS.

 

00:07:24.780 Each of the levels in the hierarchy

00:07:27.634 is independently administered, and independently operated.

 

00:07:30.180 The root server operators, and ICANN,

00:07:32.663 operate the root zone, and we'll talk

00:07:35.561 about that in one of the later

00:07:38.458 parts of the lecture. They delegate to

00:07:41.355 the top-level domains, the top-level domains delegate

00:07:44.253 down to the subdomains, and so on.

 

00:07:47.250 And each level is, as I say,

00:07:50.607 independently administered and independently operated. It's a

00:07:53.963 distributed database. It’s distributed both in

 

00:07:56.940 implementation, in that the different parts of

00:07:59.878 the namespace are all controlled and served

00:08:02.816 by different servers, but also in authority,

00:08:05.754 with the authority what goes in each

00:08:08.692 subdomain being delegated down through the hierarchy.

 

00:08:11.730 And each domain, each level in the

00:08:13.655 hierarchy, controls its own data.

 

00:08:20.520 The point of the DNS is to

00:08:23.458 provide name resolution. Given a name,

00:08:25.976 the goal of the DNS is to

00:08:28.914 look up a particular type of record,

00:08:31.852 giving information about that name.

 

00:08:34.050 In the usual case, what you're looking

00:08:36.588 up

 

00:08:37.050 are what are known as A records

00:08:39.941 or AAAA records.

 

00:08:41.280 An A record is a mapping from

00:08:45.209 a name to an IP address.

00:08:48.576 It says, this name, in this case

00:08:52.505 “www.csperkins.org”, corresponds to this IPv4 address,

00:08:55.873 or this set of IPv4 addresses.

 

00:08:59.340 And AAAA records do the same,

00:09:02.538 but for IPv6 addresses.

 

00:09:04.770 What's perhaps less well known is that

00:09:07.352 there are

 

00:09:08.190 several other different types of records in

00:09:13.222 the DNS.

 

00:09:14.760 NS records, for example, can be used

00:09:17.309 to give you the IP address of

00:09:19.859 the name server for domain.

 

00:09:21.780 CNAME records provide that canonical names,

00:09:25.645 they provide alias in the DNS.

 

00:09:29.610 MX records, mail exchanger records, let you

00:09:32.863 look up the email server for a

00:09:36.116 particular domain. And these got generalised into

00:09:39.369 SRV records which allow you to look-up

00:09:42.622 any other type of server within a

00:09:45.875 domain.

 

00:09:46.440 The process of resolution, the process of

00:09:50.180 looking-up a name, happens when a DNS

00:09:53.921 client asks a DNS resolver to perform

00:09:57.661 the look-up

 

00:09:58.830 And this is usually triggered by an

00:10:01.498 application, when it calls the getaddrinfo() system

00:10:04.166 call. And we saw this in the

00:10:06.834 examples of the labs, where the first

00:10:09.502 thing that the client does, after creating,

 

00:10:12.270 after getting the name to look-up,

00:10:14.850 is call getaddrinfo(), then loop through the

00:10:17.860 results, try to make connections to each

00:10:20.870 one in turn.

 

00:10:22.260 A DNS client is just a machine

00:10:25.302 which runs the getaddrinfo() call, and knows

00:10:28.343 how to talk to a resolver.

 

00:10:31.050 A resolve is

 

00:10:33.630 a process, an application, which can look

00:10:38.102 up names.

 

00:10:39.480 The resolver could be process running on

00:10:42.518 your local machine.

 

00:10:43.920 More commonly, it's a process that runs

00:10:46.956 on a machine provided by your Internet

00:10:49.991 service provider, by the network operator,

00:10:52.593 and your client talks over the network

00:10:55.629 to the resolver.

 

00:10:57.030 And when you configure the machine to

00:10:59.501 talk to the network, you specify the

00:11:01.973 IP address of the DNS resolver for

00:11:04.444 that network.

 

00:11:05.250 And if your machine is using dynamic

00:11:08.725 host configuration, with the DHCP protocol,

00:11:11.703 the resolver IP addresses one of the

00:11:15.178 details it gets configured with.

 

00:11:17.760 Usually this happens automatically. You connect your

00:11:20.449 machine to the network, and the network

00:11:23.139 configuration provides the IP address of the

00:11:25.828 resolver your Internet service provider, your network

00:11:28.517 operator, is operating.

 

00:11:34.410 So when the client wishes to look

00:11:37.764 up a name, what happens?

 

00:11:40.260 Well, in this case we're looking-up the

00:11:44.875 A record for my website, www.csperkins.org.

 

00:11:48.930 And the client talks to the resolver,

00:11:52.706 and says what is the A record

00:11:56.481 for csperkins.org?

 

00:11:57.660 And, if we assume that this is

00:11:59.967 the first query this revolver has ever

00:12:02.275 received, so it has no information about

00:12:04.582 the rest of the network,

 

00:12:06.330 what happens is it says, ‘I don't

00:12:08.840 know, first I need to find what

00:12:11.349 is “.org”’. It needs to find the

00:12:13.859 top-level domain, and then worked down.

 

00:12:16.110 So the resolver would talk to the

00:12:18.265 root servers, and it would send a

00:12:20.420 query to the DNS root servers and

00:12:22.575 say what is the name server record,

00:12:24.731 the NS record, for “.org”?

 

00:12:26.370 And that answer would come back from

00:12:29.147 the root servers, and it will tell

00:12:31.923 the local resolver what is the IP

00:12:34.700 address of the name server which knows

00:12:37.477 about “.org”.

 

00:12:38.370 The resolver would then talk to that

00:12:41.122 name server. It would send a query

00:12:43.875 to “.org” to say what's the name

00:12:46.627 server record for “csperkins.org”?

 

00:12:48.300 It’s working its way down the hierarchy.

00:12:50.994 We've gone from the root servers,

00:12:53.302 to “.org”, then it asks “.org” what's

00:12:55.996 the name server for “csperkins.org”.

 

00:12:58.020 And then, once it gets that answer,

00:13:01.378 it contacts that server. It contacts the

00:13:04.735 server for “csperkins.org” and says what is

00:13:08.093 the A record, the address, for “www.csperkins.org”?

 

00:13:11.550 And the server, the DNS server for

00:13:14.400 csperkins.org. responds. That gets to the local

00:13:17.249 resolver, and now it has the information

00:13:20.099 it needs, so it returns the answer

00:13:22.949 to the client.

 

00:13:24.270 And we see it's quite an iterative

00:13:27.693 process. The resolver talks to the DNS

00:13:31.115 root servers to get the

 

00:13:33.660 name server record for the top-level domain,

00:13:35.960 in this case “.org”. It talks to

00:13:38.259 the top-level domain, to get the name

00:13:40.559 server record for the sub domain.

 

00:13:42.630 and so on. If there are multiple

00:13:44.202 subdomains, it will keep working its way

00:13:45.774 down through those domains until it finds

00:13:47.346 the end of the query, in which

00:13:48.918 case it asks for the A record.

 

00:13:55.260 The various responses coming back from these

00:13:58.395 servers, whether they're coming back from the

00:14:01.529 root servers, the top-level domain servers,

00:14:04.216 or the subdomain servers for a particular

00:14:07.351 site, all include a time-to-live.

 

00:14:09.690 So, as well as the IP address,

00:14:12.712 as well as the particular record and

00:14:15.733 the IP address corresponding to that record,

00:14:18.755 they also have a time-to-live value which

00:14:21.777 says how long the resolver can cache

00:14:24.798 that record. A promise it won't change

00:14:27.820 for a certain amount of time.

 

00:14:30.510 And, in future, if you ask the

00:14:33.023 same query, if you make the same

00:14:35.536 query to the resolver again, provided it

00:14:38.050 has one of these cached values,

00:14:40.204 provided it's not reached its maximum time-to-live,

00:14:42.717 it can just respond from the cache.

 

00:14:45.330 And that saves all the look0up times,

00:14:48.329 and makes the responses much quicker.

 

00:14:51.000 When the entry times-out, it gets refreshed

00:14:54.771 and

 

00:14:55.410 the resolver asks the next level up

00:14:58.130 in the hierarchy in case it's changed.

00:15:00.849 And, eventually, it would work its way

00:15:03.569 back up to the root servers.

 

00:15:06.000 The IP addresses for the root servers

00:15:09.206 are well-known. They essentially have an infinite

00:15:12.412 time-to-live, and haven't changed in the last

00:15:15.618 30 years or so.

 

00:15:17.550 What value do you give to the

00:15:21.082 time-to-live if you're configuring a domain?

 

00:15:24.210 I think it very much depends on

00:15:26.219 what you're doing.

 

00:15:27.180 A site which is just hosted on

00:15:30.199 a single server, and doesn't receive a

00:15:33.218 heavy load, such as my website,

00:15:35.806 will probably give quite a long time

00:15:38.825 to live. A day, a couple of

00:15:41.844 days, or a week, perhaps,

 

00:15:44.100 because it's just not going to change.

 

00:15:47.610 It's always on the same server.

 

00:15:51.720 A big site, where there are possibly

00:15:55.061 many hundreds of servers hosting that site,

00:15:58.402 will probably give a much shorter time

00:16:01.743 to live, maybe on the order of

00:16:05.084 a small number of seconds, and will

00:16:08.425 probably give you a different answer every

00:16:11.766 time you look up the domain,

 

00:16:14.730 because it's load balancing between the different

00:16:17.627 servers. And you see this when you

00:16:20.524 look-up names for servers such as those

00:16:23.421 for Google, Facebook, or Netflix,

 

00:16:25.590 where every time you make a query,

00:16:27.954 you get a different address because it's

00:16:30.319 pointing you at a different one of

00:16:32.683 the servers that serve that domain.

00:16:34.710 And it has quite a short time

00:16:37.074 to live, so you keep rotating around

00:16:39.439 for load balancing purposes.

 

00:16:40.890 Similarly, if you're accessing a content distribution

00:16:43.638 network, it's likely that it will have

00:16:46.387 a short time to live,

 

00:16:48.450 so it can point you to one

00:16:51.068 of the local caches, and so it

00:16:53.685 can change which local cache, which local

00:16:56.303 proxy, it redirects your query to,

00:16:58.547 based on the load, and based on

00:17:01.164 as you move around.

 

00:17:02.760 So you can play games with the

00:17:04.874 time-to-live to affect the behaviour of the

00:17:06.988 DNS.

 

00:17:11.490 And that's it for this part.

00:17:14.094 The DNS names are hierarchical. They work

00:17:17.132 their way up from the sub domains,

00:17:20.170 which describe particular sites and

 

00:17:22.440 sub-parts of a site, up to the

00:17:25.809 top-level domains, and up to the root

00:17:29.179 domain.

 

00:17:29.760 And they're structured hierarchically. It's a distributed

00:17:34.297 database, with distributed implementation, and distributed control,

00:17:38.834 distributed authority.

 

00:17:40.230 And the name resolution follows the structure

00:17:42.845 of the names. It works its way

00:17:45.459 down from the root, contacting the servers

00:17:48.074 at each level in turn, until it

00:17:50.688 gets the required answer. And it caches

00:17:53.303 the results.

 

00:17:54.150 In the next part, I’ll move on

00:17:56.066 and talk more about the structure of

00:17:57.983 the names.

Part 2: DNS Names

The second part of the lecture discusses DNS names. It discusses who controls the set of DNS names that may exist, and the history of the ICANN. It talks about the four types of top-level domain: country code top-level domains (ccTLDs), generic top-level domains (gTLDs), the infrastructure top-level domain (.arpa), and special-use top-level domains. The process by which country code top-level domains are allocated is reviewed, and some historical quirks are highlighted. The recent expansion of generic top-level domains is discussed. And the uses of the infrastructure and special-use domains are highlighted. The lecture concludes by discussing internationalised DNS, the DNS root, and the geographic locations of the DNS root servers.

00:00:00.000 In this part of lecture I'd like

00:00:02.112 to talk about DNS names.

 

00:00:03.720 I’ll talk about who controls the DNS,

00:00:06.194 what top-level domains exist, and what process

00:00:08.668 is followed to assign new top-level domains

00:00:11.142 in the DNS. I’ll talk about internationalisation

00:00:13.616 of the DNS. And I’ll talk about

00:00:16.090 who operates the DNS root servers.

 

00:00:21.420 So, as we saw in the previous

00:00:24.099 part of the lecture, DNS names are

00:00:26.779 assigned in a hierarchy.

 

00:00:28.410 A DNS name comprises a sub-domain,

00:00:30.997 which is delegated from potentially other sub-domains,

00:00:34.015 which are delegated from a top-level domain,

00:00:37.033 which is delegated from the root.

 

00:00:39.720 If we consider my website, for example,

00:00:43.471 we see the domain name, “www.csperkins.org”,

00:00:46.685 on the slide and “www” and “csperkins”

00:00:50.436 are subdomains within the top level domain,

00:00:54.186 “.org”. And the “.org” top-level domain exists

00:00:57.937 within the DNS root.

 

00:01:00.180 And this hierarchical structure naturally leads to

00:01:03.152 a bunch of questions.

 

00:01:04.950 You might ask what top level domains

00:01:08.406 exist?

 

00:01:09.000 For each given top level domain,

00:01:11.714 you might ask what policy that top-level

00:01:14.880 domain has for deciding when to allocate

00:01:18.046 subdomains? What's a valid name within “.org”,

00:01:21.212 for example, what's a valid name within

00:01:24.378 “.com”?

 

00:01:24.930 You might ask who decides when to

00:01:27.161 add new top level domains? And what's

00:01:29.391 the set of valid top level domains

00:01:31.622 in the network? And you might ask

00:01:33.853 about the DNS root: who controls the

00:01:36.083 root? What what does it do? How

00:01:38.314 does it operate?

 

00:01:42.990 Well, thinking first about top level domains.

 

00:01:47.190 The set of top-level domains in the

00:01:50.329 Internet is controlled and defined by an

00:01:53.468 organisation known as the Internet Corporation for

00:01:56.608 Assigned Names and Numbers, ICANN.

 

00:01:58.950 ICANN has a long and somewhat complex

00:02:05.793 history.

 

00:02:06.870 The original project which led to the

00:02:09.766 development of the Internet, was something known

00:02:12.662 as ARPANET.

 

00:02:13.590 The ARPANET was a US government funded

00:02:16.416 research project, that ran from the late

00:02:19.242 1960s up until about 1990.

 

00:02:21.360 The ARPANET project develops the initial versions

00:02:24.578 of the Internet protocols, we use today.

00:02:27.795 It developed the initial versions of TCP/IP,

00:02:31.013 for example, and some of the early

00:02:34.231 application protocols.

 

00:02:35.250 As part of the development of the

00:02:38.169 ARPANET, it was found that the researchers

00:02:41.089 working to develop those protocols needed a

00:02:44.008 set of protocol specifications, they needed to

00:02:46.927 write down the descriptions of the protocols

00:02:49.847 they were developing, and they needed a

00:02:52.766 parameter registry.

 

00:02:53.700 They needed a way of storing the

00:02:56.255 addresses, and the various parameters that the

00:02:58.810 protocols had.

 

00:02:59.640 And one of the researchers involved in

00:03:02.577 that effort, Jon Postel, volunteered to do

00:03:05.515 this. He volunteered to act in the

00:03:08.452 role of what became the RFC Editor,

 

00:03:11.490 editing and distributing the protocol specifications,

00:03:14.713 and in a role which became known

00:03:18.474 as the IANA, the Internet Assigned Numbers

00:03:22.234 Authority, to assign protocol parameters.

 

00:03:25.020 And, initially, when he started doing this,

00:03:27.998 he was a graduate student working at

00:03:30.977 UCLA, and later he did this,

 

00:03:33.630 later in his career, while working at

00:03:38.329 the University of Southern California’s Information Sciences

00:03:43.029 Institute.

 

00:03:43.800 And, while working at ISI, Postel handled

00:03:47.534 domain name allocation. As the DNS came

00:03:51.269 into being, as people started registering names,

00:03:55.003 it seemed natural to register these names

00:03:58.738 in the existing protocol parameter registry,

00:04:01.939 which Postel was operating as essentially the

00:04:05.673 IANA organisation.

 

00:04:06.840 And he did this as a part

00:04:11.110 time, fairly informal, activity, as part of

00:04:15.380 his ongoing research into the Internet,

00:04:19.040 and Internet-related protocols, primarily funded by the

00:04:23.310 US Government.

 

00:04:24.630 The IANA role gradually became more formalised.

00:04:27.937 By the late 1990s, IANA was becoming

00:04:31.244 more structured, there were people other than

00:04:34.551 Postel working on it, because the Internet

00:04:37.858 was starting to take off.

 

00:04:40.320 And, in 1998, this led to the

00:04:43.758 formation of ICANN, the Internet Cooperation for

00:04:47.196 Assigned Names and Numbers, as a dedicated

00:04:50.634 organisation to manage domain names.

 

00:04:53.190 ICANN was formed in September 1998,

00:04:56.353 as a US not-for-profit corporation based in

00:05:00.044 Los Angeles, actually based in the same

00:05:03.734 building where Postel worked, and where ISI

00:05:07.425 was based, in Marina del Rey in

00:05:11.116 Los Angeles.

 

00:05:12.270 And, unfortunately, Postel passed away in October

00:05:15.702 1998, just two or three weeks after

00:05:19.135 ICANN was formed. He's actually the only

00:05:22.567 person, so far, have an obituary published

00:05:25.999 as an RFC.

 

00:05:27.570 And you see the link on the

00:05:30.899 slide there.

 

00:05:31.950 And after he passed away, ICANN look

00:05:34.885 over the management of the domain names.

 

00:05:37.920 And it's very-much been run as a

00:05:40.925 global multi-stakeholder forum. It’s trying to get

00:05:43.930 input from as many people as possible,

00:05:46.935 trying to take as many different views

00:05:49.940 on how the network should work,

00:05:52.515 what domain name should exist, as possible.

 

00:05:55.620 Organisationally, it's not-for-profit corporation based in Los

00:06:00.207 Angeles, so it's a registered US charity,

00:06:04.795 essentially.

 

00:06:05.550 And, as of 2016, it's now no

00:06:09.241 longer under contract to the US Government,

00:06:12.933 and

 

00:06:13.560 officially, the domain names are managed by

00:06:15.818 ICANN.

 

00:06:20.190 ICANN, has a fairly, in addition to

00:06:24.892 its complex history, ICANN has a fairly

00:06:29.595 complex governance model.

 

00:06:31.710 And, in part, this comes from,

00:06:34.155 this springs out of, the history of

00:06:37.007 ICANN. The original domain names, the original

00:06:39.859 development of the network, as we saw,

00:06:42.711 was sponsored by the US Government.

00:06:45.155 And the Internet became much more

 

00:06:47.700 widespread, as it became more ubiquitously deployed,

00:06:51.159 as it became more global,

 

00:06:53.730 people outside the US started to be

00:06:57.049 uncomfortable with this, and were pushing for

00:07:00.367 ICANN turn to divest from the US

00:07:03.686 Government.

 

00:07:04.260 And, as a result of that,

00:07:06.317 it has a governance model which takes

00:07:08.717 input from a large number of different

00:07:11.117 organisations around the world, to try and

00:07:13.516 make sure that the needs of the

00:07:15.916 different stakeholders are balanced, and it's not

00:07:18.316 controlled by any one company.

 

00:07:20.130 So ICANN is controlled by a Board

00:07:23.165 of Governors. They take input from a

00:07:26.199 number of organisations, including a generic names

00:07:29.234 supporting an organisation, which represents generic top

00:07:32.268 level domains such as “.org”, “.com”,

00:07:34.869 and so on.

 

00:07:36.270 A country code names supporting our organisation,

00:07:40.236 which represents the country code domains such

00:07:44.201 as “.uk” or “.de”, for example.

 

00:07:47.700 It takes input from an address supporting

00:07:51.362 organisation, which represents the regional Internet registries,

00:07:55.023 such as RIPE, APNIC, and ARIN,

00:07:58.162 which assign IP addresses to ISPs and

00:08:01.824 other organisations.

 

00:08:02.970 It takes input from a Governmental Advisory

00:08:06.359 Committee, and the Governmental Advisory Committee is

00:08:09.747 formed of representatives from each of the,

00:08:13.136 I think, 112 UN recognised countries.

 

00:08:16.140 It takes input from an at-large advisory

00:08:19.191 committee, a root server operators advisory committee,

00:08:22.242 a stability and security committee, and a

00:08:25.293 technical liaison group.

 

00:08:26.700 And, in addition to this, it holds

00:08:29.807 regular public meetings, three or four times

00:08:32.914 a year, circling around the globe,

00:08:35.577 to get input from interested parties.

 

00:08:38.340 ICANN has evolved into a massive organisation.

00:08:41.372 It's got an annual budget of somewhere

00:08:44.405 on the order of 140 million US

00:08:47.437 dollars.

 

00:08:47.970 It takes input from an enormous range

00:08:51.403 of people, including representatives from the different

00:08:54.836 countries in the United Nations, and it's

00:08:58.268 an incredibly political organisation.

 

00:09:00.330 Many, many countries and organisations want to

00:09:03.304 influence the way domain names are managed,

00:09:06.279 the way domain names are allocated,

00:09:08.828 and what sort of domain names exist.

00:09:11.802 This is no longer a simple,

00:09:14.351 part-time, project by an academic at a

00:09:17.326 University in California, it's a global mega-corporation.

 

00:09:20.400 That said, it seems to work.

00:09:23.386 The DNS seems to be stable,

00:09:26.371 and while some of the names that

00:09:29.854 ICANN has allocated are certainly controversial,

 

00:09:32.940 the process is, I think, broadly working.

 

00:09:39.450 So what names exist?

 

00:09:41.940 Well, there are four types of top-level

00:09:44.835 domain in the Internet.

 

00:09:46.590 There are country code top-level domains,

00:09:49.751 generic top-level domains, infrastructure top-level domains,

00:09:52.912 and special-use top-level domains.

 

00:09:58.650 The country code top-level domains are those

00:10:03.196 which identify the portions of the namespace

00:10:07.742 assigned to different countries.

 

00:10:10.440 And the way this is done is

00:10:13.056 that

 

00:10:13.530 ICANN has essentially delegated the problem of

00:10:17.395 deciding who is a country to the

00:10:21.259 International Organisation for Standards, ISO.

 

00:10:24.120 ISO has a Standard, ISO 3166-1,

00:10:28.760 which defines the set of allowable country

00:10:34.173 name abbreviations.

 

00:10:35.820 And these are reasonably widely used.

00:10:38.356 They form the top-level domains in the

00:10:41.315 Internet, but they're also things like the

00:10:44.274 stickers which go on cars if you

00:10:47.232 drive abroad, the GP sticker on your

00:10:50.191 car if you drive abroad, for example.

 

00:10:53.250 And ISO 3166-1 defines country code abbreviations

00:10:56.540 for a Member States of the United

00:10:59.830 Nations, for the UN special agencies such

00:11:03.120 as the International Monetary Fund, UNESCO,

00:11:05.940 the World Health Organisation, and so on.

 

00:11:09.330 And it defines abbreviations for parties to

00:11:12.107 the International Court of Justice.

 

00:11:14.190 And essentially what's happened here is that

00:11:18.593 ICANN has delegated

 

00:11:20.580 the decision of what top-level country code

00:11:23.477 domains exist to ISO, and ISO has,

00:11:26.373 essentially, delegated it to the United Nations.

 

00:11:29.370 And this neatly sidesteps the argument of

00:11:32.147 what is a country. In that if

00:11:34.923 you're a Member States of the UN,

00:11:37.700 you’re a country, and ISO assigns you

00:11:40.477 a country code, and that then gets

00:11:43.253 reflected into the Internet.

 

00:11:44.940 And every country code defined in ISO

00:11:48.351 3166-1 is added into the DNS root

00:11:51.763 zone.

 

00:11:52.350 And that gives you the country code

00:11:55.574 top-level domains we’re all familiar with,

00:11:58.338 such as “.uk “for the United Kingdom,

00:12:01.562 “.fr”, “.de”, “.cn” for china, “.us” for

00:12:04.786 the United States, and so on.

 

00:12:07.650 And these country code domains include some

00:12:11.532 which, perhaps, are less familiar: “.li”,

00:12:14.860 for example, is Libya; “.io” is the

00:12:18.742 British Indian Ocean Territory.

 

00:12:21.060 And each country can then set its

00:12:24.133 own policy for what it does for

00:12:27.206 subdomains of that country code domain.

00:12:29.841 And that can be delegated to the

00:12:32.914 government of those countries.

 

00:12:34.770 There are a number of exceptions,

00:12:37.003 and a number of oddities, in the

00:12:39.608 system.

 

00:12:40.080 One historical curiosity, which is perhaps of

00:12:44.499 interest in the UK, is to do

00:12:48.918 with Czechoslovakia.

 

00:12:50.280 And the issue here is that,

00:12:55.484 in the 1980s, and early 1990s,

00:13:00.688 very early 1990s,

 

00:13:03.390 the UK ran a non-Internet based research

00:13:07.835 academic research network,

 

00:13:09.840 a system called JANET, the Joint Academic

00:13:14.495 NETwork. And JANET

 

00:13:16.590 ran a set of protocols known as

00:13:18.929 the coloured book protocols, and they had

00:13:21.269 an alternative name resolution system.

 

00:13:23.040 And names for sites in this network

00:13:26.245 used something which looked a lot like

00:13:29.450 DNS names, but worked backwards. So they

00:13:32.655 have the country code at the front,

00:13:35.859 and then worked their way down towards

00:13:39.064 the subdomain.

 

00:13:40.080 So, for example, the University of Glasgow

00:13:45.257 would be “uk.ac.glasgow” using the JANET name

00:13:50.433 resolution system, versus “glasgow.ac.uk” using the DNS.

 

00:13:55.710 And this worked fine. Fundamentally it doesn't

00:13:58.596 matter which way around you write the

00:14:01.481 names, so writing the names in the

00:14:04.367 opposite order works just fine. And there

00:14:07.252 was a gateway, which translated email messages

00:14:10.138 between

 

00:14:10.650 the machines on the UK Joint Academic

00:14:12.929 Network and the machines on the rest

00:14:15.208 of the Internet. And it did this

00:14:17.487 just by rewriting the addresses, changing the

00:14:19.766 order of the components of the domain

00:14:22.044 name.

 

00:14:22.470 And this work just fine, until Czechoslovakia

00:14:26.481 joined the Internet was assigned the country

00:14:30.491 code domain “.cs”.

 

00:14:32.310 And, at this point, the gateway got

00:14:36.074 confused, because it suddenly became difficult to

00:14:39.839 tell whether “uk.ac.glasgow.cs” was

 

00:14:42.090 the Computing Science Department in Glasgow University,

00:14:44.876 or a site in Czechoslovakia. You couldn't

00:14:47.661 look at the first, or last,

00:14:50.049 part of the domain name, and see

00:14:52.835 whether it was one of the valid

00:14:55.620 country code domains, and if it wasn't

00:14:58.406 then reverse it.

 

00:14:59.700 And this problem got solved in two

00:15:02.589 ways. Firstly, it got solved by all

00:15:05.478 the Computing Science departments in UK universities

00:15:08.367 suddenly renaming their domain names.

 

00:15:10.530 This is the reason why Computing Science

00:15:15.706 in Glasgow is “dcs.glasgow.ac.uk”, rather than “cs.glasgow.ac.uk”,

00:15:20.882 “Department of Computing Science”.

 

00:15:23.940 This is the reason why the Computer

00:15:27.523 Science department in Cambridge is the Computer

00:15:31.107 Lab, “cl.cam.ac.uk”. To avoid the conflicts with,

00:15:34.690 to avoid using “.cs”, anywhere.

 

00:15:37.350 And the problem also, of course,

00:15:39.655 got solved because Czechoslovakia went away.

 

00:15:42.060 There are also four oddities, four exceptions,

00:15:46.677 where the top-level domains in the Internet

00:15:51.293 don't match what is in ISO 3166-1.

 

00:15:56.010 The first is the United Kingdom.

00:15:59.351 The country code abbreviation for the United

00:16:03.249 Kingdom in ISO 3166-1 is GB.

 

00:16:06.690 So if

 

00:16:08.190 it followed the prescribed form, we should

00:16:11.819 be using “.gb” rather than “.uk”.

 

00:16:15.030 And indeed, and what is now “.gov.uk”

00:16:19.337 used to be registered under “.hmg.gb”,

00:16:23.029 Her Majesty's Government, GB.

 

00:16:25.590 But this was never widely used,

00:16:28.436 and

 

00:16:29.010 the initial people who set up the

00:16:32.757 Internet in the UK, and this was

00:16:36.504 primarily the fault of someone known as

00:16:40.252 Peter Kirstein at University College London,

00:16:43.464 who set up the initial Internet nodes

00:16:47.211 in the UK, decided they preferred to

00:16:50.958 use “.uk”, and this kind-of stuck.

 

00:16:54.270 In addition to that,

 

00:16:56.640 the country code top-level domain for the

00:17:00.385 Soviet Union, “.su”, still exists in the

00:17:04.130 Internet and, I believe, is still accepting

00:17:07.875 new domain registrations, which is a little

00:17:11.620 bit of an oddity.

 

00:17:13.860 The European Union, “.eu”, has a country

00:17:17.963 code top-level domain, but it's not registered

00:17:22.067 in ISO 3166-1 and, sadly, Australia changed

00:17:26.170 and no longer uses “.oz”, but follows

00:17:30.274 “.au”

 

00:17:30.960 to match the standard.

 

00:17:35.880 So that's the country code top-level domains,

00:17:39.149 what else exists?

 

00:17:40.650 Well, there's also a set of generic

00:17:43.862 top-level domains.

 

00:17:44.880 And originally this comprised the set of

00:17:48.809 core

 

00:17:49.470 domains that represented different types of use:

00:17:54.121 “.com”, “.org”, and “.net”, originally for companies,

00:17:58.772 nonprofit organisations, and networks,

 

00:18:01.530 but for many, many years now available

00:18:05.671 for unrestricted use; “.edu” for higher educational

00:18:09.812 organisations, primarily US-based; “.mil” for the US

00:18:13.952 military; “.gov” the US Government;

 

00:18:17.010 and “.int” for international treaty organisations,

00:18:20.517 such as the United Nations, Interpol,

00:18:24.024 NATO, the Red Cross, and organisations like

00:18:28.116 that.

 

00:18:28.800 And, for a long time, those were

00:18:31.299 the only set of generic top-level domains

00:18:33.798 that existed, and there was a debate

00:18:36.297 about whether organisations should register in one

00:18:38.795 of these generic top-level domains, or whether

00:18:41.294 they should register under their country code

00:18:43.793 domain.

 

00:18:44.250 More recently, ICANN has massively expanded the

00:18:47.562 set of possible generic top-level domains.

00:18:50.402 Rather than the original 7, I think

00:18:53.714 there’s now about 1500 generic top-level domains

00:18:57.027 registered.

 

00:18:57.600 And these have a whole bunch of

00:19:00.431 different uses. “.scot” is a generic top

00:19:03.262 level domain, for example, and there’s others

00:19:06.093 for many other cities and regions around

00:19:08.924 the world. And it's possible to get

00:19:11.755 generic top-level domains for brands and other

00:19:14.586 organisations,

 

00:19:15.090 although this process is difficult and expensive.

 

00:19:21.870 And the country code top-level domains,

00:19:24.361 and the generic top-level domains, comprise the

00:19:27.268 overwhelming majority of top-level domains in the

00:19:30.175 Internet.

 

00:19:30.690 There's a few more which you may

00:19:33.751 come across occasionally. One of these is

00:19:36.812 what’s known as the infrastructure top-level domain,

00:19:39.873 “.arpa”.

 

00:19:40.410 Now, obviously, that name, “.arpa”, stems from

00:19:43.332 the original development of the network,

00:19:45.838 from the ARPANET.

 

00:19:47.190 And it's mostly a historical relic,

00:19:50.147 that was used in this transition from

00:19:53.596 the ARPANET to the Internet.

 

00:19:56.160 That top-level domain has one current use,

00:20:00.602 which is reverse DNS.

 

00:20:03.240 Now, what we spoke about in the

00:20:05.236 last part of the lecture was what's

00:20:07.232 this forward DNS lookup. Where you take

00:20:09.228 a domain name, and you look that

00:20:11.223 name up in the DNS, and it

00:20:13.219 gives you the corresponding IP addresses.

 

00:20:15.030 For example, if you look up my

00:20:19.488 website, “csperkins.org”, it will give the IPv4

00:20:23.946 address 93.93.131.127.

 

00:20:25.320 Reverse DNS lookup is the process of

00:20:28.038 going the other way. It’s the process

00:20:30.757 of going from an IP address to

00:20:33.475 a domain name.

 

00:20:34.740 And the way this is done,

00:20:38.453 is that the

 

00:20:40.410 human-readable

 

00:20:42.900 form of the IP address, the numeric

00:20:45.951 human-readable form of the IP address,

00:20:48.566 is reversed and stored as a domain

00:20:51.617 name under the “.arpa”

 

00:20:53.460 top-level Domain.

 

00:20:56.190 So, for example,

 

00:20:58.200 the domain name 127.131.93.93.in-addr.arpa

 

00:21:04.320 is registered. And, if you do a

00:21:08.053 domain name lookup of that name in

00:21:11.785 the DNS, it will return you a

00:21:15.518 DNS CNAME record which points to csperkins.org

 

00:21:19.350 What you see is that this is

00:21:21.738 the IP address of my site,

00:21:23.785 reversed, and registered as a name,

00:21:25.832 which allows you to look-up, to go

00:21:28.221 back from that address, to the site

00:21:30.609 name.

 

00:21:31.050 And the same thing works for IPv6

00:21:34.676 addresses, where each

 

00:21:36.330 four bits of the IP address are

00:21:40.248 done as a separate subdomain. So the

00:21:44.165 address you see here, 0.1.0.0.0… etc.

00:21:47.523 “.in6.arpa”, which is the reversed IPv6 address

00:21:51.441 of that website,

 

00:21:53.220 when resolved in the DNS, will give

00:21:55.486 you the DNS CNAME record that points

00:21:57.752 to the site. It’s a way of

00:22:00.018 going back from either the IPv4 or

00:22:02.284 IPv6 addresses to the original domain name.

 

00:22:04.650 And that's the only current use of

00:22:06.172 “.arpa”.

 

00:22:09.690 In addition to that, there are six

00:22:12.795 special use top-level domains.

 

00:22:14.670 “.example” which is used for examples as

00:22:18.396 you might expect, used for documentation,

 

00:22:21.690 is registered, and there's also

 

00:22:26.070 generic top-level domain versions of it,

00:22:28.539 so “example.com”, “example.org”, and so on which

00:22:31.420 exist and are guaranteed not to be

00:22:34.301 used for anything than for documentation.

 

00:22:36.870 “.invalid” is guaranteed that it will never

00:22:41.342 be registered,

 

00:22:42.720 as a testing domain name which will

00:22:46.173 never exist. “.test” is there for testing

00:22:49.627 sites, testing uses, for a domain name

00:22:53.080 which does exist.

 

00:22:54.660 “.local” and “.localhost” represent the local network

00:22:57.502 and the local machine. And “.onion” is

00:23:00.344 used as a gateway for Tor hidden

00:23:03.186 services, and the RFC on the slide

00:23:06.028 talks about that in more detail;

00:23:08.464 this is The Onion Router, which is

00:23:11.306 a an anti-censorship technology.

 

00:23:18.780 The original DNS,

 

00:23:21.780 and all the DNS names we've spoken

00:23:25.515 about, all use ASCII.

 

00:23:27.750 The initial set of top-level domains,

00:23:30.108 the initial set of subdomains, were all

00:23:32.858 registered in an ASCII.

 

00:23:34.530 And, of course, this is problematic if

00:23:37.831 you don't speak English, or if you

00:23:41.132 speak a language which can't be represented

00:23:44.432 within the ASCII character set.

 

00:23:46.890 In principle, there's nothing in the DNS

00:23:49.816 protocol that should stop you being able

00:23:52.742 to register names in UTF8 format.

 

00:23:55.350 DNS just deals with strings of bytes,

00:23:58.390 and doesn't really care what they are.

 

00:24:01.530 In practice, a lot of the software

00:24:04.417 which deals with DNS names assumes they

00:24:07.304 are ASCII, and when people experimented with

00:24:10.191 using UTF8 names, to allow non-ASCII domain

00:24:13.078 names, it was found it didn't work

00:24:15.965 in practice.

 

00:24:16.890 As a result of this, we have

00:24:20.172 a somewhat complex approach to translating non-ASCII

00:24:23.453 names into ASCII, which allows them to

00:24:26.735 be used in DNS.

 

00:24:28.710 And it's based on a system known

00:24:32.350 as Punycode. And Punycode is an encoding

00:24:35.990 of Unicode, the global character set,

00:24:39.110 into a sequence of ASCII letters,

00:24:42.230 digits, and hyphens.

 

00:24:43.890 So, for example, we see some examples

00:24:47.965 for how München, the German city Munich,

00:24:52.039 can be translated into Punycode. And we

00:24:56.114 see that the

 

00:24:57.960 characters which are not representable in ASCII

00:25:01.489 get omitted from the initial

 

00:25:04.110 name, and then there's a hyphen and

00:25:07.137 an encoded sequence at the end,

00:25:09.732 after the hyphen.

 

00:25:11.130 And that encoded sequence at the end

00:25:13.666 is a base-36 encoded representation of the

00:25:16.202 Unicode character, which was omitted, and the

00:25:18.738 location of where it was omitted from,

00:25:21.274 and so where it should be inserted.

 

00:25:23.910 This allows you to represent any name

00:25:27.117 as something which can be represented as

00:25:30.323 ASCII, as a sequence of ASCII characters.

 

00:25:33.630 And the internationalised DNS uses this,

00:25:36.328 but it prefixes each of the names

00:25:39.476 with the special prefix “xn—“ which was

00:25:42.623 found not to exist in any of

00:25:45.771 the registered,

 

00:25:46.770 legitimate, top-level domains of the time,

 

00:25:52.560 to allow resolvers to distinguish internationalised names

00:25:56.403 from regular names, and know that they

00:26:00.245 have to perform the translation.

 

00:26:03.090 And this works. If you look-up the

00:26:07.949 example in Cyrillic at the bottom there,

00:26:12.807 it translates, the browser, for example,

00:26:16.971 will translate this into the string “xn--70ak…”

 

00:26:21.930 which then gets resolved as normal in

00:26:25.153 the DNS. And this is Yandex,

00:26:27.916 which is one of the popular Russian

00:26:31.139 search engines.

 

00:26:32.160 So the format the names have on

00:26:35.514 the wire, is this

 

00:26:37.530 unfortunately encoded form which translates them into

00:26:40.940 ASCII, but what gets displayed to the

00:26:44.350 users is the native form in Unicode.

 

00:26:52.830 So.

 

00:26:54.420 ICANN decides the set of legal top

00:26:57.726 level domains.

 

00:26:58.770 They can be country code domains,

00:27:01.812 or they can be generic top-level domains,

00:27:05.362 or special-use domains, or they can be

00:27:08.912 internationalised names these days.

 

00:27:11.040 ICANN then tells the root server operators

00:27:13.930 that set of names, and the root

00:27:16.819 servers then advertise the name servers for

00:27:19.709 those top level domains. Those names servers

00:27:22.599 then advertise the names which exist within

00:27:25.489 those top level domains.

 

00:27:27.240 What are the set of root servers?

00:27:30.562 Where do the names come from?

 

00:27:33.510 Well, there’s a set of 13 servers

00:27:36.631 which advertise the name servers for the

00:27:39.752 top level domains.

 

00:27:41.190 They’re registered in the DNS. They’re called

00:27:46.179 “a.root-servers.net”, “b.root-servers.net”, through to “m.root-servers.net”. And they

00:27:51.168 also have well-known IPv4 and IPv6 addresses

00:27:56.157 because, as you should perhaps

 

00:27:59.820 understand, the point of the root servers

00:28:03.126 is to advertise the top level domains,

00:28:06.433 to make the

 

00:28:07.950 starting point for the DNS hierarchy,

00:28:10.003 so they need to be reachable without

00:28:12.397 using the DNS. So they've got well-known

00:28:14.792 IPv4 and IPv6 addresses

 

00:28:16.260 by which they usually reached. And these

00:28:19.617 13 servers advertise the top-level domains,

00:28:22.494 and they're the key to the whole

00:28:25.850 DNS.

 

00:28:26.430 Why 13 of them?

 

00:28:29.160 Well, we want to be able to

00:28:31.442 ask a DNS

 

00:28:32.520 server for the list of possible root

00:28:36.869 servers.

 

00:28:37.590 That means it has to fit in

00:28:39.790 a DNS message. And DNS, for a

00:28:41.990 long time, and we’ll talk about this

00:28:44.190 in the next part, but DNS for

00:28:46.390 a long time only ran over UDP.

 

00:28:48.690 And there's a size limit in replies

00:28:50.764 for UDP. And 13 is the maximum

00:28:52.838 number of servers that will fit in

00:28:54.911 a single UDP packet, that's why there

00:28:56.985 are 13 root servers.

 

00:29:01.560 Who operates these routes servers? Well the

00:29:05.474 slide shows the current set.

 

00:29:08.370 Each of the 13 is identified by

00:29:11.590 letter, and it has a well-known IPv4

00:29:14.810 address and a well-known IPv6 address.

 

00:29:17.670 And on the right, we see the

00:29:21.425 operators of these servers.

 

00:29:23.670 Now, what you see, looking at this

00:29:27.359 list of operators. is that they are

00:29:31.049 very heavily US-based.

 

00:29:32.730 Verisign, that

 

00:29:36.090 operates “a.root-servers.net”, is a

 

00:29:40.770 US-based domain name provider, for example.

 

00:29:46.170 The University of Southern California, USC/ISI,

00:29:49.142 is the organisation where Jon Postel worked,

00:29:52.608 which still operates a root server.

 

00:29:55.680 Cogent Communications is a US ISP.

00:29:58.737 The University of Maryland and NASA are

00:30:02.303 both research organisations in the US.

 

00:30:05.460 The Internet Systems Corporation, again, is US-based...

 

00:30:09.390 a couple of US government sites.

00:30:12.117 The only ones of these which are

00:30:15.300 not in the US, are RIPE NCC,

00:30:18.482 which is the European

 

00:30:20.400 Regional Internet Registry, and the WIDE project

00:30:24.250 which is in Japan.

 

00:30:26.550 And that's there for historical reasons.

00:30:29.460 The root servers were set up at

00:30:32.855 a time when the Internet was entirely

00:30:36.250 US dominated.

 

00:30:37.320 It’s not clear that that's necessarily appropriate

00:30:40.307 now, we'll talk much more about this

00:30:43.293 later, but it's there for historical reasons.

 

00:30:46.380 The IP addresses of these root servers

00:30:49.656 cannot be changed. They are hard coded

00:30:52.933 into, essentially, every DNS resolver in the

00:30:56.209 world, and they’re far too widely known

00:30:59.486 to be changed.

 

00:31:00.990 Who operates the servers can change,

00:31:03.026 but the IP addresses are pretty much

00:31:05.402 fixed forever now.

 

00:31:12.120 Now there are 13

 

00:31:14.640 root servers, but there are not 13

00:31:18.062 physical machines.

 

00:31:19.140 Almost all of the root server operators

00:31:21.514 use a technique, known as anycast routing,

00:31:23.887 which we'll talk more about in Lecture

00:31:26.261 9.

 

00:31:26.700 And the idea of anycast routing,

00:31:28.689 is that you have multiple machines that

00:31:31.010 have the same IP address. And they

00:31:33.330 get advertised into the routing system from

00:31:35.651 several different places in the network.

 

00:31:37.740 And the routing system then ensures that

00:31:40.648 traffic sent to that IP address goes

00:31:43.556 to the closest machine that has that

00:31:46.465 address.

 

00:31:46.980 So, as a result, there are 13

00:31:49.436 IP addresses used to identify root servers,

00:31:51.892 but there are actually many more than

00:31:54.348 13 physical servers.

 

00:31:55.500 Most of the root servers actually have

00:31:58.152 several hundred machines using the same address,

00:32:00.803 in different data centres, and in different

00:32:03.455 locations around the world.

 

00:32:05.070 So it's a very heavily load balanced,

00:32:07.900 very heavily protected, system, even though it

00:32:10.731 appears as only 13 IP addresses,

00:32:13.157 only 13 machines.

 

00:32:17.250 That's all I want to say about

00:32:19.494 DNS names. I’ve spoke briefly about who

00:32:21.738 controls the DNS,

 

00:32:22.800 and about ICANN, and the history of

00:32:25.197 ICANN. I’ve spoken about the types of

00:32:27.594 top-level domains, the country code and the

00:32:29.991 generic top-level domains, and the various special

00:32:32.388 use and infrastructure domains. And I’ve spoken

00:32:34.786 briefly about the international DNS, and the

00:32:37.183 DNS root servers.

 

00:32:38.310 In the next part, I’ll talk about

00:32:40.002 how DNS queries are made.

Part 3: Methods for DNS Resolution

The third part of the lecture discusses how resolvers can contact name servers to resolve DNS names. It reviews how DNS-over-UDP works, the contents of DNS requests and responses, and the inherent security problems of running DNS over UDP. It discusses record and transport security for DNS. Then it reviews alternative transports for DNS, considering DNS over TLS, HTTPS, and QUIC, and their relative costs and benefits.

00:00:00.000 In this part of the lecture I'd

00:00:02.263 like to talk about methods for DNS

00:00:04.525 resolution. I’ll talk a little bit about

00:00:06.788 the security of the DNS, and some

00:00:09.050 of the historic security problems with the

00:00:11.313 DNS. And I'll talk about how DNS

00:00:13.576 resolution is performed today, using either UDP,

00:00:15.838 TLS, HTTPS, or QUIC.

 

00:00:19.111 So let's start by talking about DNS

00:00:22.331 security.

 

00:00:22.891 The issue with the DNS is that,

00:00:26.100 historically, it has been completely insecure.

 

00:00:28.951 The original DNS protocol made requests,

00:00:31.655 and delivered, responses using UDP. And it

00:00:34.810 used UDP in a way which did

00:00:37.965 not have any form of encryption or

00:00:41.120 authentication.

 

00:00:41.671 This meant it was trivial for attackers

00:00:44.740 on the path between the host making

00:00:47.809 the request, and the resolver which was

00:00:50.878 answering that request, to eavesdrop on what

00:00:53.947 names were being looked-up.

 

00:00:55.801 And the requests are not encrypted,

00:00:58.005 so anyone on the path, anyone who

00:01:00.577 can read the network traffic, can see

00:01:03.149 which hosts are looking at which names.

 

00:01:05.821 In addition, because the messages and the

00:01:08.939 replies are not authenticated in any way,

00:01:12.057 such an on-path attacker can easily forge

00:01:15.176 a

 

00:01:15.721 response. If it responds faster than the

00:01:18.741 intended DNS resolver, there's nothing for the

00:01:21.761 requesting host to know that this is

00:01:24.782 a forgery, rather than the correct response.

00:01:27.802 There’s no way to authenticate the responses.

00:01:30.822 And this makes it straightforward to

 

00:01:33.511 redirect hosts in malicious ways by forging

00:01:36.568 DNS responses.

 

00:01:40.711 Now, obviously, this is a problem.

 

00:01:43.531 And over the last few years we've

00:01:46.480 seen a number of attempts at securing

00:01:49.428 the DNS.

 

00:01:50.371 These fall into two categories. Some of

00:01:53.612 them relate to transport security, and some

00:01:56.853 of them relate to record security.

 

00:01:59.731 The issue about transport security is whether

00:02:03.234 we can make it possible to deliver

00:02:06.738 DNS requests, and receive replies, securely.

 

00:02:09.841 Make it possible to send DNS requests

00:02:12.669 over some sort of secure channel,

00:02:15.093 and get the answer, get the response,

00:02:17.921 back over that same channel.

 

00:02:20.041 And the idea here is that we

00:02:22.952 use a protocol, such as, for example,

00:02:25.863 TLS, to deliver the DNS requests and

00:02:28.773 retrieve the responses.

 

00:02:30.121 And,

 

00:02:32.131 since that the requests and the responses

00:02:35.249 are encrypted, they can't be understood or

00:02:38.367 modified by attackers. And that provides a

00:02:41.485 form of security, provided you trust the

00:02:44.603 resolver to give you the right answer.

 

00:02:47.821 This provides a trusted, and secure,

00:02:50.041 and encrypted and authenticated channel between the

00:02:52.631 host making the request and the resolver

 

00:02:55.321 that stops anyone reading the DNS messages

00:02:57.665 in transit., and stops them forging replies.

00:03:00.009 So, as long as the resolver is

00:03:02.353 correctly answering the queries, this protects you

00:03:04.696 from the DNS.

 

00:03:08.821 The other approach is what’s known as

00:03:11.333 record security.

 

00:03:12.151 Add some form of digital signature to

00:03:15.336 the DNS responses, such that the client

00:03:18.521 can verify the data it’s receiving is

00:03:21.706 valid.

 

00:03:22.261 And the idea here might be that

 

00:03:25.441 ICANN attaches a digital signature to the

00:03:29.033 root zone, which specifies the set of

00:03:32.625 top-level domains.

 

00:03:33.751 The root server operators sign the information

00:03:36.914 they provide about the top-level domains.

00:03:39.625 The top-level domains then sign the information

00:03:42.788 they provides about subdomains. And so on.

 

00:03:46.051 And there’s a chain of digital signatures

00:03:48.437 that leads all the way back to

00:03:50.823 ICANN, and the root, for every name

00:03:53.208 that gets looked-up.

 

00:03:54.331 In this case, when you perform a

00:03:56.830 DNS lookup, when you resolve a name,

00:03:59.328 and you get a name back,

00:04:01.470 in addition to

 

00:04:02.641 the record which says this is the

00:04:04.974 name you looked-up, and this is the

00:04:07.306 corresponding IP address, you also get a

00:04:09.639 digital signature which allows you to verify

00:04:11.972 that it's not been tampered with.

 

00:04:14.071 And the clients, at least in principle,

00:04:16.373 can then verify the signatures, all the

00:04:18.675 way back up the hierarchy to the

00:04:20.976 root, and provide a chain of trust

00:04:23.278 that demonstrates ownership of the domain.

 

00:04:25.351 And this is implemented. And it makes

00:04:29.179 extensive use of digital signatures and public

00:04:33.007 key cryptography.

 

00:04:34.201 And, at least the top-level domains,

00:04:36.389 and the root zone, are all signed.

00:04:38.941 And a few of the more popular

00:04:41.493 sites are starting to

 

00:04:43.051 do this, and starting to sign their

00:04:45.955 requests, so the integrity of their data,

00:04:48.859 of the records, can be verified.

00:04:51.348 But it's not yet widely used.

00:04:53.837 It's starting to get use, but it's

00:04:56.742 not yet widely deployed.

 

00:04:58.501 Ideally, we want both transport security and

00:05:01.250 record security. Ideally, we want to both

00:05:04.000 secure the requests, so no one can

00:05:06.749 see which requests we are making,

00:05:09.105 and no one can modify the responses

00:05:11.855 we’re getting back from the resolvers,

 

00:05:14.311 and also use record security to verify

00:05:16.868 that the resolvers are not lying to

00:05:19.426 us.

 

00:05:19.891 At present, we have the ability to

00:05:22.676 provide transport security, and we're starting to

00:05:25.462 see record security being deployed.

 

00:05:30.691 So, how does the transport actually work?

 

00:05:34.651 Well, historically DNS has run over UDP.

00:05:38.377 It’s run over UDP port 53.

 

00:05:41.671 The ideas of using UDP for DNS,

00:05:44.385 is that the requests and the responses

00:05:47.098 are both small.

 

00:05:48.361 So, in theory, you don't need any

00:05:50.830 sort of reliability. You don't need any

00:05:53.300 form of congestion control.

 

00:05:54.811 The usual way this works in the

00:05:57.219 DNS, is that the client makes a

00:05:59.627 query to the resolver, the resolver looks-up

00:06:02.035 the name, and replies.

 

00:06:03.511 And the query is small. I’s just

00:06:06.397 a name:

 

00:06:07.321 “www.csperkins.org”, “google.com”, “facebook.com”, whatever it is.

00:06:11.791 And the response is just an IP

00:06:17.006 address.

 

00:06:17.851 That doesn't need much space. It doesn't

00:06:21.319 need lots of packets.

 

00:06:23.401 So we can make both the request,

00:06:25.435 and get the response, each in a

00:06:27.469 single packet. And get the answer in

00:06:29.504 a single round-trip time, if the data

00:06:31.538 is cached by the resolver.

 

00:06:33.091 And this is more efficient than running

00:06:36.486 it over TCP.

 

00:06:38.041 If you look at the example,

00:06:39.982 the packet diagram, on the left of

00:06:42.246 the slide, you see the query and

00:06:44.510 the response happen in one round-trip running

00:06:46.774 over UDP.

 

00:06:47.521 Whereas, if you look at the diagram

00:06:49.885 on the right-hand side of the slide,

00:06:52.248 you see if you're running this over

00:06:54.612 TCP, you have the SYN, SYN-ACK,

00:06:56.637 ACK handshake to set up the connection;

 

00:06:59.101 the DNS query is sent immediately following

00:07:01.738 that ACK; and you get the response

00:07:04.376 one round-trip time later over the TCP

00:07:07.013 connection. And then you've got the FIN,

00:07:09.650 FIN-ACK, ACK handshake to tear down the

00:07:12.287 TCP connection.

 

00:07:13.141 And you end up sending six packets,

 

00:07:17.191 three round-trips, for the TCP connection.

 

00:07:21.751 The initial handshake to set-up the connection,

00:07:24.631 the request and the response, and then

00:07:27.510 a handshake to tear-down the connection.

00:07:29.979 And it’s sending far more packets than

00:07:32.858 is needed.

 

00:07:33.781 And there's not really any benefit to

00:07:37.388 using TCP. Once you've got the connection

00:07:40.996 setup,

 

00:07:41.611 if a packet gets lost, what happens?

 

00:07:44.551 Well, TCP retransmits it.

 

00:07:48.181 Okay, but we don't need to TCP

00:07:51.038 to do that. We can just have

00:07:53.894 a simple timeout, and retransmit the packet

00:07:56.751 over UDP. There's no need

 

00:07:58.891 for complicated reliability measures, there’s no need

00:08:02.032 for congestion control, because the data being

00:08:05.172 sent just fits in one packet.

00:08:07.864 So it's perfectly reasonable to have a

00:08:11.005 timeout and retransmission.

 

00:08:12.451 Triple duplicate ACKs won't help, because there's

00:08:15.169 only ever one packet being sent.

00:08:17.499 Congestion control won't help: there's only ever

00:08:20.218 one packet being sent.

 

00:08:21.871 So, as a result, DNS historically has

00:08:24.331 run over UDP, and avoided the complexity

00:08:26.791 and the overheads of running over TCP.

 

00:08:32.461 So what's in a DNS over UDP

00:08:35.734 packet?

 

00:08:36.301 Well, the diagram shows an IPv4 packet,

00:08:39.718 with a UDP header in it,

00:08:42.646 and then the contents of the DNS

00:08:46.063 message.

 

00:08:46.651 The contents of the DNS message are

00:08:49.476 fixed header to indicate that this is

00:08:52.300 a DNS packet,

 

00:08:53.611 a question section, an answer section,

 

00:08:57.211 an authority section, and some additional information.

 

00:09:02.581 When you're making a request, the question

00:09:05.596 section gets filled it. And this is

00:09:08.611 the list of domain names that are

00:09:11.627 querying and the requested record types.

 

00:09:14.311 So the question section might say,

00:09:17.030 for example, what is the AAAA record

00:09:20.202 for domain “csperkins.org”.

 

00:09:21.661 And you can include more than one

00:09:23.675 question in a request, provided they fit

00:09:25.688 in the packet.

 

00:09:29.641 The DNS response contains, in addition to

00:09:32.522 the question section, which just echoes back

00:09:35.404 the question being asked, echoes back the

00:09:38.285 name being looked-up, also includes the answer

00:09:41.166 section, and the authority, and the additional

00:09:44.048 information sections.

 

00:09:44.971 And the answer section contains the answer.

00:09:47.573 It contains the IP address corresponding to

00:09:50.175 the name that was being looked-up,

00:09:52.405 and it contains a time-to-live to specify

00:09:55.007 how long that's valid. And the authority

00:09:57.609 section describes where the answer came from.

 

00:10:05.371 And this slide shows an example of

00:10:08.011 how this works. This is captured using

00:10:10.650 a tool called dig, which is a

00:10:13.290 standard DNS lookup utility that exists on

00:10:15.930 Linux and macOS.

 

00:10:17.161 And what we see, highlighted in black

00:10:20.434 here, is the question section, which shows

00:10:23.707 that we're looking up the A record

00:10:26.981 for my website, “csperkins.org”.

 

00:10:28.951 In blue, we see the contents of

00:10:33.422 the answer section, where it specifies that

00:10:37.892 the IP address of the site is

00:10:42.363 93.93.121.127, and it has a time-to-live of

00:10:46.834 2681 seconds.

 

00:10:48.211 We see an authority section, which specifies

00:10:53.059 that the response came from the name

00:10:57.908 servers for ns1.mythic-beasts.com or ns2.mythic-beasts.com,

 

00:11:01.471 and these are the name servers that

00:11:04.484 are hosting that domain. And we see,

00:11:07.497 in the additional information section in red,

00:11:10.509 where it's telling us

 

00:11:12.331 the IP addresses of those name servers,

00:11:14.936 so we can contact those servers if

00:11:17.540 we want to find out additional information

00:11:20.145 about the domain.

 

00:11:21.361 And this is the typical structure,

00:11:23.996 you see in a DNS packet.

 

00:11:26.731 A question in the requests and the

00:11:29.514 responses. And the question, the answer,

00:11:31.899 the authority, and the additional information sections.

 

00:11:38.551 And that's DNS over UDP, which is

00:11:42.101 the way DNS has historically been used.

 

00:11:45.751 And as we mentioned earlier, DNS over

00:11:48.337 UDP is insecure. The packets are not

00:11:50.922 encrypted or authenticated in any way.

00:11:53.138 And this means that devices on the

00:11:55.724 path between the client and the resolver

00:11:58.309 can see the DNS queries and the

00:12:00.895 responses, and they can forge responses.

 

00:12:03.211 One way of getting around that is

00:12:06.602 to run DNS over TLS, rather than

00:12:09.993 running it over UDP.

 

00:12:12.031 And the way this works, is that

00:12:14.893 the DNS client opens a TCP connection

00:12:17.754 to the resolver, rather than sending UDP

00:12:20.616 packets. It makes a TCP connection to

00:12:23.477 the resolve on port 853.

 

00:12:25.621 The DNS client then negotiates a TLS

00:12:29.654 1.3 session within that TCP connection.

 

00:12:33.211 And, once it's done that, it sends

00:12:36.043 the query and receives the response over

00:12:38.875 that TLS connection, which is running over

00:12:41.707 the TCP connection.

 

00:12:43.021 Now what's in the request, and what's

00:12:45.168 in the response, is exactly the same

00:12:47.314 as if it was sending over UDP.

 

00:12:49.561 The contents of the request are formatted

00:12:52.241 exactly the same way, as would be

00:12:54.921 the contents of the UDP packet.

00:12:57.218 Except, instead of being sent in a

00:12:59.898 UDP packet, they’re sent within a TLS

00:13:02.578 record.

 

00:13:03.061 And the response that comes back is

00:13:05.279 exactly the same as the response that

00:13:07.497 would be delivered over UDP.

 

00:13:09.181 Again, the only difference is that it

00:13:12.083 sends inside a TLS record, inside a

00:13:14.985 TCP connection, rather than being sent inside

00:13:17.887 a UDP packet.

 

00:13:19.231 Now, this clearly provides security.

 

00:13:22.261 You're running over TLS, which encrypts and

00:13:26.763 authenticates the connection, which lets you authenticate

00:13:31.266 the identity of the resolver you're connected

00:13:35.768 to.

 

00:13:36.511 It's also, clearly, a lot higher overhead.

 

00:13:40.081 You have to first negotiate a TCP

00:13:42.881 connection.

 

00:13:43.381 Then you have to negotiate a TLS

00:13:45.948 connection. And then you can send the

00:13:48.516 DNS request, and get the response.

00:13:50.716 Then you tear down the TLS connection,

00:13:53.284 and you tear down the TCP connection.

 

00:13:55.951 So, what would be a single round-trip

00:13:58.729 time, to send the request and get

00:14:01.507 the response

 

00:14:02.401 with DNS over UDP, turns into

 

00:14:07.081 a round-trip time to set-up the TCP

00:14:09.585 connection, followed by a round-trip time to

00:14:12.088 negotiate TLS, followed by a round-trip time

00:14:14.592 to make the DNS request and get

00:14:17.096 the response,

 

00:14:17.911 followed by a couple more round-trip times

00:14:20.410 to tear down all the connections.

00:14:22.552 It’s a lot higher overhead, and it

00:14:25.051 runs it runs noticeably slower, but it

00:14:27.550 provides more security.

 

00:14:34.231 DNS server TLS actually works reasonably well,

00:14:38.005 and is moderately widely deployed.

 

00:14:40.801 We’re also starting to see a couple

00:14:43.650 of alternative methods of providing secure access

00:14:46.500 to the DNS.

 

00:14:47.821 One of these DNS over HTTPS,

00:14:51.829 often shortened to “DoH”.

 

00:14:54.601 And DoH is a way of allowing

00:14:57.844 a client to some queries to a

00:15:01.088 DNS resolver using HTTPS, rather than using

00:15:04.331 UDP or TLS.

 

00:15:05.821 And the idea here, is that you

00:15:08.969 open an HTTPS connection to the resolver,

00:15:12.116 and you then send the query over

00:15:15.264 that connection, and you get the response

00:15:18.412 back in return.

 

00:15:19.861 There's two ways in which the request

00:15:22.815 can be formatted.

 

00:15:24.181 It can be formatted as a GET

00:15:27.181 request. In this case you send an

00:15:30.180 HTTP GET request for the URL,

 

00:15:32.851 for the file part of the URL,

00:15:37.174 “/dns-query?dns=“ and then the base-64 encoded version

00:15:41.497 of the data you would have sent

00:15:45.821 in the UDP packet,

 

00:15:48.391 with an “Accept:” header to indicate that

00:15:52.666 you expect a response type “application/dns-message”.

 

00:15:56.431 Alternatively, you use an HTTP POST request,

00:16:01.151 again with the URL path of “/dns-query”,

 

00:16:05.971 where the content type of the post

00:16:09.848 request is “application/dns-message”, and the content of

00:16:13.726 the query is the content is the

00:16:17.603 DNS request.

 

00:16:18.811 And, in both cases, the request being

00:16:21.598 made is exactly the same request that

00:16:24.384 would be sent in a UDP packet.

 

00:16:27.271 If it's a POST query, the contents

00:16:29.579 that would go in the UDP packet

00:16:31.886 just go straight into the body of

00:16:34.194 the POST query, of the POST request.

 

00:16:36.601 And, if it's a GET request,

00:16:39.253 they’re base-64 encoded and put it in

00:16:42.346 the GET line. But, again, it's exactly

00:16:45.440 the same content as-if it was sent

00:16:48.533 in a UDP packet.

 

00:16:50.401 No matter whether it's done using a

00:16:53.057 GET or a POST, the response that

00:16:55.713 comes back will be, assuming the name

00:16:58.369 exists, will be an HTTP 200 Ok

00:17:01.025 response, and that the body will have,

 

00:17:03.781 the header will say, it’s content type

00:17:06.124 “application/dns-message”, and the body of the response

00:17:08.467 will be the contents of the DNS

00:17:10.810 message. And, again, it's exactly the same

00:17:13.154 data that would come back in a

00:17:15.497 UDP-based DNS response.

 

00:17:21.031 And the final way we're seeing people

00:17:24.072 starting to think about making DNS queries,

00:17:27.114 is to run them over QUIC.

 

00:17:29.821 And the idea with making DNS queries

00:17:32.386 over QUIC, is that it can avoid

00:17:34.950 some of the overheads, while still providing

00:17:37.515 security.

 

00:17:37.981 So the principle is the same as

00:17:40.953 running DNS over TLS.

 

00:17:42.751 The client opens a QUIC connection to

00:17:45.215 the resolver and, as part of opening

00:17:47.679 that connection, it negotiates TLS security.

 

00:17:49.891 And then it sends the DNS request

00:17:52.668 inside that connection, and gets the response

00:17:55.444 back over the same connection. And,

00:17:57.824 again, they contain exactly the same data

00:18:00.601 as they would if the queries and

00:18:03.378 responses were sent in UDP.

 

00:18:05.461 Unlike DNS over TLS, or DNS over

00:18:09.936 HTTPS, DNS over QUIC is not yet

00:18:14.412 standardised.

 

00:18:15.151 The URL on the slide points that

00:18:17.438 to the draft specification, but that's still

00:18:19.724 a work in progress.

 

00:18:24.691 What we see, is that there are

00:18:27.176 increasingly many ways of making DNS queries.

 

00:18:29.761 There’s the traditional approach of sending the

00:18:32.673 queries over UDP.

 

00:18:34.021 You can also send them over TCP,

00:18:37.541 over TLS, over HTTPS, or over QUIC.

 

00:18:41.161 And, in all of these cases,

00:18:43.386 the contents of the request, the contents

00:18:45.982 of the query, and the contents of

00:18:48.578 the response are identical.

 

00:18:50.161 You're sending the exact same DNS queries,

00:18:53.318 the exact same DNS requests. You're getting

00:18:56.475 the exact same DNS responses back.

 

00:18:59.281 All that's changing is the transport protocol.

00:19:01.580 All that’s changing is how the query

00:19:03.879 is delivered to the resolver, and how

00:19:06.177 the response is returned.

 

00:19:07.591 It doesn't change the contents of the

00:19:10.524 messages at all.

 

00:19:11.881 What it does, is change the security

00:19:15.337 guarantees.

 

00:19:15.931 If you're using TLS, or HTTPS,

00:19:18.820 or QUIC to deliver the DNS queries

 

00:19:22.291 you're guaranteed that nobody, none of the

00:19:25.623 devices on the network between the client

00:19:28.955 and the resolver, can see those queries.

00:19:32.287 So you’re providing confidentiality.

 

00:19:34.291 And you're guaranteed that none of the

00:19:36.458 devices on the network between the client

00:19:38.624 and the resolve of can forge responses.

 

00:19:40.891 So it protects from eavesdropping on the

00:19:44.594 messages, and it protects from people on

00:19:48.297 the local network spoofing DNS responses

 

00:19:51.571 and redirecting you to a malicious site.

 

00:19:59.431 What it doesn't do, is protect you

00:20:02.026 if you don't trust the resolver.

 

00:20:04.351 We still need DNS security, we still

00:20:07.415 need signed DNS responses, to allow you

00:20:10.479 to check if the resolver is lying,

00:20:13.543 but it at least makes the connection

00:20:16.607 between the client and the resolver secure.

 

00:20:19.771 And, certainly with the option of running

00:20:22.578 DNS over HTTPS, it also gives the

00:20:25.384 client the flexibility to query different resolvers,

 

00:20:28.291 to make requests to whichever resolver it

00:20:32.946 likes, using HTTPS.

 

00:20:35.041 So that gives some flexibility to choose

00:20:37.193 a resolver that it trusts for a

00:20:39.346 particular domain.

 

00:20:43.891 And that’s all I want to say

00:20:46.858 about DNS resolution. As we've seen that

00:20:49.825 there are some security challenges, both in

00:20:52.792 providing transport security to prevent eavesdropping and

00:20:55.759 prevent forge requests, and in terms of

00:20:58.726 record security for authenticating the responses that

00:21:01.693 come back.

 

00:21:02.641 The traditional approach to DNS resolution,

00:21:05.157 over UDP, doesn't address any of those

00:21:08.092 security challenges.

 

00:21:09.031 But we're increasingly seeing devices moving to

00:21:11.706 using DNS over TLS, or over HTTPS,

00:21:14.380 and I expect in future DNS over

00:21:17.055 QUIC as well.

 

00:21:18.301 And that provides transport security, it prevents

00:21:21.648 people eavesdropping on the DNS requests,

00:21:24.518 and it prevents people forging the responses.

00:21:27.865 And, I hope, we will also see

00:21:31.213 signed and authenticated DNS records getting broader

00:21:34.560 use, in order to prevent

 

00:21:37.051 malicious resolvers from spoofing responses.

Part 4: The Politics of Names

The final part of the lecture discusses the politics of names. It talks about how DNS resolvers are selected, how the choice of DNS resolver can affect the set of names that are available, and the implications of allowing applications to choose their resolver on operator- and government-mandated name filtering. It discusses some of the intellectual property and jurisdictional implications of DNS. And it discusses some questions around control of the DNS, what domains should exist, and who should operate and control the DNS root, generic top-level domains, etc.

00:00:00.000 In this final part of the lecture,

00:00:01.964 I want to talk about the politics

00:00:03.929 of names.

 

00:00:04.590 I’ll talk about the choice of DNS

00:00:07.288 resolver, some issues around intellectual property rights

00:00:09.986 and the DNS, about what domains should

00:00:12.685 exist, who controls what domains exist,

00:00:14.997 and who controls the DNS root.

 

00:00:20.580 So let's start by talking about the

00:00:23.001 choice of the DNS resolver. How does

00:00:25.423 a host know which DNS resolve to

00:00:27.844 use?

 

00:00:28.290 Well, when it connects to a network,

00:00:31.219 a host uses something known as the

00:00:34.148 Dynamic Host Configuration Protocol to discover the

00:00:37.078 network settings and configuration options.

 

00:00:39.270 DHCP provides the host with its IP

00:00:41.998 address, tells it the IP address of

00:00:44.726 the router, the network mask, and parameters

00:00:47.454 such as that. And it also tells

00:00:50.183 the host what DNS resolver to use

00:00:52.911 on that network.

 

00:00:54.180 And, usually, this would be a DNS

00:00:57.149 resolve operated by the network operator,

00:00:59.695 operated by the Internet service provider.

 

00:01:02.340 If the host connects to multiple networks,

00:01:05.230 if the host has multiple network interfaces,

00:01:08.121 DHCP runs separately on each interface,

00:01:10.598 and it may give a different DNS

00:01:13.488 resolver for each interface.

 

00:01:15.240 For example, if a device connects to

00:01:18.291 both a 4G cellular network, and to

00:01:21.343 a private company Ethernet, then it’s possible

00:01:24.394 that

 

00:01:24.930 the company Ethernet might make available names

00:01:27.699 for internal services which didn't exist outside

00:01:30.468 the company, and which are not visible

00:01:33.238 on the 4G network.

 

00:01:34.920 So applications on multi-homed hosts, on hosts

00:01:39.444 with multiple network interfaces, should specify which

00:01:43.968 network interface

 

00:01:45.360 they're resolving names on, by specifying a

00:01:48.051 local IP addresses as one of the

00:01:50.741 parameters, one of the hints parameters,

00:01:53.047 in the getaddrinfo() call, to make sure

00:01:55.738 the names are resolved in the correct

00:01:58.428 interface, on the correct network.

 

00:02:00.450 And, of course, it's also possible to

00:02:03.467 manually configure the host. And a common

00:02:06.484 use of this might be, for example,

00:02:09.500 to talk to the Google’s public DNS

00:02:12.517 resolver, on IP address 8.8.8.8, but there

00:02:15.534 are several other public resolvers available.

 

00:02:24.570 DNS resolution has typically been implemented as

00:02:27.688 a system wide service. DHCP configures the

00:02:30.805 host, tells it the resolvers to use,

00:02:33.923 and then all applications on the host

 

00:02:37.140 access the same resolvers through the operating

00:02:40.726 system interface.

 

00:02:41.850 And this means you get a consistent

00:02:44.154 mapping of names to addresses.

 

00:02:45.900 No matter which application makes the query,

00:02:48.581 it will always get the same answer,

00:02:51.263 because it's always talking to the same

00:02:53.944 DNS resolver.

 

00:02:54.810 The use of protocols such as DNS

00:02:58.221 over HTTPS is starting to change this,

00:03:01.633 though.

 

00:03:02.220 When you have DoH, when you have

00:03:05.505 DNS over HTTPS, it's possible for applications

00:03:08.790 to easily perform their own DNS queries.

00:03:12.075 And, in particular, it's possible for web

00:03:15.360 applications, written in JavaScript, to perform DNS

00:03:18.646 queries by making HTTPS requests to any

00:03:21.931 website,

 

00:03:22.500 any website that supports DoH. And this

00:03:25.360 means that different applications, different websites,

00:03:27.811 can have different views of what the

00:03:30.671 network looks like; of what names exist,

00:03:33.531 and what names map to what IP

00:03:36.391 addresses.

 

00:03:36.900 And, in principle, it was always possible

00:03:39.566 for applications to do. It was always

00:03:42.231 possible for applications to override the choice

00:03:44.897 of DNS, it was always possible for

00:03:47.563 an application to bundle it’s own UDP-based

00:03:50.228 DNS resolver.

 

00:03:51.090 But it's now much easier. And,

00:03:53.014 because it's easier, more applications are starting

00:03:55.258 to do it.

 

00:03:59.400 Is this a problem? Does it matter

00:04:02.075 if we're giving applications the ability to

00:04:04.750 pick different DNS resolvers, to resolve names

00:04:07.425 according to a resolver of their choice?

 

00:04:10.200 In particular, given that we're allowing applications

00:04:13.897 to securely resolve names using DNS server

00:04:17.593 of their choice, why does that matter?

 

00:04:21.390 Is it a problem that we're giving

00:04:24.250 flexibility? Is it a problem that we're

00:04:27.111 allowing applications to make their own DNS

00:04:29.971 queries?

 

00:04:30.480 Well, I think there’s pros and cons

00:04:33.516 here.

 

00:04:34.050 In some ways, it's clearly beneficial.

00:04:36.630 In some ways it's clearly a good

00:04:39.640 thing, and it's not a concern that

00:04:42.650 different applications can perform DNS queries in

00:04:45.660 different ways.

 

00:04:46.620 And you can easily make the argument

00:04:49.073 that applications should have the ability to

00:04:51.527 choose a DNS server they trust.

 

00:04:53.730 To make sure that they avoid phishing

00:04:56.509 attacks, to make sure they avoid malware,

00:04:59.288 to make sure they avoid monitoring.

 

00:05:01.770 I think you can easily make the

00:05:04.772 arguments that

 

00:05:05.730 network operators should not be able to

00:05:08.005 see the DNS queries, they should not

00:05:10.280 be able to modify the responses.

 

00:05:12.330 Resolvers run by network operators should not

00:05:14.705 be able to see what queries applications

00:05:17.080 are making, and that by allowing this,

00:05:19.455 this is a privacy and security risk.

 

00:05:21.930 And there's a benefit in allowing applications

00:05:24.754 to talk to a DNS resolver of

00:05:27.578 their choice, and prevent the network operator

00:05:30.403 from snooping on their traffic.

 

00:05:32.520 I think these are all perfectly reasonable

 

00:05:36.930 arguments; this makes a lot of sense.

 

00:05:42.210 Equally, though, it's possible to make the

00:05:45.631 argument that it's problematic for applications to

00:05:49.052 have the ability to override the choice

00:05:52.473 of DNS.

 

00:05:53.550 Network operators will say that they can

00:05:57.327 filter DNS responses to block access to

00:06:01.105 sites which are providing malware, or which

00:06:04.882 are being malicious, or which are fraudulent.

 

00:06:08.760 And that allowing applications to override the

00:06:11.968 choice of DNS, talk to a server

00:06:15.177 of their choice, allows them to bypass

00:06:18.385 these security services.

 

00:06:19.860 It allows them to bypass the filtering

00:06:23.216 which is protecting them from malware,

00:06:26.093 that's protecting them from fraudulent websites.

 

00:06:29.070 And, in many countries,

 

00:06:31.200 network operators are required by law to

00:06:35.107 filter DNS responses, to enforce legal or

00:06:39.014 societal constraints.

 

00:06:40.230 For example, in the UK, the Internet

00:06:43.181 service providers apply a DNS block list

00:06:46.131 provided by the Internet Watch Foundation,

00:06:48.660 which is there to prevent access to

00:06:51.611 sites hosting child sexual abuse material.

 

00:06:54.240 By allowing applications to make their own

00:06:57.100 choice of DNS resolver, by allowing them

00:06:59.960 to access resolvers other than the one

00:07:02.821 provided by the Internet service provider,

00:07:05.272 this allows the applications to opt out

00:07:08.133 of such filtering, and to access such

00:07:10.993 prohibited content.

 

00:07:11.910 And, fundamentally, the problem is that both

00:07:15.788 legitimate filtering, and malicious and harmful DNS

00:07:19.666 filtering, use the same mechanisms. And the

00:07:23.544 mechanisms to protect against

 

00:07:25.860 phishing attacks, malware, and monitoring the DNS,

00:07:29.418 also protect against, and prevent, the legitimate

00:07:32.977 filtering of DNS requests.

 

00:07:39.360 Can the network restrict the choice of

00:07:42.423 DNS resolver? Can the network stop applications

00:07:45.486 from choosing their own DNS, if they

00:07:48.550 wish to do so?

 

00:07:50.400 Well, for DNS-over-UDP or for DNS-over-TLS,

00:07:53.742 this is certainly possible.

 

00:07:56.070 If a network blocks outgoing UDP traffic

00:07:59.832 on UDP port 53, for example,

00:08:03.056 in its firewall, this will effectively block

00:08:06.818 DNS-over-UDP to any sites which it chooses.

 

00:08:10.680 Similarly for DNS-over-TLS resolver, you can block

00:08:13.758 access, a network operator can block access,

00:08:16.836 to TCP port 853, and prevent outgoing

00:08:19.915 traffic to that port, and that will

00:08:22.993 stop DNS-over-TLS to any sites other than

00:08:26.071 the ones it allows.

 

00:08:27.930 it's much harder, though, to block DNS-over-HTTPS.

 

00:08:32.760 The problem here, for the network operators,

00:08:36.013 is that since the traffic is encrypted,

00:08:39.265 all it can see is an outgoing,

00:08:42.518 encrypted, TCP connection to a web server.

 

00:08:45.870 And it can't tell whether the data

00:08:49.800 being exchanged over that connection is regular

00:08:53.729 HTTPS traffic comprising web pages, or DNS-over-HTTPS

00:08:57.659 requests.

 

00:08:58.320 Now, in some cases, it's possible to

00:09:01.435 make this distinction from the IP address.

 

00:09:04.650 For example, Google runs a public DNS-over-HTTPS

00:09:09.842 server on IP address 8.8.8.8.

 

00:09:13.650 And, you know if you're seeing HTTPS

00:09:16.689 requests going out to this address,

00:09:19.293 this is DoH traffic, because Google doesn't

00:09:22.331 run any other websites on that address.

 

00:09:25.470 But, if you have a web server

00:09:27.784 that handles a mix of both regular

00:09:30.098 web traffic, and DNS over HTTPS traffic,

00:09:32.412 it's not possible for an ISP to

00:09:34.726 block one of these without blocking the

00:09:37.039 other.

 

00:09:37.470 And if this is a popular website,

00:09:40.612 if Google decided to offer DoH services

00:09:43.754 along with its regular web services,

00:09:46.447 it would be very difficult for network

00:09:49.589 operators to block the DNS over HTTPs

00:09:52.731 traffic.

 

00:09:53.280 And many of the Internet service providers,

00:09:56.441 many network operators, many governments, are getting

00:09:59.601 concerned that this use of DNS over

00:10:02.762 HTTPS is making it harder to use

00:10:05.922 DNS as a control point.

 

00:10:08.280 Many organisations are used to using DNS

00:10:11.747 to block access to certain types of

00:10:15.215 traffic.

 

00:10:15.810 And this is becoming much harder for

00:10:18.618 them, as more and more traffic moves

00:10:21.426 to DNS over HTTPS.

 

00:10:23.130 And, of course, whether that's a good

00:10:25.133 or a bad thing depends on your

00:10:27.135 politics, and it depends on what type

00:10:29.138 of traffic is being blocked. But it's

00:10:31.141 certainly an issue, and it's a change

00:10:33.143 in the way the network operates.

 

00:10:40.890 DNS, and DNS names, also tend to

00:10:45.295 impinge on questions of intellectual property rights.

 

00:10:49.800 And the issue here is that intellectual

00:10:53.218 property laws tend to be managed on

00:10:56.635 a national basis.

 

00:10:58.200 For example, it's entirely possible that a

00:11:01.222 particular company might own a certain trademark

00:11:04.243 in the UK, while a different company

00:11:07.265 might own that trademark in the Republic

00:11:10.287 of Ireland.

 

00:11:11.250 And, in that case, it would be

00:11:14.443 perfectly reasonable, and perfectly sensible, for

 

00:11:17.280 the domain name “trademark.ie” to be owned

00:11:20.384 by the company in the Republic of

00:11:23.488 Ireland, and the domain name “trademark.co.uk” to

00:11:26.591 be owned by the company in the

00:11:29.695 UK. And which of those companies should

00:11:32.799 own which of those domains is then

00:11:35.903 a very straightforward legal question,

 

00:11:38.220 and it's handled by the courts in

00:11:42.605 those in those countries.

 

00:11:45.210 And, for

 

00:11:46.650 country code top-level domains, this sort of

00:11:49.814 question is straightforward.

 

00:11:51.270 For the generic top-level domains, though,

00:11:53.588 it gets a bit trickier.

 

00:11:55.620 Which of those companies, for example,

00:11:59.813 should own “trademark.com”?

 

00:12:02.010 Each of the companies has the respective

00:12:05.665 trademark in the jurisdiction where they're based.

 

00:12:09.420 Yet you have a generic domain,

00:12:11.218 which is not tied to a particular

00:12:13.315 country, to a particular jurisdiction, so which

00:12:15.413 of those should have the rights over

00:12:17.510 it?

 

00:12:17.910 And, in particular, this may get hard

00:12:21.437 because “.com” is operated by US-based organisation

00:12:24.964 currently, and a different organisation may own

00:12:28.491 that trademark in the US.

 

00:12:31.110 Country code top-level domains have the advantage

00:12:34.144 of clearly operating under the legal regime

00:12:37.178 of a particular country. It makes it

00:12:40.212 easy to resolve legal questions about intellectual

00:12:43.246 property, and about ownership of the domains.

 

00:12:46.380 Generic top-level domains are much less clear.

 

00:12:52.380 Is the right of ownership for a

00:12:54.594 generic top-level domain based on where the

00:12:56.808 domain operator is? Or based on where

00:12:59.022 the person requesting the name is?

 

00:13:01.020 And, if there are multiple people who

00:13:03.034 want the name, in multiple different countries,

00:13:05.048 and they're not necessarily the same country

00:13:07.062 as the domain operator, this gets legally

00:13:09.075 tricky to work out who has ownership

00:13:11.089 and who has control.

 

00:13:17.250 And this also ties in, to some

00:13:20.470 extent, to the questions about which top-level

00:13:23.690 domains, and which subdomains should be allowed

00:13:26.910 to exist.

 

00:13:27.930 And If you think about top-level domains,

00:13:33.504 what generic top-level domains should ICANN permit

00:13:39.078 to exist?

 

00:13:40.770 What's the list of domains that should

00:13:43.831 be allowed? And who gets to control

00:13:46.893 that?

 

00:13:47.430 And an example which has been long-running,

00:13:52.594 and is contentious, is the domain “.xxx’,

00:13:57.759 the top-level domain “.xxx”.

 

00:14:00.810 And question is about whether this domain,

00:14:04.061 this top-level domain, should exist, in order

00:14:07.312 to host adult content.

 

00:14:09.270 And if it does exist, who gets

00:14:12.628 to decide what content should sit within

00:14:15.985 that domain, within that top-level domain? And

00:14:19.342 what content must sit within that domain?

 

00:14:22.800 And, different countries have very different norms,

00:14:26.287 and very different standards, for what constitutes

00:14:29.773 adult content, and for what type of

00:14:33.260 filtering is, and isn’t, appropriate.

 

00:14:35.850 And this is, obviously, a contentious example,

00:14:38.392 but there are many other such examples.

00:14:40.933 What top-level domains should exist, and who

00:14:43.475 gets to decide? Because different parts of

00:14:46.016 the world have very different norms for

00:14:48.558 what's acceptable or not.

 

00:14:55.050 When it comes to particular subdomains,

00:14:59.008 again, different regions, different countries, have significant

00:15:03.625 differences in their laws and norms about

00:15:08.243 freedom of speech, and about permissible topics,

 

00:15:12.960 about permissible topics for websites.

 

00:15:19.110 And a country code top-level domain can

00:15:23.044 clearly enforce the local conventions and rules

00:15:26.978 for the country that it represents.

 

00:15:30.450 If you have a “.co.uk” domain,

00:15:32.805 for example, it’s pretty clear that it

00:15:35.553 should enforce UK law. If you have

00:15:38.300 a “.de” domain, it's pretty clear that

00:15:41.047 should be enforcing German law.

 

00:15:43.110 But what about generic top-level domains? What

00:15:47.075 about “.com”, for example?

 

00:15:49.440 If a site in a generic top-level

00:15:52.773 domain is hosting content which is legal

00:15:56.106 in some countries, but illegal in other

00:15:59.439 countries, should that be permitted?

 

00:16:01.920 If a particular country, or a particular

00:16:05.000 group, finds the content of a site

00:16:08.080 objectionable, should that site be taken down

00:16:11.160 if it's in a generic top-level domain?

 

00:16:14.340 If a country X, for example,

00:16:17.139 decides that certain content is illegal and

00:16:20.405 should be prohibited, but if it's legal

00:16:23.670 in country Y,

 

00:16:25.170 should a generic top-level domain operating out

00:16:28.444 of country Y, but accessible in country

00:16:31.719 X, permit such content?

 

00:16:33.690 To make this concrete, holocaust denial is

00:16:37.283 illegal in Germany, but not in the

00:16:40.877 US.

 

00:16:41.490 Should “.com”, operating from the US,

00:16:44.642 permit sites which host material which denies

00:16:48.319 that the Holocaust happened?

 

00:16:50.520 It's legal where “.com” exists, but those

00:16:54.363 sites are accessible from countries, from Germany,

00:16:58.205 where this content is illegal.

 

00:17:01.050 And who gets to enforce these decisions?

00:17:04.311 Who gets to arbitrate between the sites?

00:17:07.573 Should the generic top-level domains be bound

00:17:10.834 by,

 

00:17:11.400 only be bound by, the laws of

00:17:14.593 the country which they operate from?

 

00:17:17.430 Or do we need some sort of

00:17:20.860 international

 

00:17:21.450 norms, international set of laws, about how

00:17:24.285 globally accessible domains should operate, and what

00:17:27.120 rules they should enforce?

 

00:17:32.790 I think there are similar questions about

00:17:35.471 the root servers.

 

00:17:36.720 Currently, most of the DNS root servers

00:17:42.310 are operate, or controlled, by US-based organisations.

 

00:17:48.000 And they all currently host the same

00:17:52.174 content. They all currently follow the set

00:17:56.348 of top-level domains that ICANN

 

00:17:59.430 defines.

 

00:18:01.620 But there's nothing technically requiring they do

00:18:06.494 so.

 

00:18:07.290 The question is, is it a risk

00:18:10.211 to other countries that all of these

00:18:13.132 root servers are controlled, that most of

00:18:16.053 the root servers are controlled, by a

00:18:18.974 single country? Should we be looking to

00:18:21.895 broaden the mix of countries that operate,

00:18:24.816 and that control, the root servers?

 

00:18:27.420 And if we do, who gets to

00:18:31.155 decide how this happens?

 

00:18:33.390 Is this something where

 

00:18:35.700 ICANN should be deciding, ICANN should be

00:18:39.398 mandating, that the root servers move to

00:18:43.096 be operated in different countries? Is this

00:18:46.794 something that a particular national government should

00:18:50.492 do,

 

00:18:51.120 and declare that they will run a

00:18:53.486 different route server for hosts in their

00:18:55.852 country? Is this something where the United

00:18:58.218 Nations should step in?

 

00:18:59.670 And is there a benefit in controlling

00:19:02.626 a DNS root server? Or is it

00:19:05.582 just an administrative overhead that nobody actually

00:19:08.538 wants?

 

00:19:09.060 In theory, all the root servers return

00:19:11.642 exactly the same content anyway, so why

00:19:14.223 should you care if you control one?

00:19:16.805 Unless, perhaps, you want a different view

00:19:19.386 of the DNS, unless you want a

00:19:21.968 different set of top-level domains in your

00:19:24.550 country than in other parts of the

00:19:27.131 world.

 

00:19:27.600 Similarly, is there benefit in controlling a

00:19:31.393 generic top-level domain server?

 

00:19:33.660 Is there a benefit to a country

00:19:37.504 in hosting “.com”, for example?

 

00:19:40.350 And I don't know the answer,

00:19:42.557 but there are questions that should be

00:19:45.133 asked, and there are interesting political questions

00:19:47.708 that should be asked, about the control

00:19:50.283 of the DNS root servers and the

00:19:52.858 generic top-level domain servers.

 

00:19:57.840 There’s also the question about whether there

00:20:00.452 should be a single DNS root?

 

00:20:02.790 Should all of the top-level domains be

00:20:05.412 accessible from everywhere? Should the global view

00:20:08.035 of the DNS be the same,

00:20:10.282 no matter where you're coming from?

 

00:20:12.630 Should the same name always resolve to

00:20:16.104 the same site? And, with content distribution

00:20:19.578 networks which host sites at local proxies

00:20:23.052 throughout the world, can you tell?

 

00:20:26.130 And what sort of filtering of the

00:20:28.770 DNS traffic should be permitted? And should

00:20:31.409 different countries be allowed to do this,

00:20:34.049 and are there any restrictions on what

00:20:36.689 filtering should be permitted, and how it

00:20:39.329 should be implemented?

 

00:20:40.560 And, as we've seen with DNS-over-HTTPS,

00:20:43.531 it's currently very difficult to distinguish modifications

00:20:46.997 made to DNS responses, in order to

00:20:50.463 conform to government mandated filtering requirements,

00:20:53.434 from those made by malware, and phishing

00:20:56.899 attacks, and so on.

 

00:20:58.980 And I guess the question here is,

00:21:00.833 is this a feature of the DNS,

00:21:02.686 or is this a bug?

 

00:21:04.110 And what sort of filtering should be

00:21:06.935 permitted? Should be possible?

 

00:21:13.230 So that concludes the discussion of DNS.

00:21:16.120 I’ve spoken about what is the DNS,

 

00:21:19.110 how the queries are made,

 

00:21:21.690 and in a reasonable amount of detail

00:21:24.726 about what names exist, and who controls

00:21:27.762 the set of names, and

 

00:21:30.030 how and what sorts of filtering should

00:21:33.250 happen.

 

00:21:33.810 DNS is one of the more contentious

00:21:37.024 parts of the Internet. It ties-in with

00:21:40.237 notions of national sovereignty, with intellectual property

00:21:43.451 laws,

 

00:21:44.010 with societal norms about what sort of

00:21:47.285 content should, or should not, be accessible.

00:21:50.560 And it's one of the interesting areas

00:21:53.835 where the technology and the politics combine.

Discussion

Lecture 8 discussed naming and the tussle for control. The first part of the lecture outlined what is the DNS, the structure of DNS names, the DNS server hierarchy, and the process by which name resolution works.

The second part of the lecture discussed DNS names. It outlined the history of ICANN and some issues of DNS governance. It described the process by which top-level domains are assigned, focussing mostly on country code top-level domains (ccTLDs) and generic top-level domains (gTLDs), but also mentioning the infrastructure top-level domain (.arpa) and reverse DNS, and the various special-use top-level domains. And it spoke about internationalised DNS and Punycode. Finally, it discussed the DNS root servers, their operators, and the use of anycast routing to work around the limitation on the number of root servers.

The third part of the lecture discussed DNS security and methods for DNS resolution. It highlighted that DNS has historically been insecure, and outlined the two complementary approaches to securing DNS: DNS transport security and DNS record security. Record security is provided by DNSSEC, with digital signatures delegating authority from ICANN to the root servers, and hence down to TLDs, sub-domains, etc. And transport security is provided by running DNS over TLS, HTTPS, or QUIC, rather than over UDP. The lecture also highlighted the structure of DNS queries and answers, and how that same structure is used irrespective of the transport.

Finally, the lecture discussed the politics of names. It spoke about the implications of allowing different applications to make DNS queries using different resolvers, and the potential to circumvent control points. It spoke about the complex relation between DNS and intellectual property laws, and about what domains should exist. And it spoke about the single DNS root, and the set of legal top-level domains.

Discussion will focus on technical operation of the DNS, and of the politics of naming.