(nnrpd domain resolver)


domain domain-name


This program can be used in readers.conf to grant access based on the subdomain part of the remote hostname. In particular, it only returns success if the remote hostname ends in domain-name. (A leading dot on domain-name is optional; even without it, the argument must match on dot-separated boundaries). The username returned is whatever initial part of the remote hostname remains after domain-name is removed. It is an error if there is no initial part (that is, if the remote hostname is exactly the specified domain-name).


The following readers.conf(5) fragment grants access to hosts with internal domain names:

    auth internal {
        res: "domain .internal"
        default-domain: ""

    access internal {
        users: "*"
        newsgroups: example.*

Access is granted to the example.* groups for all connections from hosts that resolve to hostnames ending in .internal; a connection from foo.internal would match access groups as identity.


It seems the code does not confirm that the matching part is actually at the end of the remote hostname (e.g., domain: would match the remote host by ignoring the trailing .org part).

Does this resolver actually provide any useful functionality not available by using wildcards in the readers.conf(5) hosts parameter? If so, the example above should reflect this functionality.


This documentation was written by Jeffrey M. Vinocur <>.


nnrpd(8), readers.conf(5)

Last spun 2023-05-13 from POD modified 2023-04-02