473,804 Members | 3,251 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

vb.net whois and RPSL whois format

i use this code
Public Function WhoISLookup(ByV al sAddress As String, ByVal sServer As
String) As String
Dim sResponse As String = "nothing"
sAddress += "\r\n"
sAddress = "194.224.52 .36" & ControlChars.Cr Lf
sAddress += ControlChars.Cr Lf
Dim oTCP As TcpClient = New TcpClient
Try
oTCP.Connect(sS erver, 43)
Catch ex As SocketException
Return ex.Message
End Try
Dim aAddress As [Byte]() = Encoding.ASCII. GetBytes(sAddre ss)
Try
Dim s As Stream = oTCP.GetStream( )
s.Write(aAddres s, 0, sAddress.Length )
Dim sReader As StreamReader = New StreamReader(oT CP.GetStream,
Encoding.ASCII)
Dim SB As New StringBuilder
While -1 <> sReader.Peek
SB.Append(sRead er.ReadLine & vbCrLf)
End While
sResponse = SB.ToString
oTCP.Close()
Catch ex As Exception
Return ex.Message
End Try
Return sResponse
End Function

and i need to acces to each line when code arrives to while and
SB.Append(sRead er.ReadLine & vbCrLf), but it doesn't read line to line , i
have seen in sReader a field named char buffer where the are all chars.
how could i read correctly line to line? or to mount the line character to
character.

Sorry but my english is ver bad.

Jul 21 '05 #1
0 1277

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3611
by: elyob | last post by:
I've got a number of domains, and want to check the expiry date automatically. There's plenty of whois scripts, but the output from the different whois servers are not always the same. Does anyone have any suggestions or working examples for parsing the WHOIS output? Thanks Nick
6
2858
by: Fred | last post by:
Hi ! Can some one give me a little step by step to put me onthe right way.. I'd like to use PHP with Postresql. I need to make many whois query on the domain names that we own, to store the information such as expiration date and so in our DB. I was thinking of : using php to open the url of the query, retrieve the new web page with ftp mode, parsing the page with some "expression régulieres" and then uploading the found data in my DB...
2
2042
by: James | last post by:
As a security feature of my site, I want the IP details to be recorded in certain situations. I suppose I have to use the Rwhois server to do this, though I don't know how to do that. Of course I would use any server, but the only server I know that provides the service which works worldwide, is the Rwhois server. I don't know how I would connect to it though. Network Solutions has a website and example code, but it is written in Perl...
5
2858
by: Gerrit Muller | last post by:
I am migrating a website from a UNIX based machine to an Windows machine. In the logfiles I got from the old machine I mostly got domain names and sometimes only IP addresses. The Windows machine seems to produce only IP addresses. Somehow I cannot find a windows solution to translate an IP address back into a domain-name. Searching with Google shows that more people have been wrestling with this problem. I did find working whois...
0
1147
by: wcsnyder | last post by:
For those who didn't catch this announcement on the moderated group, I am pleased to announce the initial release of RPSL (Rapid Prototyping Shared Library). RPSL is a set of bash scripts and utility files that coordinate the GNU autotools (automake, autoconf, libtool) and pkg-config for C/C++ build automation. The scripts and procedures define a system for building and linking libraries that supports individual or small group development...
0
1318
by: Yair Nissan | last post by:
Hi, I want to make a .Net class that would make queries to a WhoIs server. I had no problem doing so on my comp back home, however my comp at work is using a proxy server, and I can't make any query to the WhoIs server. Is there any way (3rd party components are good too) to perform the WhoIs query fron behind the proxy server ? Thanks,
3
1535
by: Vjay77 | last post by:
As a result from who is I am getting this: > > NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of high-volume, automated, electronic processes. The Data in Network Solutions' WHOIS database is provided by Network Solutions for information purposes only, and to assist persons in obtaining information about or related to a domain name registration record. Network Solutions does not...
10
2011
by: Roel | last post by:
Hi all, I want to query WHOIS info from my ASP.NET app. I'd like to query a specific domain (e.g. google.com) and for availability (e.g. google.eu (available/taken), google.nl (available/taken)). Anyone knows a (commercial) component that gets this job done? Kind Regards,
0
2731
by: eliss | last post by:
Hi everyone, I'm trying to write a python script to whois a few domains twice a day so I get notified when they become available. I did it 2 ways, but neither way is very reliable, so I'm asking here. 1) I tried just calling "whois %s" using popen, but I found that once every few weeks, I get errors like: connect: No route to host OR fgets: Connection reset by peer
3
4253
by: Phillip B Oldham | last post by:
Hi. I'm stretching my boundaries in programming with a little python shell-script which is going to loop through a list of domain names, grab the whois record, parse it, and put the results into a csv. I've got the results coming back fine, but since I have *no* experience with python I'm wondering what would be the preferred "pythonic" way of parsing the whois string into a csv record. Tips/thoughts/examples more than welcome!
0
9708
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
10588
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
10340
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
10324
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
10085
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
9161
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...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3827
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.