Note that there are some explanatory texts on larger screens.

plurals
  1. POHostname scanning in C#
    text
    copied!<p>Iv'e recently started a new job as an ICT Technician and im creating an Console application which will consists of stuff that will help our daily tools!</p> <p>My first tool is a Network Scanner, Our system currently runs on Vanilla and Asset tags but the only way we can find the hostname / ip address is by going into the Windows Console tools and nslookup which to me can be improved</p> <p>I want to create an application in which I enter a 6 digit number and the application will search the whole DNS for a possible match!</p> <p>Our hostsnames are like so</p> <p><code>ICTLN-D006609-edw.srv.internal</code> the d <strong>006609</strong> would be the asset tag for that computer.</p> <p>I wish to enter that into the Console Application and it search through every hostname and the ones that contain the entered asset tag within the string will be returned along with an ip and full computer name ready for VNC / Remote Desktop.</p> <p>Firstly how would I go about building this, shall i start the project of as a console app or a WPF. can you provide an example of how I can scan the hostnames via C#, or if there's an <strong>opensource</strong> C# version can you provide a link.</p> <p>Any information would be a great help as it will take out alot of issues in the workpalce as we have to ask the customer to go into there My Computer adn properties etc and then read the Computer name back to use which I find pointless.</p> <p>Regards.</p> <p>Updates: *1 C# Version I made: <a href="http://pastebin.com/wBWxyyuh" rel="nofollow noreferrer">http://pastebin.com/wBWxyyuh</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload