1DOMAIN(8) InterNetNews Documentation DOMAIN(8)
2
3
4
6 domain - nnrpd domain resolver
7
9 domain domainname
10
12 This program can be used in readers.conf to grant access based on the
13 subdomain part of the remote hostname. In particular, it only returns
14 success if the remote hostname ends in domainname. (A leading dot on
15 domainname is optional; even without it, the argument must match on
16 dot-separated boundaries). The "username" returned is whatever initial
17 part of the remote hostname remains after domainname is removed. It is
18 an error if there is no initial part (that is, if the remote hostname
19 is exactly the specified domainname).
20
22 The following readers.conf(5) fragment grants access to hosts with
23 internal domain names:
24
25 auth internal {
26 res: "domain .internal"
27 default-domain: "example.com"
28 }
29
30 access internal {
31 users: "*@example.com"
32 newsgroups: example.*
33 }
34
35 Access is granted to the example.* groups for all connections from
36 hosts that resolve to hostnames ending in ".internal"; a connection
37 from "foo.internal" would match access groups as "foo@example.com".
38
40 It seems the code does not confirm that the matching part is actually
41 at the end of the remote hostname (e.g., "domain: example.com" would
42 match the remote host "foo.example.com.org" by ignoring the trailing
43 ".org" part).
44
45 Does this resolver actually provide any useful functionality not
46 available by using wildcards in the readers.conf(5) hosts parameter?
47 If so, the example above should reflect this functionality.
48
50 This documentation was written by Jeffrey M. Vinocur <jeff@litech.org>.
51
53 nnrpd(8), readers.conf(5)
54
55
56
57INN 2.6.5 2022-01-23 DOMAIN(8)