[fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread Mark Morgan Lloyd
I need to resolve a hostname to an IP address, to pass to a minimal telnet implementation that expects that as its parameter. The reason that I'm not using something "industrial grade" like Synapse is that I'm trying to restrict myself to standard libraries so that I can ship sources to people

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread Marco van de Voort
In our previous episode, Mark Morgan Lloyd said: > a particular development system but if it happens to me it might happen > to others. > > In short, how best should I work around this? Have a look at unit cnetdb.pp in fcl-net package. ___ fpc-pascal m

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread Mark Morgan Lloyd
Marco van de Voort wrote: In our previous episode, Mark Morgan Lloyd said: a particular development system but if it happens to me it might happen to others. In short, how best should I work around this? Have a look at unit cnetdb.pp in fcl-net package. Thanks Marco, now working. I see I'v

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread waldo kitty
On 4/13/2012 04:54, Mark Morgan Lloyd wrote: If I use THostResolver.NameLookup I find that it can convert a fully-qualified name but not one where the domain is omitted, can you explain this a bit more, please? the reason i ask is because some code wants at least one dot separator... example

Re: [fpc-pascal] Resolving a local hostnames to an IP address

2012-04-13 Thread Mark Morgan Lloyd
waldo kitty wrote: On 4/13/2012 04:54, Mark Morgan Lloyd wrote: If I use THostResolver.NameLookup I find that it can convert a fully-qualified name but not one where the domain is omitted, can you explain this a bit more, please? the reason i ask is because some code wants at least one dot s