On Mon, Sep 02, 2002 at 03:33:22PM +1000, Andy Eager wrote:
> Hi all,
> 
> Is there an easy way to tell what name resolution scheme was used in 
> order to resolve a host lookup:
> 
> eg:
> 
> ping node3.mydomain   --> search dns... not found,  search files...found
> 
> ping www.blah.com.au  --> search dns... found
> 
> That is, tracing the paths/actions defined in nsswitch.conf and what 
> each action returned.

The nasty way is probably to use strace and/or ltrace.  There's probably
a cleaner and easier way though.

-Andrew.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to