ted_chou12
2011-Jan-31 20:26 UTC
[Samba] Samba only access by ip but not hostname/server string
Hi, I am using samba version 3 (probably), and the problem is that the linux based nas can only be accessed via its ip 192.168.x.x but not its hostname /server string appointed by the smb.conf file: [code] [global] netbios name = NAS server string = NAS smb passwd file = /etc/smbpasswd security = SHARE workgroup = WORKGROUP encrypt passwords = true short preserve case = yes preserve case = yes guest account = ftp guest ok = yes force user = root force group = root socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 interfaces = eth0 lo [/code] I tried to search this problem online, but there is very little information and answered questions regarding. Thanks! Ted C. -- View this message in context: http://samba.2283325.n4.nabble.com/Samba-only-access-by-ip-but-not-hostname-server-string-tp3249630p3249630.html Sent from the Samba - General mailing list archive at Nabble.com.
This is likely an issue related to you dns configuration, can you post some helpful info about your router/dhcp/dns setup ? Sent from my iPhone On Jan 31, 2011, at 3:26 PM, ted_chou12 <ted_chou12 at hotmail.com> wrote:> > Hi, I am using samba version 3 (probably), and the problem is that the linux > based nas can only be accessed via its ip 192.168.x.x but not its hostname > /server string appointed by the smb.conf file: > [code] > [global] > netbios name = NAS > server string = NAS > smb passwd file = /etc/smbpasswd > security = SHARE > workgroup = WORKGROUP > encrypt passwords = true > short preserve case = yes > preserve case = yes > guest account = ftp > guest ok = yes > force user = root > force group = root > socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=16384 SO_SNDBUF=16384 > interfaces = eth0 lo > [/code] > I tried to search this problem online, but there is very little information > and answered questions regarding. > Thanks! > Ted C. > -- > View this message in context: http://samba.2283325.n4.nabble.com/Samba-only-access-by-ip-but-not-hostname-server-string-tp3249630p3249630.html > Sent from the Samba - General mailing list archive at Nabble.com. > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
ted_chou12
2011-Feb-01 21:09 UTC
[Samba] Samba only access by ip but not hostname/server string
Hi, my dns setup is 192.168.2.1, the ip address of the machine specifically is 192.168.2.101. Is that what you are asking for? -- View this message in context: http://samba.2283325.n4.nabble.com/Samba-only-access-by-ip-but-not-hostname-server-string-tp3249630p3252957.html Sent from the Samba - General mailing list archive at Nabble.com.