This is a question about DNS root nameservers.
In order to resolve DNS queries, to obtain nameservers for the first stage of the process, the root nameservers must be consulted.
There are 13 and the IP addresses of these servers can be viewed at http://www.internic.net/zones/named.root
My understanding is that when a new device connects to the internet, it (probably) uses the nameservers provided by the ISP. (I don't actually know how the IP addresses of these devices are obtained. Presumably some software in the router/hardware provided by the ISP?)
The ISP then knows the IP addresses of the root nameservers.
The question is what happens if those IP addresses change? Is this possible?
Taking a look at http://www.internic.net/zones/named.root the IP addresses seem to be somewhat arbitrary.
Presumably they are static and decided by ICANN. Can the IP addresses of the root nameservers change? If so, what happens?
Yes, it can change, and it happened in the past, see for example https://h.root-servers.org/renumber.html
It happened in fact multiple times "recently":
d
root nameserver changed its IP address in January 2013h
root nameserver did in December 2015j
in 2002l
in 2007Besides that, IPv6 addresses were also added in the past.
(to have the full picture: at least one renumbering event in the past did create some stir, as the owner of the now deprecated IP address block continued to listen for queries coming and hence collected data).
More generally, you might want to look at https://www.icann.org/en/system/files/files/rssac-023-04nov16-en.pdf that gives a full details of history on root nameservers, with changes in both number, names, and IP addresses.
It is not a problem because:
As for:
The configuration is either hard coded or the settings are obtained at boot using DHCP.
But note that this becomes less and less true, as it is overriden. With DoH (DNS over HTTPS), or DoT but in a lesser fashion, this opens now the way for each application (ex: a browser) to decide which recursive nameserver to query, irrespective to what the OS is configured with. And indeed browsers started that trend quite heavily.
And for:
You need to remember/know that the DNS system is 40 years old. It evolved. Companies/Organizations were tasked at the beginning to be benevolent root nameserver operators, and each used its IP blocks. If it were created from scratch today I am sure that some blocks would be reserved for it, as it was done for related operations (see RFC 7434 and 7435 for examples).
But besides that, no IP address is special. Each works the same way, or can be made to work the same way (root nameservers are using anycast).
They can be changed, and they have changed several times over the years, albeit rarely.
The key is that when they have been changed, they have not all been changed at the same time. So if one is changed, DNS resolvers are still able to reach the remaining servers until their operators are able to update their root hints file.
Quotation from the IANA page on root servers:
(my emphasis)
Therefore, if root servers' IP addresses changed, software everywhere in the world would have to change, too.
To me, this is enough evidence to conclude that these addresses will never change. EDIT: The comments below and the best answer show that this statement is not correct, and that root nameservers' addresses do change occasionally.EDIT: The first IP address is hardwired into RFC1400. From the RFC:
This indicates that this address will not change as long as this RFC is in effect, but in theory, addresses of other root servers could change. I guess that DNS software should be designed so that it updates the root hints file from ns.internic.net.