BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect DNS server? Indy?

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc
View previous topic :: View next topic  
Author Message
Mike
Guest





PostPosted: Thu Sep 01, 2005 3:55 pm    Post subject: Detect DNS server? Indy? Reply with quote



I'm new to internet programming and I've been experimenting with Indy.

I want to use tcpclient to connect to a server, but how do I resolve
the url>ip for the ip property? I know there is a DNSresolver but then
my next question is how do I know what DNS server IP to put in there?

I assume I want my application to detect the users DNS server, or is
it okay to use any?

TIA


Back to top
Dodgy
Guest





PostPosted: Thu Sep 01, 2005 5:09 pm    Post subject: Re: Detect DNS server? Indy? Reply with quote



On Thu, 01 Sep 2005 16:55:17 +0100, Mike <nospamthanks (AT) spam (DOT) com>
waffled on about something:

Quote:
I'm new to internet programming and I've been experimenting with Indy.

I want to use tcpclient to connect to a server, but how do I resolve
the url>ip for the ip property? I know there is a DNSresolver but then
my next question is how do I know what DNS server IP to put in there?

I assume I want my application to detect the users DNS server, or is
it okay to use any?

TIA

You shouldn't even have to worry about anything. Just put the URL into
the Indy component. Indy will spot this and pick up the DNS server
from the windows network settings and resolve this into an IP all on
it's own.

Dodgy.
--
MUSHROOMS ARE THE OPIATE OF THE MOOSES

Back to top
Mike
Guest





PostPosted: Thu Sep 01, 2005 5:30 pm    Post subject: Re: Detect DNS server? Indy? Reply with quote



On Thu, 01 Sep 2005 18:09:19 +0100, Dodgy
<Dodgy (AT) earth (DOT) planet.universe> wrote:

Quote:
On Thu, 01 Sep 2005 16:55:17 +0100, Mike <nospamthanks (AT) spam (DOT) com
waffled on about something:

I'm new to internet programming and I've been experimenting with Indy.

I want to use tcpclient to connect to a server, but how do I resolve
the url>ip for the ip property? I know there is a DNSresolver but then
my next question is how do I know what DNS server IP to put in there?

I assume I want my application to detect the users DNS server, or is
it okay to use any?

TIA

You shouldn't even have to worry about anything. Just put the URL into
the Indy component. Indy will spot this and pick up the DNS server
from the windows network settings and resolve this into an IP all on
it's own.

LOL! I can't believe I've been that silly. I just assumed the
components required an actual IP number.

Thanks!


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> comp.lang.pascal.delphi.misc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.