FYI the nostr.json file returns an empty response if you don’t pass in a name but I can make something that can check if certain public keys have a higher trust level and how much at NL.
Discussion
I think I always pass in a name.
you have to generate specific responses from a name or otherwise by the spec you should return the whole file with all the names.
my personal NIP-05 just serves only the whole thing, i haven't bothered to write in the ability to do more because my reverse proxy, which serves it, hasn't got a database to generate only one username reference (i know it's simple, but still). also just to point out, but the name _ can mean a domain/subdomain without an @. you can also do this, instead of username@domain if you have a wildcard domain that lets you listen out for the subdomain as the signifier.