Problem
I am usinghostresorder local bindin my /etc/resolv.conf but some OpenServer 6.0.0 commands, utilities and applications are ignoring this directive.
Solution
The hostresorder directive is a legacy directive from OpenServer 5 that is only recognised by OSR5 ABI binaries.
The directive is not recognised by SVR5 ABI binaries.
You can use the file(C) command to determine what type of binary you are using.
For examplefile /bin/pingreturns/bin/ping: ELF 32-bit LSB executable 80386, dynamically linked,
stripped, no debug (OSR5 ABI)indicating that the ping(ADMN) command will use the hostresorder directive.
Howeverfile /usr/lib/mozilla/mozilla-binreturns/usr/lib/mozilla/mozilla-bin: ELF 32-bit LSB executable 80386,
dynamically linked, stripped, no debug (SVR5 ABI)If you have SVR5 ABIs and you want them to resolve using /etc/hosts before DNS then you will need to make sure that the name service resolution order is set correctly.
Name service resolution order is set in the netconfig(SFF) file. The commonly used directory lookup libraries are:
/usr/lib/tcpip.so (uses local /etc/hosts, /etc/services, etc.)
/usr/lib/resolv.so (uses DNS)
/usr/lib/tcpip_nis.so (uses NIS)If your /etc/netconfig file contains the line:
tcp tpi_cots_ord v inet tcp /dev/tcp
/usr/lib/tcpip.so,/usr/lib/resolv.sothis indicates that name service resolution order will be /etc/hosts followed by DNS.
NOTE: The ScoAdmin Client Manager does not currently update
/etc/netconfig as of Maintenance Pack 3.