Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Sep 2017 14:30:19 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Help scripting dns lookup using awk
Message-ID:  <20170915143019.2e02d386@gumby.homeunix.com>
In-Reply-To: <59BB24E4.6060908@gmail.com>
References:  <59BB24E4.6060908@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 14 Sep 2017 20:55:00 -0400
Ernie Luzar wrote:

> The following sh script works, but runs very slow.

Almost certainly the reason it's slow is that you are doing sequential
synchronous lookups. Switching  to another language isn't going help
much. To speed it up you either need to switch to a language with a
DNS library that supports asynchronous lookups or fire-off parallel
child processes. The latter is easier.







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170915143019.2e02d386>