PAUL VIXIE: What DNS Is Not

November 17th, 2009

DNS (Domain Name System) is a hierarchical, distributed, autonomous, reliable database. The first and only of its kind, it offers realtime performance levels to a global audience with global contributors. Every TCP/IP traffic flow including every World Wide Web page view begins with at least one DNS transaction. DNS is, in a word, glorious.

To underline our understanding of what DNS is, we must differentiate it from what it is not. The Internet economy rewards unlimited creativity in the monetization of human action, and fairly often this takes the form of some kind of intermediation. For DNS, monetized intermediation means lying. The innovators who bring us such monetized intermediation do not call what they sell “lies,” but in this case it walks like a duck and quacks like one, too.

Not all misuses of DNS take the form of lying. Another frequently seen abuse is to treat DNS as a directory system, which it is not. In a directory system one can ask approximate questions and get approximate answers. Think of a printed telephone white pages directory here: users often find what they want in the printed directory not by knowing exactly what the listing is but by starting with a guess or a general idea. DNS has nothing like that: all questions and all answers are exact. But DNS has at least two mechanisms that can be misused to support approximate matching at some considerable cost to everybody else, and a lot of that goes on.
Stupid DNS Tricks

The first widespread form of DNS lie was to treat DNS lookups as mapping requests. CDNs (content distribution networks) such as Akamai and Web optimizer products such as Cisco Distributed Director treat incoming DNS lookups as opportunities to direct the activities of Web browsers. Using the IP source address of a DNS request, these products and services try to guess the proximity of the requester to each of many replicated content servers. Based on the measured load of each content server’s system and network, and on an estimate of each content server’s proximity to that requester, a DNS response is crafted to direct that requester to the closest or best content server for that URI domain.

Problems abound from this approach, but none affects the CDN operator’s revenue. First and foremost it is necessary to defeat or severely limit caching and reuse of this policy-based data (”DNS lies”). Caching and reuse, which once were considered essential to the performance and scalability of DNS, would allow a policy-based response intended for requester A also to be seen by requester B, which might not otherwise receive the same answer—for example, when server loads have changed and there’s a new balance. The effects of this noncaching are a higher DNS request rate (perhaps leading to higher revenue for CDNs that charge by the transaction) and more network load for access-side networks and a slightly higher floor for average transaction time.

Furthermore, it has never been wise to assume that a DNS request’s IP source address gives any hint of an end-system Web browser’s network location. This is because DNS requests heard by a CDN come from recursive DNS servers as a result of cache misses; they do not come from end systems themselves. Some ISPs regionalize their recursive name servers, allowing CDNs to encode rules improving the quality of their estimates. Many recursive name servers are per-country or per-continent or even per-hemisphere, however, so it’s always necessary for a CDN to deploy well-connected supernodes, and these always end up hearing a lot of out-of-region requests.

The primary benefit of a CDN is the same as gimmick-free outsourcing: it gives a content owner somebody to sue if things don’t go well. That DNS system performance and stability has to pay the price for such liability shielding is at best unfortunate. Given that a CDN still requires supernodes that will hear many out-of-region requests, a gimmick-free approach here would be to answer DNS truthfully and let existing pseudorandom distribution mechanisms do their work. Noting that there is no patent on the existing pseudorandomization technologies and that nobody ever got fired for buying a CDN, we can expect to see ever-more content distributed this way in the decades to come.
NXDOMAIN Remapping

Fairly often, as in millions of times per second worldwide, somebody looks up a domain name in DNS that isn’t there. Maybe this is a user at a Web browser making a typographical error, or maybe there’s a broken link on a Web site, or maybe a hardware or software error is causing nonexistent names to go into DNS requests. One way or another, the answer is generally supposed to be NXDOMAIN (sometimes written as RCODE=3). These negative answers are cacheable, as is any other kind of DNS information, since DNS is designed to express truth, not policy. A network application (perhaps a Web browser, or mail server, or indeed anything at all that uses TCP/IP flows to do its business) that gets back one of these negative responses is supposed to treat it as an error and reject its own underlying work item that led to this lookup. For a Web browser, rejection takes the form of an “error page.” For a mail server, rejection takes the place of “bounced e-mail.” Every TCP/IP application, large or small, new or old, knows how to cope with NXDOMAIN.

