Date: Tue, 2 Dec 2025 14:25:07 -0800 From: Rick Macklem <rick.macklem@gmail.com> To: freebsd-fs@freebsd.org Subject: Re: nfs exports by local dns Message-ID: <CAM5tNy4Q-_KM6TwAjzP=8i0w8dPDPYqc0QmqWxaa3E=PM9U8yA@mail.gmail.com> In-Reply-To: <aS9jHK0fdDMWSUBJ@int21h> References: <aS8eW048vdJOxdfR@int21h> <CAM5tNy49FMOMTMV11BMxf=EbAJ896ggjC081=QMSyUZkatev8Q@mail.gmail.com> <aS9jHK0fdDMWSUBJ@int21h>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Dec 2, 2025 at 2:07 PM void <void@f-m.fm> wrote: > > On Tue, Dec 02, 2025 at 01:30:47PM -0800, Rick Macklem wrote: > >You cannot wildcard, so I'd list them all. > >Also, unless they are all in /etc/hosts, I'd list the IP addresses and > >not the host names, because I wouldn't want the NFS server to depend > >on DNS being up when it boots. > >(But that's just the way I would do it.) > > Would the list all go on one line or can/would it be like > > client1 client2 client3 client4 client5 client6 \ <== note the backslash > client7 client8 client9 Don't know how "zfs set" likes it. I'd just list them on one line with whitespace. For lines you type into /etc/exports, a '\' can be used as a line continuation. > > (this is for inclusion in the zfs set sharenfs= line) > > In terms of ip address if there's more than one range in same net like > 192.168.1.0/29 192.168.1.16/28 is the resulting line > -maproot=root -alldirs -network 192.168.1.0/29 -network 192.168.1.16/28 > or just the one -network? Just one subnet (or -network, if you prefer). > > side question of general interest - how is it done when there are like > thousands of computers - I guess hosts would do it because it'd only need to be > on the server. I think. ? I guess unbound the same for this specific context (?) > > I couldn't see exactly how from the handbook "man exports" and "man zfsprops" rick > -- >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAM5tNy4Q-_KM6TwAjzP=8i0w8dPDPYqc0QmqWxaa3E=PM9U8yA>
