View topic - name resolution order

name resolution order

For the old QNX2 and QNX4 RTOS

name resolution order

Postby heh2k » Wed Jun 25, 2008 6:25 pm

Is there a way to make it check /etc/hosts BEFORE trying dns? Every other *nix variant I've used checks /etc/hosts first. I think I tried nsswitch.conf once, but it had no effect.

The problem is printcap requires host names (ip's don't work) and if a wan link to a dns server is down, it takes several minutes per page to print.
heh2k
New Member
 
Posts: 3
Joined: Wed Jun 25, 2008 6:09 pm

RE: name resolution order

Postby ysinitsky » Wed Jun 25, 2008 6:46 pm

Hello,
Try including
lookup file bind
into /etc/resolv.conf

It is deprecated in QNX 6.3
It may work in QNX 4.
Regards,
Yuriy
ysinitsky
Senior Member
 
Posts: 164
Joined: Wed Dec 14, 2005 8:46 pm

RE: name resolution order

Postby albrecht » Wed Jun 25, 2008 7:30 pm

The graphical network configuration tool has a checkbox 'Look in local hosts file first'...

Check documentation for utility "netmanager", tells you everything.

Regards,
Albrecht
albrecht
Senior Member
 
Posts: 177
Joined: Fri Mar 18, 2005 2:24 pm

Re: RE: name resolution order

Postby xtang » Thu Jun 26, 2008 2:47 am

ysinitsky wrote:Hello,
Try including
lookup file bind
into /etc/resolv.conf

It is deprecated in QNX 6.3
It may work in QNX 4.
Regards,
Yuriy


The /etc/resolv.conf still exist in 6.3, but the CS_RESOLVE string comes in first (getconf CS_RESOLVE). netmanager will set CS_RESOLVE, as well as dhcp.client (-m option).

If CS_RESOLVE is not set, then the /etc/resolv.conf is consultant.
xtang
QNX Master
 
Posts: 313
Joined: Thu Jul 18, 2002 5:01 pm

RE: Re: RE: name resolution order

Postby ysinitsky » Thu Jun 26, 2008 1:05 pm

Hello,
Sorry for not expressing myself properly.
/etc/resolv.conf is not deprecated in QNX 6.3.
“lookup file bindâ€
ysinitsky
Senior Member
 
Posts: 164
Joined: Wed Dec 14, 2005 8:46 pm

Postby heh2k » Fri Jun 27, 2008 4:28 pm

"lookup file bind" works. Thanks! (I forgot to mention I'm using 4.25)
heh2k
New Member
 
Posts: 3
Joined: Wed Jun 25, 2008 6:09 pm


Return to QNX2 and QNX4

Who is online

Users browsing this forum: No registered users and 3 guests