The World Wide Web has changed the rules. Though the Web is young—and though the Internet was here before the Web and will be here after the Web and is much larger than the Web—the fact remains that the Web is what end users are looking at. Advertisers have a whole language to describe the value of end users, with words such as “impressions,” “click-throughs,” and “eyeballs.” Why on earth, these advertisers ask, would you ever send back an NXDOMAIN if an impression was possible? So it is, increasingly, that in place of the NXDOMAIN your application knows how to handle, if you ask for a name that does not exist, you’ll get a positive (deceptive; false; lying) answer that your application also knows how to handle.

For example, if I ask my own recursive name server for a name that does not exist, it will tell me NXDOMAIN. If I ask OpenDNS’s recursive name server for a name that does not exist, it will send me a NOERROR response with an answer pointing at an advertising server. Note that I’m using OpenDNS as a convenient example; it did not invent this technique. Indeed, Nominum and other DNS vendors now sell an add-on to their recursive name service products to allow any ISP in the world to do this, and a growing number of ISPs are doing it. Why so many? Simply because whoever remaps these NXDOMAIN responses gets the impression revenue. There are unverified claims that some ISPs are blocking access to OpenDNS and/or all non-ISP name servers in order to force their customers to use the ISP’s own name server. I say unverified, but I find the claims credible—ISPs have wafer-thin margins and if they see this kind of manna going out the door, they can’t just let it happen.

To demonstrate the extreme desire to capture this revenue, a true story: a few years ago VeriSign, which operates the .COM domain under contract to ICANN (Internet Corporation for Assigned Names and Numbers), added a “wild card” to the top of the .COM zone (*.COM) so that its authoritative name servers would no longer generate NXDOMAIN responses. Instead they generated responses containing the address of SiteFinder’s Web site—an advertising server. The outcry from the community (including your humble narrator) was loud and long, and before ICANN had a chance to file a lawsuit to stop this nonsense, many people had patched their recursive name servers to remap any response from a .COM name server that was not a delegation (for example, telling how to find the GOOGLE.COM name servers) back into an NXDOMAIN. Some ISPs put logic into their policy-based routers to turn SiteFinder responses into pointers to the ISP’s own advertising server instead.
Damage Control

NXDOMAIN wasn’t designed to be a revenue hook—many applications depend on accurate error signals from DNS. For example, consider the “same origin trust model” used for Web cookies. If you’re holding a cookie for GOOGLE.COM and you can be fooled into following a link to KJHSDFKJHSKJHMJHER.GOOGLE.COM, and the resulting NXDOMAIN response is remapped into a positive answer to some advertising server, then you’re going to send your cookie to that advertising server when you send your HTTP GET request there. Not such a bad thing for a GOOGLE.COM cookie, but a real problem for a BANKOFAMERICA.COM cookie. (Thanks to Dan Kaminsky for telling me about the “same origin trust model” problem.)

Remapping could also cause e-mail to be captured if an MX (mail exchanger) request is captured in this way. Many NXDOMAIN remappers try to avoid this by triggering only on A (address) requests, but to make this work they have to turn off caching, since NXDOMAINs are not type specific and since an SMTP initiator will fall back to type=A if it gets no answer from type=MX. Similar protections (designed to keep lawsuits away while still attracting revenue) include the idea of triggering the remapping logic only if the query domain begins with WWW.—but as far as I know there are a lot of typographical errors beginning WW., or ending with .CM, so I do not hold out a lot of hope for it long term. Too much money is involved, and nobody wants to leave it on the table (where in this case it belongs).
Standard Bad Practices

There is at the time of this writing an IETF draft (think: proto-RFC) on the Recommended Configuration and Use of DNS Redirect by Service Providers. The goal of this document is to present some rules for how DNS lies should be delivered in order to give all the vendors and operators in this growing market a common frame of service. Some Luddites may feel that the “standard best practice” in this area is simply not to do it at all, but this being unrealistic, we now face standards action. As a standard feature of DNS technology we can expect a day to come when all DNS services are delivered this way and our kids think of end-to-end DNS the way they think of eight-track tapes.

