Re: dns -server looks at servers besides the one specified by -server

Erik Schoenfelder (schoenfr@gaertner.de)
Sat, 2 Nov 96 13:50:12 +0100

Hi!

On Fri, 1 Nov 1996 12:11:43 -0600 (CST),
Karl Lehenbauer <karl@hammer1.ops.NeoSoft.com> said:

Karl> If I do a "dns -server 206.109.5.76 address
Karl> hammer1.ops.neosoft.com", it works, but it shouldn't, because
Karl> there is no host at 206.109.5.76.

Karl> I browsed through tnmDns.c for a few minutes but did not see
Karl> it. I would guess that after it fails on the specified
Karl> server, it is trying the default ones.

tnmDns.c simply replaces a default server entry by the given server.

If the system has more than one dns-server configured, the additional
entry is left in the map of servers asked.

So i assume, your resolv.conf contains more than one nameserver
entry.

Karl> For net management purposes, it would be nice to be able to
Karl> see the failure of the lookup of the specified address.

I'll ask Juergen, if he is willing to accept a diff.

Erik