[Samba] Name resolution for home network?
Rowland Penny
rpenny at samba.org
Mon Apr 7 13:50:56 UTC 2025
On Mon, 7 Apr 2025 15:26:47 +0200
Gilles via samba <samba at lists.samba.org> wrote:
> On 07/04/2025 15:15, Rowland Penny via samba wrote:
> > Well, seeing as how you are going for lightness, how about dnsmasq
> > ? If you do not really want to run a dns server, then you could
> > fall back on Avahi.
>
> Which do you recommend for a LAN to complement wsdd for name
> resolution?
In your case, I would use Avahi, just do not set a dns domain anywhere,
this will cause you to fall back on the '.local' TLD.
>
> > Try reading 'man smb.conf', you can remove most of those settings
> > from your smb.conf file.
>
> I could, although I tend to lean on the "if it ain't broke, don't fix
> it" philosophy, and that file has so many options, some outdated or
> synonyms, that it's not easy to understand for non-experts.
>
> https://www.samba.org/~ab/output/htmldocs/manpages-3/smb.conf.5.html
>
>
In which case, try this smb.conf , based on yours, but with the
defaults removed.
[global]
workgroup = WORKGROUP
server role = standalone
map to guest = Bad User
guest account = www-data
interfaces = 192.168.0.15/255.255.255.0 127.0.0.1/255.255.255.255
bind interfaces only = yes
log level = 2
disable netbios = yes
smb ports = 445
printcap name = /dev/null
load printers = no
printing = bsd
[nginx]
path = /usr/share/nginx
guest ok = yes
read only = no
create mode = 0644
Also if you really are using the workgroup name 'WORKGROUP', then you
can remove the workgroup line as well. I work on the less is better
method, only have lines that are different from the defaults.
Rowland
More information about the samba
mailing list