This document makes a substantial contribution to the debate around this feature area by suggesting that opt-out for this service should be a network layer attribute (in other words, associated with one’s Ethernet [MAC] address or equipment port number) and not a transport layer attribute. Noting that as with any other kind of information, spam opt-out is not as good for the economy as opt-in, it’s valuable to the debate that this IETF draft’s authors have said that Web cookies aren’t good enough. Others may disagree but at least this point is now on the table. This document also talks about “legally mandated” DNS redirection, which is exactly the nightmare it sounds like it is and which we can all hope becomes a historical curiosity as rapidly as possible.

The absolutely best part of this IETF draft is Section 10 (DNSSEC Considerations), which ends as follows:

“So the only case where DNS security extensions cause problems for DNS Redirect is with a validating stub resolver. This case doesn’t have widespread deployment now and could be mitigated by using trust anchor, configured by the applicable ISP or DNS ASP, that could be used to sign the redirected answers. As noted above in Section 9.7, such improper redirection of valid responses may also cause DNSSEC trust verification problems.”
A Rescue Being Thought Of

Fifteen years ago a bunch of ivory tower theoreticians got together at IETF and said, “Let’s secure DNS.” The threat model has evolved over time, and now this set of protocol enhancements (DNSSEC) is more or less ready for deployment and more or less allows for the possibility that DNS liars will be caught and ignored. Noting that DNSSEC has taken too long and is a committee-based horror in its inelegance and complexity, here’s how it’s supposed to work and how it may help curtail the current market in DNS lies.

In DNS, data producers are the authoritative name servers, each of which is the delegated authority for one or more zones. For today, think of a DNS zone as everything at or below a certain name, so, for example, WWW.GOOGLE.COM is in the GOOGLE.COM zone. DNSSEC allows these zones to be signed and verified using public-key cryptography. The private (signing) key is used by the editor of the zone to generate signature records for each set of real records. The public key is used by recursive name servers to verify that the data they receive was signed by the holder of the corresponding private key. Public (verification) keys are published using DNS itself, by including each zone’s key in the zone’s parent zone—so the public key for the GOOGLE.COM zone is published in the COM zone and so on. I’m deliberately skipping a long and unpleasant story about where the public key for COM is supposed to be published, since it’s not germane to this article.

In theory, an end-system owner who doesn’t like being lied to can work cooperatively with zone editors who don’t like their zones getting lied about if each of them deploys DNSSEC. An application that is supposed to receive an NXDOMAIN but that today receives a pointer to an advertising server would in a DNSSEC world receive a “signature not present” error. This would be an error because DNSSEC has a way to inform a validator that a signature should have been present. Note that in the vast majority of cases zone editors don’t care whether their zones are being lied about, and, therefore, DNSSEC will remain silent most of the time. Consider also that this was not the original DNSSEC threat model; we really thought we had to stop on-the-wire corruption such as that discovered by Dan Kaminsky in 2008, and the idea of stopping in-the-middlebox corruption such as NXDOMAIN remapping really is just gravy.

DNSSEC will complicate life for CDN providers using Stupid DNS Tricks, but it won’t end that war since it’s still possible to sign every policy-based answer and keep all the answers and signatures available, and still send different answers to the same question based on requester identity and policy, and have the signatures all be perfectly valid.

DNSSEC will also complicate life for sysadmins and application developers. We (ISC—the BIND people) are doing what we can to improve on that in BIND9 9.7 (due out by December 2009), and there are plenty of other service and technology providers in the space as well. The killer app for DNSSEC will be a Web browser and Web server that can authenticate to each other without using X.509 (volunteers are hereby encouraged to get together and try to make that happen).
Directory Services

Browser implementers including Microsoft and Mozilla have begun doing DNS queries while collecting URIs from their graphical front end in order to do fancy “auto-completion.” This means that during the typing time of a URI such as http://www.cnn.com/, the browser will have asked questions such as W, WW, WWW, WWW.C, WWW.CN, WWW.CNN, and so on. It’s not quite that bad, since the browsers have a precompiled idea of what the top-level domains are. They won’t actually ask for WWW.C, for example, but they are now asking for WWW.CN, which is in China, and WWW.CNN.CO, which is in Colombia.

