Monday, November 08, 2010 at 12:06 AM.

system.verbs.builtins.tcp.dns.getDottedId

on getDottedId (domainName) { //turn a domain name into a dotted id
	<<9/24/98; 1:20:33 PM by DW
		<<we cache the domain names in system.temp
		<<sub-items of system.temp don't survive a restart
	local (adrcache = @system.temp.reverseIpCache);
	if not defined (adrcache^) {
		new (tabletype, adrcache)};
	local (adritem = @adrcache^.[domainName]);
	if defined (adritem^) {
		return (adritem^)}
	else {
		local (s = tcp.addressDecode (tcp.nameToAddress (domainName)));
		adritem^ = s;
		return (s)}}
<<bundle //test code
	<<for i = 1 to 100
		<<s = getDomainName ("www.scripting.com")
	<<dialog.alert (s)



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.