Tompkins, Michael
2015-Apr-20 14:19 UTC
[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1
Second request ... Thank you in advance ... - Mike Sent: Friday, April 10, 2015 2:16 PM To: samba at lists.samba.org Subject: smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 We are having issues with smbclient 4.0.7 not working to clusters, because it's resolving the host name ( 'default service = dev3k1.my.domain.com' in smb.conf file ) to an IP address using SMB2, but does not do it if is uses NT1( our desired behavior ). Is there a way to turn off resolving the hostname in either the smb.conf file or as a command line option to smbclient using SMB2/3 ? Mike
Rowland Penny
2015-Apr-20 14:37 UTC
[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1
On 20/04/15 15:19, Tompkins, Michael wrote:> Second request ... > > Thank you in advance ... > - Mike > > > > Sent: Friday, April 10, 2015 2:16 PM > To: samba at lists.samba.org > Subject: smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 > > We are having issues with smbclient 4.0.7 not working to clusters, because it's resolving the host name ( 'default service = dev3k1.my.domain.com' in smb.conf file ) to an IP address using SMB2, but does not do it if is uses NT1( our desired behavior ). > > Is there a way to turn off resolving the hostname in either the smb.conf file or as a command line option to smbclient using SMB2/3 ? > > Mike > >Have you tried smbclient -I <ip-address of dev3k1.my.domain.com> service See 'smbclient --help' for more info Rowland
Tompkins, Michael
2015-Apr-21 12:37 UTC
[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1
The problem is that I don't want it to use the IP address, but to use the hostname. Regards, - Mike ? ? -----Original Message----- From: samba-bounces at lists.samba.org [mailto:samba-bounces at lists.samba.org] On Behalf Of Rowland Penny Sent: Monday, April 20, 2015 10:38 AM To: samba at lists.samba.org Subject: Re: [Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 On 20/04/15 15:19, Tompkins, Michael wrote:> Second request ... > > Thank you in advance ... > - Mike > > > > Sent: Friday, April 10, 2015 2:16 PM > To: samba at lists.samba.org > Subject: smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 > > We are having issues with smbclient 4.0.7 not working to clusters, because it's resolving the host name ( 'default service = dev3k1.my.domain.com' in smb.conf file ) to an IP address using SMB2, but does not do it if is uses NT1( our desired behavior ). > > Is there a way to turn off resolving the hostname in either the smb.conf file or as a command line option to smbclient using SMB2/3 ? > > Mike > >Have you tried smbclient -I <ip-address of dev3k1.my.domain.com> service See 'smbclient --help' for more info Rowland -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/options/samba
Jeremy Allison
2015-Apr-21 20:13 UTC
[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1
On Mon, Apr 20, 2015 at 02:19:24PM +0000, Tompkins, Michael wrote:> Second request ... > > Thank you in advance ... > - Mike > > > > Sent: Friday, April 10, 2015 2:16 PM > To: samba at lists.samba.org > Subject: smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 > > We are having issues with smbclient 4.0.7 not working to clusters, because it's resolving the host name ( 'default service = dev3k1.my.domain.com' in smb.conf file ) to an IP address using SMB2, but does not do it if is uses NT1( our desired behavior ). > > Is there a way to turn off resolving the hostname in either the smb.conf file or as a command line option to smbclient using SMB2/3 ?Have you tried messing with the "name resolve order" parameter in smb.conf to limit the resolution choices used ?
Tompkins, Michael
2015-May-08 18:42 UTC
[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1
I've tried different permutations, but if I take away too many options, it fails, otherwise it always resolves the hostname to an IP address. I've tried disable netbios = yes, because we also don't support that anymore. I saw in the code some of the functions were checking it. I know I the functions in question are internal_resolve_name, and I don't see it checking for any config value NOT do resolve the hostname to an IP. In 3.6.5 we just made sure the smb.conf file EITHER had an IP or hostname because of clusters, based on the following article: The Microsoft technet article on 2008 clusters http://blogs.technet.com/b/askcore/archive/2009/01/09/file-share-scoping-in-windows-server-2008-failover-clusters.aspx There must be another config value to disable the resolution to an IP address, or all cluster setups would fail. Any help would be appreciated. - Mike ? ? -----Original Message----- From: Jeremy Allison [mailto:jra at samba.org] Sent: Tuesday, April 21, 2015 4:14 PM To: Tompkins, Michael Cc: samba at lists.samba.org; USA Xerox Samba; Faynor, John; Futrell, Earl Subject: Re: [Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1 On Mon, Apr 20, 2015 at 02:19:24PM +0000, Tompkins, Michael wrote:> Second request ... > > Thank you in advance ... > - Mike > > > > Sent: Friday, April 10, 2015 2:16 PM > To: samba at lists.samba.org > Subject: smbclient 4.0.7 resolves host name to IP address for SMB2 but > not NT1 > > We are having issues with smbclient 4.0.7 not working to clusters, because it's resolving the host name ( 'default service = dev3k1.my.domain.com' in smb.conf file ) to an IP address using SMB2, but does not do it if is uses NT1( our desired behavior ). > > Is there a way to turn off resolving the hostname in either the smb.conf file or as a command line option to smbclient using SMB2/3 ?Have you tried messing with the "name resolve order" parameter in smb.conf to limit the resolution choices used ?