Although one simple-sounding solution is for Microsoft and Firefox to buy some name-server hardware and network links for China and Colombia (and no doubt many other affected top-level domain operators), that won’t stop the information leak or remove this stupid and useless traffic from the rest of the network. Since the truly best solution is, as usual, stop doing this stupid thing—and we all know that isn’t going to happen—perhaps this behavior can be made optional, and then we can just argue about what the default (opt-in vs. opt-out) should be. This is the first time in the history of DNS that someone has used it prospectively, to find out if what has been typed is or isn’t a valid domain name, in order to support something like auto-completion. As in so many other novel uses of DNS, this is not what it was designed for.

Had DNS been designed with this kind of thing in mind, one of the ways we would be able to tell is that domain names would be written from highest- to lowest-order term (COM.CNN.WWW). This would allow partial name completion just as happens in graphical file system browsers. Absent a complete redesign, which won’t happen in our lifetime because of the size and usefulness of the installed base, all we can do is ask browser implementers to be smarter and prepare for more DNS traffic on our networks.
Conclusion

What DNS is not is a mapping service or a mechanism for delivering policy-based information. DNS was designed to express facts, not policies. Because it works so well and is ubiquitous, however, it’s all too common for entrepreneurs to see it as a greenfield opportunity. Those of us who work to implement, enhance, and deploy DNS and to keep the global system of name servers operating will continue to find ways to keep the thing alive even with all these innovators taking their little bites out of it.

These are unhappy observations and there is no solution within reach because of the extraordinary size of the installed base. The tasks where DNS falls short, but that people nevertheless want it to be able to do, are in most cases fundamental to the current design. What will play out now will be an information war in which innovators who muscle in early enough and gain enough market share will prevent others from doing likewise—DNS lies vs. DNS security is only one example.
Article by PAUL VIXIE, who is president of Internet Systems Consortium (ISC), a nonprofit company that operates the DNS F root name server and that publishes the BIND software used by 80% of the Internet for DNS publication. He is also chairman of American Registry for Internet Numbers (ARIN), a nonprofit company that allocates Internet number resources in the North American and Caribbean regions. Previously, Mr. Vixie was a founder and president of PAIX, the first neutral commercial Internet exchange; SVP/CTO of AboveNet; and founder of the first anti-spam company (MAPS LLC) in 1996.

SOURCE

Agenda of 6th CDG meeting

November 17th, 2009

(23rd October at IUJ 10:30-12:00 )

1. Mikami-sensei’s presentation at midterm hearing by JST

2. Jay-sensei and Das-kun “Do the Internet Security Alerts Have an Impact on Lowering ccTLD Security Risks?”

Minutes of 5th CDG meeting (18th September at GLOCOM 14:00-18:00)

October 11th, 2009

1. Adam-sensei’s visit to St Kitts and Nevis in August

St. Kitts and Navis is a Caribbean country and There was a C(Caribbean)-IGF by CTU Adam-sensei attended. Policy frameworks made by CTU is on discussion. As it may be useful, five policy areas are shown below:

  1. Physical structure
  2. Logical structure
  3. Content
  4. Public awareness and capacity building
  5. Research

Second theme is local content and IXPs. Local content is under heavy influence of North America and against this, importance of local content is advocated. Local peers are, despite the growth of local Internet markets induced by the deregulation and introduction of competition, still not enough and their growth is an urgent matter. Government’s encouragement to private companies is needed to ensure the local peer development.

Thinking of relation between CTU and ccTLDs, ccTLD policy is an important matter. ccTLD stakeholders tend to regard policy making as a sovereign issue. There is also some concern between ITU and CTU.

2. Workshop at IGF, themes, logistics and so on

Workshop will be held on the second day, 16th, from 16:30 to 18:00. Workshop themes are already uploaded to the site and can be seen from the following URI:

http://www.intgovforum.org/cms/index.php/component/chronocontact/?chronoformname=WSProposals2009View&wspid=204

3. Review of JST scheduled on 5th Oct. The deadline for report submission is 24th Sept.

Progress report by Kamimura-sensei was presented. The report was circulated (?) updated according to comments. The presentation on 5th Oct will be translated into English and circulated. Please wait for the next month (13- )

The next meeting will be on 23th Oct. at Urasa IUJ from 10:30 am.

