There is a .bank TLD which operates that way. See https://www.ftld.com/ for details.