nsisadmin
10th November 2010 14:46 UTC
How to get FQDN using NSIS Script
Currently we are using "Internet::GetLocalHostIP ${ip_addr}" to get the local host IP and using the IP for registering the application.
But to handle hosts with multiple NIC card, we are planing to use the FQDN(Fully Qualified Domain Name) instead of the ip address.
Is there any way to get the FQDN of the localhost using NSI script? Any other known workaround?
- Bhupen
nsisadmin
10th November 2010 17:42 UTC
may be we can get the fqdn by appending domain name after hostname. how to get the hostname? any available plugin?
Zinthose
10th November 2010 17:55 UTC
I believe you want to use the getnameinfo win32 api call for this.
http://msdn.microsoft.com/en-us/library/ms738532%28VS.85%29.aspx
Zinthose
10th November 2010 20:06 UTC
... Ignore the Other Zinthose he is a newb.. use this instead.
0
SectionEnd
>
Zinthose
11th November 2010 14:05 UTC
I created a Wiki page for this:
http://nsis.sourceforge.net/Fully_Qualified_Domain_Name
nsisadmin
15th November 2010 05:34 UTC
Thanks Zinthose. The wiki was of great help.
I need to use few of the IpConfig plugin APIs(like GetHostName, GetPrimaryDNSSuffix, GetAllNetworkAdaptersIDs, GetEnabledNetworkAdaptersIDs, GetNetworkAdapterIPAddresses etc.). But looks like IpConfig plugin is not working properly(I am trying with windows XP).
Please help.
Zinthose
15th November 2010 22:28 UTC
Looks like you already found the IPConfig Plugin Forum Topic
Listen To MSG he has the answer ;-)
Originally posted by MSG
The dll should be in NSIS\Plugins, not $INSTDIR\plugin.
Just to clarify that is the NSIS\Plugins dir were you have NSIS installed.