473,322 Members | 1,911 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,322 software developers and data experts.

vb.net whois and RPSL whois format

i use this code
Public Function WhoISLookup(ByVal sAddress As String, ByVal sServer As
String) As String
Dim sResponse As String = "nothing"
sAddress += "\r\n"
sAddress = "194.224.52.36" & ControlChars.CrLf
sAddress += ControlChars.CrLf
Dim oTCP As TcpClient = New TcpClient
Try
oTCP.Connect(sServer, 43)
Catch ex As SocketException
Return ex.Message
End Try
Dim aAddress As [Byte]() = Encoding.ASCII.GetBytes(sAddress)
Try
Dim s As Stream = oTCP.GetStream()
s.Write(aAddress, 0, sAddress.Length)
Dim sReader As StreamReader = New StreamReader(oTCP.GetStream,
Encoding.ASCII)
Dim SB As New StringBuilder
While -1 <> sReader.Peek
SB.Append(sReader.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(sReader.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 1256

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

Similar topics

5
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...
6
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...
2
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...
5
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...
0
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...
0
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...
3
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...
10
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...
0
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...
3
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.