By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,118 Members | 1,133 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,118 IT Pros & Developers. It's quick & easy.

NetBIOS Domain Name

P: n/a
Is it possible to read the NetBIOS domain name and if so how ?

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Hi Michael,

Based on my research, there is one kb article discussing how to get NetBios
and DNS Name via C#

#HOW TO: Obtain the NetBIOS and DNS Computer Names by Using Visual C#
http://support.microsoft.com/?id=303902

You may have a look. Since the dotnet buildin support for such functions is
limited. If you're wondering further power function, I think you may
consider using WMI or ADSI, thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #2

P: n/a
Hello,

This is not really what I'm looking for.

I'm looking to get the NetBIOS domain name of the CLIENT machine.

--
Michael Tissington
http://www.oaklodge.com
http://www.tabtag.com

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:0V**************@cpmsftngxa10.phx.gbl...
Hi Michael,

Based on my research, there is one kb article discussing how to get NetBios and DNS Name via C#

#HOW TO: Obtain the NetBIOS and DNS Computer Names by Using Visual C#
http://support.microsoft.com/?id=303902

You may have a look. Since the dotnet buildin support for such functions is limited. If you're wondering further power function, I think you may
consider using WMI or ADSI, thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3

P: n/a
Hi Michael,

Yes, the kb article I provided in my last reply is focus on get the DNS
name of the Server Machine. However, I think the System.Net.Dns class is
still useful to us. I've find it has a static method
"GetHostByAddress" which can return the DNS info of a computer via its IP
Address.

#Dns.GetHostByAddress Method (String)
http://msdn.microsoft.com/library/en...NetDnsClassGet
HostByAddressTopic2.asp?frame=true

And in ASP.NET we can get the client machine's ip address via
Request.UserHostAddress. So I think we can combine the two ones together as
below:

Response.Write("<br>" +
System.Net.Dns.GetHostByAddress(Request.UserHostAd dress).HostName);

It'll return the full DNS hostname of the machien, include the full domain
name and the machine's alias. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #4

P: n/a
Hi Michael,

Have you had a chance to check out the suggestions in my last reply or have
you got any further ideas on this issue? If you have anything unclear or if
there're anything else we can help, please feel free to post here. Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.