From owner-freebsd-questions@freebsd.org  Sun Sep 17 02:14:05 2017
Return-Path: <owner-freebsd-questions@freebsd.org>
Delivered-To: freebsd-questions@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id 74721E1A70F
 for <freebsd-questions@mailman.ysv.freebsd.org>;
 Sun, 17 Sep 2017 02:14:05 +0000 (UTC)
 (envelope-from zarniwhoop@ntlworld.com)
Received: from know-smtprelay-omc-10.server.virginmedia.net
 (know-smtprelay-omc-10.server.virginmedia.net [80.0.253.74])
 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
 (Client CN "Bizanga Labs SMTP Client Certificate",
 Issuer "Bizanga Labs CA" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id DAC586D1FE
 for <freebsd-questions@freebsd.org>; Sun, 17 Sep 2017 02:14:04 +0000 (UTC)
 (envelope-from zarniwhoop@ntlworld.com)
Received: from localhost.localdomain ([81.97.232.230])
 by know-smtprelay-10-imp with bizsmtp
 id ASCq1w00J4yv82R01SCqoz; Sun, 17 Sep 2017 03:12:50 +0100
X-Originating-IP: [81.97.232.230]
X-Authenticated-User: X-Spam: 0
X-Authority: v=2.1 cv=SeoKDalu c=1 sm=1 tr=0 a=obylDaYnIsVqxbenyIBF4Q==:117
 a=obylDaYnIsVqxbenyIBF4Q==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10
 a=s5jvgZ67dGcA:10 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=2JCJgTwv5E4A:10
 a=eNcD7ojaAAAA:8 a=5l4X1vu6py5dhS5auckA:9 a=QEXdDO2ut3YA:10
 a=rRYMMicksRHQPzyJ67jW:22
Received: by localhost.localdomain (Postfix, from userid 1000)
 id 4D374493AB; Sun, 17 Sep 2017 03:12:50 +0100 (BST)
Date: Sun, 17 Sep 2017 03:12:50 +0100
From: Ken Moffat <zarniwhoop@ntlworld.com>
To: Ernie Luzar <luzar722@gmail.com>
Cc: Jonathan McKeown <jonathan@scatterlings.org>, freebsd-questions@freebsd.org
Subject: Re: Help scripting dns lookup using awk
Message-ID: <20170917021250.GA12346@milliways.localdomain>
References: <59BB24E4.6060908@gmail.com>
 <20170915143019.2e02d386@gumby.homeunix.com>
 <59BC6036.8040709@gmail.com>
 <CAOLAi33Uj-XmxSpvAgtMwQAKKAxLH60eqmVV177BYLrv7vQs9g@mail.gmail.com>
 <59BD3410.80708@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
X-Clacks-Overhead: GNU Terry Pratchett
Content-Transfer-Encoding: 8bit
In-Reply-To: <59BD3410.80708@gmail.com>
User-Agent: Mutt/1.9.0 (2017-09-02)
X-BeenThere: freebsd-questions@freebsd.org
X-Mailman-Version: 2.1.23
Precedence: list
List-Id: User questions <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Sun, 17 Sep 2017 02:14:05 -0000

On Sat, Sep 16, 2017 at 10:24:16AM -0400, Ernie Luzar wrote:
> 
> The only "other language" installed on my front door host is perl because
> its part of the apache pkg. I don't want to install another language just
> because it has a fast pre-canned dns lookup.
> 

Ernie,

I'll start by admitting that I don't have any interest in this
particular problem, and nor am I familiar with the differences
between Free BSD tools and the "equivalents" I use on linux.

But I get the general impression that google can often provide some
help (although sometimes it can be a PITA to work out *what* search
terms you need.  OTOH, I suppose you aren't allowed to google for
solutions ;-)  If that is true, you really need to get that
restriction removed.

For perl, Net-DNS looks like the module you probably need : go to
search.cpan.org (if you are allowed to do that) and look for it -
maybe I'm wrong and the examples (i.e. example uses) listed on the
summary page are not what you're trying to do with dns lookup.

Regards,

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals