Есть комп с netbios name "test", который поменял свой ip, локально он уже откликается, например на:
Код: Выделить всё
smbclient -L test
Через какое-то время информация в wins.dat обновится, иногда проходит минут 10, иногда - 20...
Что-нибудь можно придумать? Если нет таких настроек, может через крон периодически отслеживать и прописывать новые ip?
Код: Выделить всё
[global]
workgroup = MEDISON
server string =
netbios name = Server2
security = user
domain logons = no
domain master = auto
os level = 200
local master = yes
preferred master = yes
guest account = nobody
name resolve order = lmhosts bcast wins
auth methods = guest sam
passdb backend = smbpasswd:/etc/samba/private/smbpasswd
username map = /etc/samba/smbusers
wins support = yes
interfaces = 192.168.1.0/24 192.168.10.0/24 127.0.0.1/8
bind interfaces only = yes
hosts deny = ALL
hosts allow = 192.168.1. 192.168.10. 127.0.0.1
log file = /var/log/samba/log.%m
max log size = 50
log level = 5
# 200 GB
max disk size = 200000
name cache timeout = 0
dns proxy = no
load printers = no
disable spoolss = yes
nt acl support = no
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192 TCP_NODELAY
include = /etc/samba/shares