473,783 Members | 2,574 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3649
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.m icrosoft.com> wrote in message
news:0V******** ******@cpmsftng xa10.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
"GetHostByAddre ss" which can return the DNS info of a computer via its IP
Address.

#Dns.GetHostByA ddress Method (String)
http://msdn.microsoft.com/library/en...NetDnsClassGet
HostByAddressTo pic2.asp?frame= true

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

Response.Write( "<br>" +
System.Net.Dns. GetHostByAddres s(Request.UserH ostAddress).Hos tName);

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
16272
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 example check out: http://stealthtests.lockdowncorp.com/ On that site, there are tests that will display NetBIOS & MAC addresses.
4
14307
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 change the NetBIOS Computer Name. I've verified that the underlying registry key value that gets changed is: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName Is there a recommended API (via Active...
4
15897
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 Server, to discover the user name for the user logged on that machine? The final result desired is something like a table, with pairs at the moment the program is run. Any ideas? I have hunted high and low on the newsgroups and have not...
2
1707
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 fine. But when I navigate to http://imxp01/quickstart, I get then 403.6 error, stating that the IP-address was rejected by the server.
1
1887
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 find it. Regards
2
3148
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 sites. We have hundreds of websites on half a dozen servers. Sometimes the same website is load balanced across multiple servers so figuring out the "origin" of an error can be a challenging.
8
7808
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 to send a netbios request and if I get a response I know it's probably a Windows machine. The problem is that I can't use the Netbios function in NETAPI32.DLL,
3
2422
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 the TCP connection. Due to this it takes about 5 secons to set up a TCP connection on a LAN. Is it possible to disable the NetBios request ? I have rewritten the program with sockets but also sockets try to
4
7062
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 limited to 15 bytes" . Can anybody tell me how can i edit this limit of 15 bytes of NetBIOS name ..? Thanks!
0
9643
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10315
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10147
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10083
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9946
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8968
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7494
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5379
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
2877
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.