Technical article 126959

The hostresorder directive in /etc/resolv.conf is not working on OpenServer 6.0.0

OpenServer 6.0.0

Written · Last revised

Problem

I am using
hostresorder local bind

in 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 example
file /bin/ping
returns
/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.

However
file /usr/lib/mozilla/mozilla-bin
returns
/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.so

this 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.

From the Xinuos technical article database, record 126959. Reproduced with permission. The original is at www.sco.com/ta/126959, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.