Frequently asked questions about GNS
- Who runs the GNS root zone?
A: Short answer: you. The long answer is that GNUnet ships with a small default configuration of top-level domains (see Concepts), which is registered in GANA under a restrictive policy. In any case, the user can modify this configuration at will. We expect normal users to have no need to edit their own GNS zone(s) unless they host services themselves.
- Where is the per-user GNS database kept?
A: The short answer is that the database is kept at the user’s GNUnet peer. Now, a user may run multiple GNUnet peers, in which case the database could be kept at each peer (however, we don’t have code for convenient replication). Similarly, multiple GNUnet peers can share one instance of the database — the “gnunet-service-namestore” can be accessed from remote (via TCP). The actual data can be stored in a Postgres database, for which various replication options are again applicable. Ultimately, there are many options for how users can store (and secure) their GNS database.
- What is the expected average size of a GNS namestore database?
A: Pretty small. Based on our user study where we looked at browser histories and the number of domains visited, we expect that GNS databases will only grow to a few tens of thousands of entries, small enough to fit even on mobile devices.
- Is GNS resistant to the attacks on DNS used by the US?
A: We believe so, as there is no entity that any government could force to change the mapping for a name except for each individual user (and then the changes would only apply to the names that this user is the authority for). So if everyone used GNS, the only practical attack of a government would be to force the operator of a server to change the GNS records for his server to point elsewhere. However, if the owner of the private key for a zone is unavailable for enforcement, the respective zone cannot be changed and any other zone delegating to this zone will achieve proper resolution.
- How does GNS compare to other name systems?
A: A scientific paper comparing GNS with other decentralized name systems has been published. The answers below summarize the differences to some of them.
- What is the difference between GNS and CoDoNS?
A: CoDoNS decentralizes the DNS database (using a DHT) but preserves the authority structure of DNS. With CoDoNS, IANA/ICANN are still in charge, and there are still registrars that determine who owns a name. With GNS, we decentralize the database and also decentralize the responsibility for naming: each user runs their own personal root zone and is thus in complete control of the names they use. GNS also has many additional features (to keep names short and enable migration) which don’t even make sense in the context of CoDoNS.
- What is the difference between GNS and SocialDNS?
A: Like GNS, SocialDNS allows each user to create DNS mappings. However, with SocialDNS the mappings are shared through the social network and subjected to ranking. As the social relationships evolve, names can thus change in surprising ways. With GNS, names are primarily shared via delegation, and thus mappings will only change if the user responsible for the name (the authority) manually changes the record.
- What is the difference between GNS and ODDNS?
A: ODDNS is primarily designed to bypass the DNS root zone and the TLD registries (such as those for “.com” and “.org”). Instead of using those, each user is expected to maintain a database of (second-level) domains (like “gnu.org”) and the IP addresses of the respective name servers. Resolution will fail if the target name servers change IPs.
- What is the difference between GNS and Handshake?
A: Handshake is a blockchain-based method for root zone governance. Hence, it does not address the name resolution process itself but delegates resolution into DNS after the initial TLD resolution. Not taking sustainablility considerations into account, Handshake could be used as an additional supporting GNS root zone governance model, but we currently do not have such plans in mind.
- What is the difference between GNS and TrickleDNS?
A: TrickleDNS pushes (“critical”) DNS records between DNS resolvers of participating domains to provide “better availability, lower query resolution times, and faster update propagation”. Thus TrickleDNS is focused on defeating attacks on the availability (and performance) of record propagation in DNS, for example via DDoS attacks on DNS root servers. TrickleDNS is thus concerned with how to ensure distribution of authoritative records, and authority remains derived from the DNS hierarchy.
- Does GNS require real-world introduction (secure PKEY exchange) in the style of the PGP web of trust?
A: For security, it is well known that an initial trust path between the two parties must exist. However, for applications where this is not required, weaker mechanisms can be used. For example, we have implemented a first-come-first-served (FCFS) authority which allows arbitrary users to register arbitrary names. The key of this authority is included with every GNUnet installation. Thus, any name registered with FCFS is in fact global and requires no further introduction. However, the security of these names depends entirely on the trustworthiness of the FCFS authority. The authority can be queried under the “.pin.gns.alt” TLD; see Publishing and sharing your zone.
- How can a legitimate domain owner tell other people to not use his name in GNS?
A: Names have no owners in GNS, so there cannot be a “legitimate” domain owner. Any user can claim any name (as his preferred name or “pseudonym”) in his NICK record. Similarly, all other users can choose to ignore this preference and use a name of their choice (or even assign no name) for this user.
- Did you consider the privacy implications of making your personal GNS zone visible?
A: Each record in GNS has a flag “private”. Records are shared with other users (via DHT or zone transfers) only if this flag is not set. Thus, users have full control over what information about their zones is made public.
- Are “Legacy Host” (LEHO) records not going to be obsolete with IPv6?
A: The question presumes that (a) virtual hosting is only necessary because of IPv4 address scarcity, and (b) that LEHOs are only useful in the context of virtual hosting. However, LEHOs are also useful to help with X.509 certificate validation (as they specify for which legacy hostname the certificate should be valid). Also, even with IPv6 fully deployed and “infinite” IP addresses being available, we’re not sure that virtual hosting would disappear. Finally, we don’t want to have to wait for IPv6 to become commonplace, GNS should work with today’s networks.
- Why does GNS not use a trust metric or consensus to determine globally unique names?
A: Trust metrics have the fundamental problem that they have thresholds. As trust relationships evolve, mappings would change their meaning as they cross each others thresholds. We decided that the resulting unpredictability of the resolution process was not acceptable. Furthermore, trust and consensus might be easy to manipulate by adversaries.
- How do you handle compromised zone keys in GNS?
A: The owner of a private key can create a revocation message. This one can then be flooded throughout the overlay network, creating a copy at all peers. Before using a public key, peers check if that key has been revoked. All names that involve delegation via a revoked zone will then fail to resolve. Peers always automatically check for the existence of a revocation message when resolving names.
- Could the signing algorithm of GNS be upgraded in the future?
A: Yes. In our efforts to standardize GNS, we have already modified the protocol to support alternative delegation records. Naturally, deployed GNS implementations would have to be updated to support the new signature scheme. The new scheme can then be run in parallel with the existing system by using a new record type to indicate the use of a different cipher system.
- How can a GNS zone maintain several name servers, e.g. for load balancing?
A: We don’t expect this to be necessary, as GNS records are stored (and replicated) in the R5N DHT. Thus the authority will typically not be contacted whenever clients perform a lookup. Even if the authority goes (temporarily) off-line, the DHT will cache the records for some time. However, should having multiple servers for a zone be considered truly necessary, the owner of the zone can simply run multiple peers (and share the zone’s key and database among them).
- Why do you believe it is worth giving up unique names for censorship resistance?
A: The GNU Name system offers an alternative to DNS that is censorship resistant. As with any security mechanism, this comes at a cost (names are not globally unique). To draw a parallel, HTTPS connections use more bandwidth and have higher latency than HTTP connections. Depending on your application, HTTPS may not be worth the cost. However, for users that are experiencing censorship (or are concerned about it), giving up globally unique names may very well be worth the cost. After all, what is a “globally” unique name worth, if it does not resolve?
- Why do you say that DNS is ‘centralized’ and ‘distributed’?
A: We say that DNS is ‘centralized’ because it has a central component / central point of failure — the root zone and its management by IANA/ICANN. This centralization creates vulnerabilities. For example, the US government was able to reassign the management of the country-TLDs of Afganistan and Iraq during the wars at the beginning of the 21st century.
- How does GNS protect against layer-3 censorship?
A: GNS does not directly help with layer-3 censorship, but it does help indirectly in two ways: Many websites today use virtual hosting, so blocking a particular IP address causes much more collateral damage than blocking a DNS name. It thus raises the cost of censorship. Existing layer-3 circumvention solutions (such as Tor) would benefit from a censorship resistant naming system. Accessing Tor’s “.onion” namespace currently requires users to use unmemorable cryptographic identifiers. With nicer names, Tor and tor2web-like services would be even easier to use.
- Does GNS work with search engines?
A: GNS creates no significant problems for search engines, as they can use GNS to perform name resolution as well as any normal user. Naturally, while we typically expect normal users to install custom software for name resolution, this is unlikely to work for search engines today. However, the DNS2GNS gateway allows search engines to use DNS to resolve GNS names, so they can still index GNS resources. However, as using DNS2GNS gateways breaks the cryptographic chain of trust, legacy search engines will obviously not obtain censorship-resistant names.
- How does GNS compare to the Unmanaged Internet Architecture (UIA)?
A: UIA and GNS both share the same basic naming model, which actually originated with Rivest’s SDSI. However, UIA is not concerned about integration with legacy applications and instead focuses on universal connectivity between a user’s many machines. In contrast, GNS was designed to interoperate with DNS as much as possible, and to also work as much as possible with the existing Web infrastructure. UIA is not at all concerned about legacy systems (clean slate).
- Doesn’t GNS increase the trusted-computing base compared to DNS(SEC)?
A: First of all, in GNS you can explicitly see the trust chain, so you know if a name you are resolving belongs to a friend, or a friend-of-a-friend, and can thus decide how much you trust the result. Naturally, the trusted-computing base (TCB) can become arbitrarily large this way — however, given the name length restriction, for an individual name it is always less than about 128 entities.
- How does GNS handle SRV/TLSA records where service and protocol are part of the domain name?
A: When GNS splits a domain name into labels for resolution, it detects the “_Service._Proto” syntax, converts “Service” to the corresponding port number and “Proto” to the corresponding protocol number. The rest of the name is resolved as usual. Then, when the result is presented, GNS looks for the GNS-specific “BOX” record type. A BOX record is a record that contains another record (such as SRV or TLSA records) and adds a service and protocol number (and the original boxed record type) to it.