sudo apt-get install dnsmasq

Then in  /etc/dnsmasq.conf  (which you may have to create) add the line:

address=/tumblr.com/127.0.0.1

No more tumblr.com 😀