I don't think "lan" would be valid in the search directive, only a domain. I only put nameserver directives in my resolv.conf files, I don't particularly want that behaviour, at least not unless I actually had a domain that directive could catch. See, what happened to you is, you typed an improperly formatted address (not a fully qualified domain) so your resolver was trying to append .lan to your
http://localhost.