Re: [twsocket] DNSLookup

2006-10-30 Thread Rob Ashburn
>> Which leads to the obvious question of how to make a whois query
>> programatically.

Michael, Angus, many thanks for the info - much appreciated! I'll take a 
look at it tomorrow and see what I can come up with.

Rob Ashburn. 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Angus Robertson - Magenta Systems Ltd
> Which leads to the obvious question of how to make a whois query 
> programatically.

I did an ICS Whois component a few years ago:

http://www.magsys.co.uk/download/software/whois.zip

For COM domains, it does a double lookup to return Whois from the actual 
registrar.   But you do have to choose the correct initial Whois for 
COM, UK, DE, etc. 

Angus
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Michael Preslar
> I've done a little (so far) poking around in the relevant RFCs, and making 
> the actual query looks relatively straight forward. What I'm not sure about 
> is what server(s) to query? To date I've only every used web based services 
> like samspade or whois services hosted by domain registrars, so I've no idea 
> whether they query a central service or their own proprietry servers or...?
> 
> Any suggestions or pointers would be much appreciated!

I'm no expert on the protocol, but the way I figure, if you mimic'd the 
behaviors of existing programs, your program should work just as well.

Using 'whois' from a fedora core prompt:

#:> whois michaelpreslar.com
[Querying whois.internic.net]
[Redirected to whois.godaddy.com]
[Querying whois.godaddy.com]
[whois.godaddy.com]

So, first hit whois.internic.net .. It should either say the domain is 
not registered, or redirect you to the controling registrar..

--
Michael
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Rob Ashburn
> WHOIS shows the reserved domains owners perfectly. But some ICANN approved
> comanies such as Dotster and Godaddy offer "privacy" option which prevents
> the display of owner data such as name, address, and email.

That sounds ideal for my purposes. I don't need to know who the domain is 
registered to, just whether or not it's registered. Which leads to the 
obvious question of how to make a whois query programatically.

I've done a little (so far) poking around in the relevant RFCs, and making 
the actual query looks relatively straight forward. What I'm not sure about 
is what server(s) to query? To date I've only every used web based services 
like samspade or whois services hosted by domain registrars, so I've no idea 
whether they query a central service or their own proprietry servers or...?

Any suggestions or pointers would be much appreciated!

Rob Ashburn. 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Fastream Technologies
WHOIS shows the reserved domains owners perfectly. But some ICANN approved 
comanies such as Dotster and Godaddy offer "privacy" option which prevents 
the display of owner data such as name, address, and email.

Best Regards,

SZ

- Original Message - 
From: "Francois PIETTE" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Monday, October 30, 2006 7:04 PM
Subject: Re: [twsocket] DNSLookup


: There can be a lot of "reserved" domain names. Companies reserve the 
domain
: name (that is pay for it but do not really use it) either to avoid someone
: else using it or like an investment (that is for selling it later).
:
: I'm not sure whois return anything for such "reserved" domain name.
:
: --
: [EMAIL PROTECTED]
: http://www.overbyte.be
:
:
: - Original Message - 
: From: "Rob Ashburn" <[EMAIL PROTECTED]>
: To: "ICS support mailing" 
: Sent: Monday, October 30, 2006 5:43 PM
: Subject: Re: [twsocket] DNSLookup
:
:
: > >A domain name can't be used if there is no DNS server delivering IP
: >> addresses for it.
: >> Of course it can exists on paper but it is of no use to access any
: >> service.
: >
: > Hi Fancois,
: >
: > I suspected as much. However, in this case, the existence of the domain 
on
: > paper is also important - the purpose of the program is to generate all
: > possible domain names based around a set of keywords, and then check to
: > see
: > if the domain has already been registered. The idea is to save me trying
: > out
: > dozens of permutations before I find a domain name that I like and that 
is
: > available. I guess the only way to be sure is to eliminate all the
: > unavailable domains and then do a whois on the remainder?
: >
: > Rob.
: >
: > -- 
: > To unsubscribe or change your settings for TWSocket mailing list
: > please goto http://www.elists.org/mailman/listinfo/twsocket
: > Visit our website at http://www.overbyte.be
:
: -- 
: To unsubscribe or change your settings for TWSocket mailing list
: please goto http://www.elists.org/mailman/listinfo/twsocket
: Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Francois PIETTE
There can be a lot of "reserved" domain names. Companies reserve the domain 
name (that is pay for it but do not really use it) either to avoid someone 
else using it or like an investment (that is for selling it later).

I'm not sure whois return anything for such "reserved" domain name.

--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: "Rob Ashburn" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Monday, October 30, 2006 5:43 PM
Subject: Re: [twsocket] DNSLookup


