[Samba] %M resolve to IP (only)

Charles Bueche charles at bueche.ch
Thu Mar 15 09:39:34 GMT 2007


Hi,

Gerry's response explain the why. Here is a possible fix, but beware  
the added load...

use

	hostname lookups = yes

in section [global]

Charles

On 12 mars 07, at 09:44, Robert Smol wrote:

> Hi,
>
> I would like to have [backup] service hosted on samba machine,  
> resolving
> each client to different directory (/srv/backup/prod001,
> or /srv/bacjup/prod001.domain.com). Is this possible? By reading  
> man to
> smb.conf I see there is %M variable.
>
> I have defined following service
>
> ## backup share
> [backup]
>    path = /srv/backups/machines/%M
>    read only = No
>    public = no
>    writable = yes
>    printable = no
>
>
> Still samba resolve this to /srv/backups/machines/192.168.10.11
>
> Reverse DNS is working fine on machine:
>
> node001 ~ # host 192.168.10.11
> 11.10.168.192.in-addr.arpa domain name pointer dmz001.domain.com.
>
> Am I doing something wrong?
>
> Best regards
>
> Robert Smol
>
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba



More information about the samba mailing list