[fpc-pascal] Portable (or at least working) version of GetDomainName()?
waldo kitty
wkitty42 at windstream.net
Tue Apr 9 19:26:11 CEST 2013
On 4/9/2013 04:14, Mark Morgan Lloyd wrote:
> It might be notable that Debian doesn't volunteer a domain name unless it's able
> to contact DNS. I'll get onto nslookup, or just use temporary text (it's only
> salt for a password hash, and is stored).
understood... your nslookup output looked fine to me... it is kinda of different
in what mine returns but that's likely the DNS package and the configuration
differences... (see the link below for an example of my results)
i would attempt to go portable by performing a DNS lookup on the address and or
the given host name... i don't think i would try to use external programs for
this but would compare my results with theirs for the same lookups...
FWIW: i also just stumbled over our very similar conversation of a year ago...
13 April 2012 - Resolving a local hostnames to an IP address
http://free-pascal-general.1045716.n5.nabble.com/Resolving-a-local-hostnames-to-an-IP-address-td5637709.html
(sorry for the wrap)
but this time, you are trying to go the other way i guess... that or just trying
to get all of the FQDN for the host your app is running on...
More information about the fpc-pascal
mailing list