Minutes of 4th CDG meeting (17th July at NUT 15:00-18:00)

October 11th, 2009

1. Reports on ccTLDs

Kamimura

- Meeting Report from ICANN and conversation with Josh Rowe

- Report by Garth Bruen on ccTLD

Kamimura-san’s talk was on ICANN meeting in Sydney. IDN ccTLD was discussed in a public forum. ICANN asked ccTLD holders to pay the fee for IDN installment.

Josh Rowe did a comprehensive survey on name space across the ccTLDs and proposes an evaluation framework of goodness of name space labels.

From him, we have got a new source for domain name labels.

Garth Bruen from KunjOn.com reported a survey of WHOIS policy. They evaluate appropriate administration based on some respects: responsibility of the ccTLD administrator, public/private WHOIS, open/closed policy.

And new findings from ccTLD price survey by GLOCOM


2. 2009 workshop

IGF Nov. at Sharm el Sheikh. The workshop may be held in the second day and integrated into the other workshop. The workshop will be 2 hours long.

Small workshop on 18th September, talking on the IGF workshop.

Workshop in January or February at Tokyo.


3. ITU report on WSIS targets

Mikami-sensei received from an ITU person a mail in which he requested Mikami-sensei to cooperate with their project. They needed reports on the themes with which they are not so familiar. NUT would participate in this report.

Minute of the 3rd CDG 2009 meeting at NUT June, 18

June 23rd, 2009

Attendants: Mikami, Murakami, Ashu, Jay, Kamimura, Adam, Arai, Chew, Aiylchieva, Das, Kasmamytov, Mera, Uzokwe, Kodama

1. Reports on ccTLDs (Nigeria, Kyrgyzstan, Dominica)

Talks on the ccTLD domain governance of each country. Discussions on the governance entity, domain organization, and Internet security policy.

Das and Chew presented their studies on security evaluation. Collaboration between them would be useful for their study and our project.

2. 2009 workshop

September workshop will be held just for preparation for IGF and no (or few) number of foreign specialist will be invited.

For IGF, Adam-sensei had done a great contribution to arrange the workshop and seek the panels. We will concentrate on the workshop in this summer.

After the IGF, maybe in January or February (precise date should be chosen), after-IGF conference will be held, Mikami-sensei proposed.

In the next meeting, plans for those workshops shall be discussed.

Next meeting, at NUT on 17th July, from 15:00-18:00

Minutes of 2nd CDG 2009 Meeting at NUT May, 28

June 3rd, 2009

Attendants: Mikami, Jay, Kamimura, Adam, Arai, Chew, Das, Kodama

Status report:

(1) Arai

Integration of GLOCOM data

Up-loading, Calculating, Displaying functions

To do:

To implement calculations which are needed

To integrate the data

To transplant the system to MML to make it accessible from GLOCOM

Server will be prepared in 10 days.

(2) Chew

Available databases

How to connect databases with evaluation of domains

(3) Jay

Talk on “Internet and Global Governance”

Relations between Internet Governance bodies: ICANN, ITU, WIPO, etc.

What needs governance? How many components are there in Internet Governance?

Definitions of elements in Internet Governance

Which organization is responsible for various elements of Internet Governance

Internet protocols, resources: ISOC, ICANN, ITU, etc.

UDRP: WIPO, etc.

But for others?

Prepare simple handout about framework of diverse aspects of Internet Governance

Visualization of Internet Security

Integration of multiple aspects of Internet Governance

Themes:

Model Framework

Model Charter

Balancing of elements

Diversity

Speakers should be nominated by 15th June

Next meeting 18th June at NUT 15:00-18:00, (next 17th July, 18th Sept)

Tokyo workshop 18th Sept.

Report on our research and discussing model charter freely.

Minutes of 1st CDG 2009 meeting at GLOCOM 14th April

April 17th, 2009

Attendants: Kamimura, Jay, Adam, Mikami, Chew, Arai, Kodama

1. Summary of 2008 Activities

i. 2008 activities
a. Arai

He reported i-Galaxy database which collects and stores data from NUT and Waseda Univ.

Waseda’s data contains those from .com domain and CJK data. Rosette is used for language identification.

