Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Dec 2025 17:14:03 +0000
From:      void <void@f-m.fm>
To:        freebsd-fs@freebsd.org
Subject:   nfs exports by local dns
Message-ID:  <aS8eW048vdJOxdfR@int21h>

next in thread | raw e-mail | index | archive | help

Hi,

Let's say there are two offices in one building and there
are three nfs shares on a central server /share/office1 /share/office2
and /share/office3

office1 has 15 machines all *.office1.local most 192.168.1.2-12 but 3 .250-252
office2 has 25 machines all *.office2.local 192.168.1.50-74

provided that I'm either doing this in /etc/hosts or a split
horizon unbound serving a local zone for both domains, is this feasible
in the (zfs) sharenfs statement, for in this example share/office1

# /share/office1 -maproot=root -alldirs *.office1.local
(guess I don't need a -network here?)

If it can't be wildcarded then can each host be added like

# /share/office1 -maproot=root -alldirs client1 client2 client3 \
client4 client5 client6 client7 client8 client9 client10 client11 client12 \
client13 client14 client15 etc etc

which is messy but not as long as using ip/subnet

(on a side note is local rDNS required)

-- 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aS8eW048vdJOxdfR>