• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: DNS lookup for SMB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DNS lookup for SMB


  • Subject: Re: DNS lookup for SMB
  • From: Andrew Satori <email@hidden>
  • Date: Wed, 12 Jul 2006 10:35:35 -0400

As far as I know, no one has wrapped the smb api in a Coca wrapper, however, if you download the Samba source, the lookup is a few C function calls and I think, fairly straightforward to recreate/port to a Cocoa API, however, I might be wrong, after all, you'll notice that MS's own Remote Dekstop Client doesn't support name resolution via SMB names, it relies entirely on DNS or IP, though it does do SMB names on Windows.

Andy

On Jul 12, 2006, at 10:09 AM, Sherm Pendley wrote:

On Jul 12, 2006, at 10:01 AM, Aalok wrote:

Thanks buddy, it worked!!
two questions.

1) when i do nmblookup i get output like
querying beomedia on 192.168.2.255
192.168.2.105 beomedia<00>

is there anyway to get only 192.168.2.105??

I'd write a Perl or shell script to run the command and filter the output.


2) Is there any cocoa api which does this? I mean what if I do not
want to use NSTask?

I don't know of any, although that doesn't necessarily mean there is none.


sherm--

Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >DNS lookup for SMB (From: Aalok <email@hidden>)
 >Re: DNS lookup for SMB (From: Sherm Pendley <email@hidden>)
 >Re: DNS lookup for SMB (From: Aalok <email@hidden>)
 >Re: DNS lookup for SMB (From: Sherm Pendley <email@hidden>)

  • Prev by Date: Re: Helper tool, root and MoreAuthSample?
  • Next by Date: pathForResource:ofType: failes under panther.
  • Previous by thread: Re: DNS lookup for SMB
  • Next by thread: pathForResource:ofType: failes under panther.
  • Index(es):
    • Date
    • Thread