Thus languages of some data remain unanalyzed.

Waseda’s data lacks some features that are contained in NUT’s data. Arai-kun will gather the requests and send them to Waseda.

Another Problem is to improve analyzing speed. Now 5,000 pages is processed a day but this is so slow that some improvement is needed.

b. Chew

His programs under development are DDF (dangerous domain finder), G2LI(Global Information Infrastructure laboratory’s Language Identifier) and G2AT(Global Information Infrastructure laboratory’s Analysis Tool).

DDF needs third party’s data provided by, ex. McAfee to verify the accuracy of collected data. Chew will provide more information about DDF next time.

c. Kamimura visited on Cambodia Laos and mexico.

We shall provide short trip report on the person met and some other things.
Maybe it is useful to create the template for trip report.
That is used for circulation and periodical report.

d. Adam

report on ccTLD redelegation and stakeholders’ function. In redelegation process, players from various sectors interacts and many conflicts are now occurring.

We need to think the shape of charter. It may be difficult to create a single charter that can be applied to domain governors from different origins. Instead, options and subsets should be prepared for them to choose the most appropriate.

ii. Comments from JST

a. Mikami

On comments from JST

social implementation is important.


2. Plan for 2009

a. CDG maturity indexes
NUT is planning on once more crawling this year.

b. Model ccTLD Charter

Caribbean Internet Governance Policy framework for all the stakeholders, this will be a model.

3. 2009 Workshop
The fourth annual IGF Meeting will be held from 15-18 November in Sharm El Sheikh, Egypt
organizing original workshop or joining to other workshop.
Proposal for workshop deadline 21st Apr
Adam-seisei will register

In 18th Sep., workshop CDG 2009 in Tokyo, it will be organized by Kamimura-sensei.

Coming Meetings 27th May 3PM-6PM 18th Jun 17th Jul. 2PM-5PM

Drop-Catching domains is Business

February 1st, 2008

Coalition Against Domain Name Abuse (CADNA) recently published its study about drop-catching — ‘a process whereby a domain that has expired is released into the pool of available names and is instantly re-registered by another party.’ The study showed that 100% of ‘.com’ and ‘.net’ domain names were immediately registered after they had been released.

Quoting: “The results also show that 87% of Dot-COM drop-catchers use the domain names for pay-per-click (PPC) sites. They have no interest in these domain names other than leveraging them to post PPC ads and turn a profit. Interestingly, only 67% of Dot-ORG drop catchers use the domains they catch to post these sites — most likely because Dot-ORG names are harder to monetize due to the lack of type-in traffic and because they tend to be used for more legitimate purposes.”

SOURCE: CADNA white paper Drop-Catching

SANS Top-20 2007 Security Risks (2007 Annual Update)

January 15th, 2008

SANS Institute released the top 20 security risks for year 2007. The report break down risks into several sections, likes Client-side Vulnerabilities, Server-side Vulnerabilities, Security Policy and Personnel, Application Abuse, Network Devices, Zero Day Attacks.

Full report can be read HERE.

The Country Domain Governance project and the United Nations UNCITRAL’s Model Law on E-Commerce

November 22nd, 2007

Can the Internet country domain governance learn from the UNCITRAL’s Model Law approach to address the Internet governance problems/weaknesses/vulnerabilities on the country domain level?The motivations for the Model Law included “the progressive harmonization and unification of the law of international trade and in that respect to bear in mind the interests of all peoples, in particular those of developing countries, in the extensive development of international trade”.

The United Nations Model Law facilitating the use of electronic commerce intends to be “acceptable to States with different legal, social and economic systems, and could contribute significantly to the development of harmonious international economic relations”, “is intended to facilitate the use of communications and storage of information … and contains rules in specific areas.” http://www.uncitral.org/uncitral/en/uncitral_texts/electronic_commerce/1996Model_status.html

The legislation implementing provisions of the United Nations Model Law has been adopted by many countries, including Dominican republic, Colombia, Ecuador, overseas territories of the United Kingdom. The Model Law influenced the legislation in the USA and Canada.

 The UNCITRAL’s Model Law approach seems to be a viable approach to address, in some extent, the existing problems/weaknesses/vulnerabilities of the Internet Country Domain Governance on the country domain level.