IPFS has DNSLink and Dat has .well-known/dat
for the autodiscovery of the content on their networks given a domain name (or a website in Dat's case).
So for instance, when a user visits http://facebook.com/ using Tor Browser Bundle, the browser can automatically discover if the website offers a hidden service (e.g. http://facebookcorewwwi.onion/) and can redirect (or ask to redirect) the user.
P.S. I remember reading something about Tor's solution to this (which used DNS), but cannot find it again as search results for "tor" and "dns" return irrelevant results mostly about DNS leaks.