[Samba] Please review my smb.conf

DavidA dandbnews2 at talktalk.net
Sun Jan 3 09:05:55 UTC 2016

Hi Rowland

Thanks for your reply.  I see:

$ cat /etc/hosts       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters       RPHS

So I guess I should edit the hosts file and specify RPHS's fixed IP address. 
I don't think domain name is relevant for a home network so I won't specify 
one.  Will let you know how it goes.


-----Original Message----- 
From: Rowland penny
Sent: Saturday, January 02, 2016 9:25 PM
To: samba at lists.samba.org
Subject: Re: [Samba] Please review my smb.conf

On 02/01/16 20:59, DavidA wrote:
> Hi Rowland
>> (just a thought, you have given the Samba server a fixed ipaddress, 
>> hostname and domain name, haven't you ?).
> The Pi has a fixed IP address and hostname.  I see:
> $ cat /etc/hostname

OK, try running these commands:

hostname -s
hostname -d
hostname -f
hostname -i

If your rpi has the fully quallified domain name of 'rphs.example.com'
and the ipaddress, you should get:


If you do not get a domain name, check /etc/hosts, it should contain a
line similar to this:    rphs.example.com    rphs

> $ cat /etc/resolv.conf
> # Generated by resolvconf
> nameserver
> nameserver
> So the DNS seems arbitrary.  I don't understand what the DNS should be for 
> a home network.  Sorry for my ignorance.

The dns for a home network is usually set by your router, you need to
check what ip range it uses and if it is also your dhcp server, you need
to ensure that it supplies a domain name as well as the ipaddress. You
also need to check that all the windows machines use the same workgroup
name, from your smb.conf 'WORKGROUP' .

The dns nameservers '208.67.22x.123' are the openDNS ones, I would
suggest you change these to the google ones '' & ''. For
how to do this and to possibly set a domain name, see your routers

> BR
> David

To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba 

More information about the samba mailing list