It's been a couple of weeks since I worked on ObsTCP. There has been some public key signature work and family matters in between.
However, I did have a stonking good idea today (with partial credit to djb).
Previously I intended to encode adverts in a DNS TXT record under a special name. This would mean writing a custom resolver to handle this and doubling the number of DNS lookups for each host.
However, if I encode the advert in a CNAME, I don't need either.
Consider www.example.com, a CNAME for opa12354zbcdefghijkl12345.example.com. When one performs a lookup for an A record for www.example.com, the server will return the A record opa...example.com and the CNAME record for www. By encoding the advert in the CNAME, we don't need an additional request.
Also, the CNAME chain is returned by gethostbyname (but not getaddrinfo), thus we can use the standard libc resolver too.
I'm very happy with this. I'm patching up Firefox now to use gethostbyname and to parse adverts from DNS.
Tuesday, September 30, 2008
Subscribe to:
Post Comments (Atom)
1 comments:
Wow, this sounds like a great idea!
Again, I'm incredibly excited about your work - every time you update, I get more and more psyched about the quality of the potential implementation and how useful it will be.
Post a Comment