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

2012-04-17 Thread Mark Morgan Lloyd
Ludo Brands wrote: Bear in mind that files of that type are very much optional on Windows, a sop to those who demanded them in order to implement things like innd so they could claim it was as good as Unix. My experience is that the nameserver addresses are available from the Windows registry

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

2012-04-17 Thread Ludo Brands
> Bear in mind that files of that type are very much optional > on Windows, > a sop to those who demanded them in order to implement things > like innd > so they could claim it was as good as Unix. My experience is that the > nameserver addresses are available from the Windows registry if > c

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

2012-04-17 Thread Mark Morgan Lloyd
waldo kitty wrote: [...] not sure about that on windows... i just did a search in this w2k box... because it is different than my previous w98 box... the hosts file is found in %systemdir%/drivers/etc where on w98 it was found in %systemdir%... there is no resolv* found anywhere in my OS base

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

2012-04-16 Thread waldo kitty
On 4/14/2012 02:20, Mark Morgan Lloyd wrote: waldo kitty wrote: [...] some systems need the trailing dot and others do not... i've seen this problem for years and it seems to be limited to some OS' to a certain extent... That issue IME is specifically at the server, i.e. you've got to be care

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

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
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 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

[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