• 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: Sherm Pendley <email@hidden>
  • Date: Wed, 12 Jul 2006 09:45:48 -0400

On Jul 12, 2006, at 8:51 AM, Aalok wrote:

I have one smb drive mounted. I have done it thru finder using
"smb://media/BM-SHARE$"
Now I want to have the IP address of "media". How do I get it
programatically? I have tried NameAndAddress example given in
Networking help but it doesn't give me the ip address of mounted smb.
Though it works for other internet URLs.

I have tried NSHost also but it also doesn't work.

Any clue how to get this done?

Sounds like your LAN might be using WINS or NetBIOS for name resolution instead of DNS. Try using the nmblookup command-line tool - if that works for you, you could run it with NSTask.


Details: <http://developer.apple.com/documentation/Darwin/Reference/ ManPages/man1/nmblookup.1.html>

Or locally at "man 1 nmblookup".

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
  • Follow-Ups:
    • Re: DNS lookup for SMB
      • From: Aalok <email@hidden>
References: 
 >DNS lookup for SMB (From: Aalok <email@hidden>)

  • Prev by Date: Re: Getting added object with KVO
  • Next by Date: Re: Getting added object with KVO
  • Previous by thread: DNS lookup for SMB
  • Next by thread: Re: DNS lookup for SMB
  • Index(es):
    • Date
    • Thread