> >A domain name can't be used if there is no DNS server delivering IP
>> addresses for it.
>> Of course it can exists on paper but it is of no use to access any
>> service.
>
> Hi Fancois,
>
> I suspected as much. However, in this case, the existence of the domain on
> paper is also important - the purpose of the program is to generate all
> possible domain names based around a set of keywords, and then check to 
> see
> if the domain has already been registered. The idea is to save me trying 
> out
> dozens of permutations before I find a domain name that I like and that is
> available. I guess the only way to be sure is to eliminate all the
> unavailable domains and then do a whois on the remainder?
>
> Rob.
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Rob Ashburn
>A domain name can't be used if there is no DNS server delivering IP
> addresses for it.
> Of course it can exists on paper but it is of no use to access any 
> service.

Hi Fancois,

I suspected as much. However, in this case, the existence of the domain on 
paper is also important - the purpose of the program is to generate all 
possible domain names based around a set of keywords, and then check to see 
if the domain has already been registered. The idea is to save me trying out 
dozens of permutations before I find a domain name that I like and that is 
available. I guess the only way to be sure is to eliminate all the 
unavailable domains and then do a whois on the remainder?

Rob. 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Francois Piette
A domain name can't be used if there is no DNS server delivering IP
addresses for it.
Of course it can exists on paper but it is of no use to access any service.

Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
Author of ICS (Internet Component Suite, freeware)
Author of MidWare (Multi-tier framework, freeware)
http://www.overbyte.be


- Original Message - 
From: "Rob Ashburn" <[EMAIL PROTECTED]>
To: "ICS support mailing" 
Sent: Monday, October 30, 2006 3:21 PM
Subject: Re: [twsocket] DNSLookup


> >A domain name exists on the internet only when a DNS server is able to
give
> > an IP address.
>
> Hi Francois,
>
> Thanks for that, but what about detagged domains? The domain exists, but
> doesn't have a registrar / DNS server associated with it. Is there any way
> to tell the difference between a domain not existing and simply being
> detagged, other than doing a WHOIS? And is that the only circumstance in
> which a domain wouldn't have DNS servers listed?
>
> TIA,
>
> Rob Ashburn.
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-30 Thread Rob Ashburn
>A domain name exists on the internet only when a DNS server is able to give
> an IP address.

Hi Francois,

Thanks for that, but what about detagged domains? The domain exists, but 
doesn't have a registrar / DNS server associated with it. Is there any way 
to tell the difference between a domain not existing and simply being 
detagged, other than doing a WHOIS? And is that the only circumstance in 
which a domain wouldn't have DNS servers listed?

TIA,

Rob Ashburn. 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] DNSLookup

2006-10-28 Thread Francois PIETTE
A domain name exists on the internet only when a DNS server is able to give 
an IP address.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: "Rob Ashburn" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, October 28, 2006 12:02 AM
Subject: [twsocket] DNSLookup


> Hi all,
>
> I'm in the process of writing a small program that needs to determine for
> sure whether or not a given domain name exists.
>
> Currently, I'm passing the domain name to WSocket.DNSLookUp, and then
> checking the ErrCode in DNSLookupDone as follows:
>
> case ErrCode of
> 0 : begin
>{assume domain exists}
>  end;
> 11001 : begin
>{assume domain does not exist}
>  end;
> 11004 : begin
>  {assume domain does not exist}
>  end;
> else
> begin
>{some error occurred}
> end;
> end;{case}
>
> This seems to work in most cases, although I appreciate that it may fail 
> in
> the case of new domains where the info has not yet fully propagated.
> However, while using the program the other day I encountered a particular
> domain (datingsite.org) for which the program falsely reports that the
> domain does not exist. A whois query on the domain name shows that no name
> servers are listed for the domain, which, I assume, is the reason for the
> false result.
>
> Can anyone suggest a more effective way of determining whether or not a
> domain actually exists, regardless of whether or not domain name servers 
> are
> listed for a domain?
>
> TIA,
>
> Rob Ashburn.
>
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] DNSLookup

2006-10-27 Thread Rob Ashburn
Hi all,

I'm in the process of writing a small program that needs to determine for 
sure whether or not a given domain name exists.

Currently, I'm passing the domain name to WSocket.DNSLookUp, and then 
checking the ErrCode in DNSLookupDone as follows:

case ErrCode of
 0 : begin
{assume domain exists}
  end;
 11001 : begin
{assume domain does not exist}
  end;
 11004 : begin
  {assume domain does not exist}
  end;
 else
 begin
{some error occurred}
 end;
 end;{case}

This seems to work in most cases, although I appreciate that it may fail in 
the case of new domains where the info has not yet fully propagated. 
However, while using the program the other day I encountered a particular 
domain (datingsite.org) for which the program falsely reports that the 
domain does not exist. A whois query on the domain name shows that no name 
servers are listed for the domain, which, I assume, is the reason for the 
false result.

Can anyone suggest a more effective way of determining whether or not a 
domain actually exists, regardless of whether or not domain name servers are 
listed for a domain?

TIA,

Rob Ashburn. 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] Dnslookup... WSocket...

2006-01-03 Thread Wilfried Mestdagh
Hello Ja,

