Help scripting dns lookup using awk

Ernie Luzar luzar722 at gmail.com
Fri Sep 15 23:20:25 UTC 2017


RW via freebsd-questions wrote:
> 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.
> 

How would I go about coding a sh script to fire-off parallel child 
processes?


More information about the freebsd-questions mailing list