By "ad.doubleclick.net" do you mean "127.0.0.1"? Am I missing something, or would that be an easy way to avoid all this mess in the first place (that is, on a box where you have root)?
"Dump the condiments. If we are to be eaten, we don't need to taste good." -- "Visionaries" cartoon