[Samba] smbclient 4.0.7 resolves host name to IP address for SMB2 but not NT1

Rowland Penny rowlandpenny at googlemail.com
Tue Apr 21 06:44:28 MDT 2015


On 21/04/15 13:37, Tompkins, Michael wrote:
> The problem is that I don't want it to use the IP address, but to use the hostname.
>
> Regards,
> - Mike
>   
>                             

You posted:

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 ?

Using '-I' is a command line option that turns off using the hostname.

If this is not what you require, then please be a bit more specific!

Rowland

>
> -----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



More information about the samba mailing list