fusioninventory / fusioninventory-for-glpi

FusionInventory plugin for GLPI
http://www.FusionInventory.org/
GNU Affero General Public License v3.0
362 stars 150 forks source link

poor handling of RFC1918 ("internal") addresses #1441

Open ddurieux opened 9 years ago

ddurieux commented 9 years ago

Author Name: Stoat Wblr (@Stoatwblr) Original Redmine Issue: 2574, http://forge.fusioninventory.org/issues/2574 Original Date: 2014-07-06


This could be an agent issue, but I suspect it's the plugin doing it.

Hosts which have RFC1918 ("internal" addresses have their DNS network names changed to "internal" during network discovery/snmp inventory, even if they are locally resolvable

Many large organisations use these IP ranges extensively and renaming assigned hostnames to something unrelated is a "really bad idea"

It would be better if FI pasted resolved names/domains into the network name/domain field and left the fields alone entirely if they cannot be resolved.

ddurieux commented 9 years ago

Original Redmine Comment Author Name: David Durieux (@ddurieux) Original Date: 2014-07-17T14:02:55Z


Can you give an example of that you have and that you want?

ddurieux commented 9 years ago

Original Redmine Comment Author Name: Stoat Wblr (@Stoatwblr) Original Date: 2014-07-21T20:24:46Z


host 192.168.30.245 had its network name (manually configured in glpi) changed from switchb.mars to internal.mars

Lots of similar examples.

I've verified that the resolved name is passed correctly from FI-agent (it uses nmap to obtain this)

If a host resolves then the resolved name should be used.