> Is DNSLookup with WSocket async?
   yes.

   please dont reply to a thread if subject is different. Many modern
   email reader can sort on thread so many people will not see your
   question if they are not interested in the thread (in this case
   'problem with overbyte website')

---
Rgds, Wilfried [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html
http://www.mestdagh.biz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] Dnslookup... WSocket...

2006-01-03 Thread Ja
Is DNSLookup with WSocket async?
Thanx!

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket DNSLookup

2005-08-17 Thread Wilfried Mestdagh
Hello Francois,

> The code is OK for both those using OnError and those using exception 
> handling, IMO.

Yes, but behaviour is different. In this case (ok it is stupid from
programmer's view to not check it, but..) DNSLookupDone is only called
with an error if event handler is assigned to OnError, which normally is
not the case for someone who can deal with exceptions.

I have no problem with it (code has always been like this), but I think
an emtpy host name should call DNSLookup with an error in any case, not
only when OnError has a handler.

... or never, but I think behavour should be same with or without
assigned OnError...  Oh whell it is only a minor thing...

My yongest son will married tomorrow for law (saterday for church), so
I'm very busy with other "exceptions" for the party etc.. :) Hell I
still have to search if I have a cravate...

---
Rgds, Wilfried
http://www.mestdagh.biz

Wednesday, August 17, 2005, 13:20, Francois Piette wrote:

>> Assign something on the OnError is not the way to go. Should the
>> RaiseException line not be commented out ? What do you think ?

> The code is OK for both those using OnError and those using exception 
> handling, IMO.

> --
> [EMAIL PROTECTED]
> http://www.overbyte.be


> - Original Message - 
> From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
> To: 
> Sent: Wednesday, August 17, 2005 11:57 AM
> Subject: [twsocket] TWSocket DNSLookup


>> Hello Francois,
>> 
>> Strange after all these years I did not check the AHostName before
>> calling DNSLookup for the first time :)
>> 
>> Anyway there is something I wonder. First exception is raised, then
>> TriggerDnsLookupDone is called with the right argument, however because
>> the exception it is never called, and it should be with or without
>> error.
>> 
>> Assign something on the OnError is not the way to go. Should the
>> RaiseException line not be commented out ? What do you think ?
>> 
>> procedure TCustomWSocket.DnsLookup(const AHostName : String);
>> var
>> IPAddr   : TInAddr;
>> HostName : String;
>> begin
>> if AHostName = '' then begin
>> RaiseException('DNS lookup: invalid host name.'); // comment ?
>> TriggerDnsLookupDone(WSAEINVAL);
>> Exit;
>> end;
>> 
>> --
>> Rgds, Wilfried
>> http://www.mestdagh.biz
>> 
>> -- 
>> To unsubscribe or change your settings for TWSocket mailing list
>> please goto http://www.elists.org/mailman/listinfo/twsocket
>> Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket DNSLookup

2005-08-17 Thread Francois Piette
> Assign something on the OnError is not the way to go. Should the
> RaiseException line not be commented out ? What do you think ?

The code is OK for both those using OnError and those using exception handling, 
IMO.

--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: "Wilfried Mestdagh" <[EMAIL PROTECTED]>
To: 
Sent: Wednesday, August 17, 2005 11:57 AM
Subject: [twsocket] TWSocket DNSLookup


> Hello Francois,
> 
> Strange after all these years I did not check the AHostName before
> calling DNSLookup for the first time :)
> 
> Anyway there is something I wonder. First exception is raised, then
> TriggerDnsLookupDone is called with the right argument, however because
> the exception it is never called, and it should be with or without
> error.
> 
> Assign something on the OnError is not the way to go. Should the
> RaiseException line not be commented out ? What do you think ?
> 
> procedure TCustomWSocket.DnsLookup(const AHostName : String);
> var
> IPAddr   : TInAddr;
> HostName : String;
> begin
> if AHostName = '' then begin
> RaiseException('DNS lookup: invalid host name.'); // comment ?
> TriggerDnsLookupDone(WSAEINVAL);
> Exit;
> end;
> 
> --
> Rgds, Wilfried
> http://www.mestdagh.biz
> 
> -- 
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://www.elists.org/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] TWSocket DNSLookup

2005-08-17 Thread Wilfried Mestdagh
Hello Francois,

Strange after all these years I did not check the AHostName before
calling DNSLookup for the first time :)

Anyway there is something I wonder. First exception is raised, then
TriggerDnsLookupDone is called with the right argument, however because
the exception it is never called, and it should be with or without
error.

Assign something on the OnError is not the way to go. Should the
RaiseException line not be commented out ? What do you think ?

procedure TCustomWSocket.DnsLookup(const AHostName : String);
var
IPAddr   : TInAddr;
HostName : String;
begin
if AHostName = '' then begin
RaiseException('DNS lookup: invalid host name.'); // comment ?
TriggerDnsLookupDone(WSAEINVAL);
Exit;
end;

--
Rgds, Wilfried
http://www.mestdagh.biz

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be