my Solaris server configured to use ipnodes for Cisco devices discovery.instead of host file.I don't have permission to host file. the script I have to access Cisco devices using snmpwalk and snmpget. the problem is net-snmp not able get name resolution from ipnodes and I got error" unkown host" but when I using ping the name resolution is working. any one has idea why net-snmp not using ipnodes? thanks in Advance.
I believe the precompiled packages of net-snmp do not include support for getaddrinfo() or getipnodebyname(). The result is that gethostbyname() is used which does not consult ipnodes. If you recompile, getaddrinfo() should be detected, and this will be used to resolve your hostnames.