- To: Andy Eager <eagera@xxxxxxxxxxxxxxx>
- Subject: Re: [SLUG] name resolution
- From: Andrew Bennetts <andrew@xxxxxxxxxxxx>
- Date: Mon Sep 2 15:41:34 2002
- Cc: Slug list <slug@xxxxxxxxxxx>
- User-agent: Mutt/1.3.28i
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.