Re: DNS lookup for SMB
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