473,396 Members | 1,786 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

NetBIOS Domain Name

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
4 3625
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Snuffy2 | last post by:
I'm looking to try to get a users MAC and/or NetBIOS name when they visit my website. It somehow can be done, I'm not sure with PHP, but it can be done. Does anyone have any idea how? As an...
4
by: Dr. StrangeDub | last post by:
Leaving network identification/DNS out of the picture, how does one change the name of a computer in a local Workgroup (in C#)? I implemented the SetComputerName() API call and that only seems to...
4
by: rdonnici | last post by:
Hi all, Is there any way to, given an IP address(or NETBIOS machinename - I can convert from one to other) from my network, and assuming that everyone needs to log on a NT/2K/Windows Server 2003...
2
by: Iwer M?rck | last post by:
Hi I'm trying to get started with ASP.NET and have installed the .net framework and ran into a strange problem. The name of my PC is imxp01, and when I navigate to http://imxp01/, it works...
1
by: LS | last post by:
I have the ldap name from my domain : dc=subdomain,dc=cortonso,dc=local Is it possible using adsi or some other code to determine the netbiosname of the domain. Is this an AD property, I cannot...
2
by: Brad Baker | last post by:
Using ASP.NET (or classic ASP) is there a way to capture the NETBIOS name of the server that a page was run on? Currently we have email based error reports which get sent to us from our web...
8
by: =?iso-8859-1?q?Magnus_T=F6rnvall?= | last post by:
Hi! I'm trying to write a program that can tell if a remote computer is running Windows or not. The thing is, it have to go very fast, so I don't want to "connect" to the computer. My plan is...
3
by: Erjan | last post by:
Hi, I am using TcpClient to connect to a device which does not talk NetBios. The TcpClient tries first to do something with Netbios. This probably failes on a timeout and then TcpClient sets up...
4
by: madankarmukta | last post by:
HI, I want to set my computername to be greate than 15 bytes.How can i do that since when i set the name greter that 15 bytes it's give me message that "The NetBIOS name of the computer is...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.