From owner-freebsd-questions@freebsd.org Thu Sep 7 15:22:49 2017 Return-Path: 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 AC7D5E225F7 for ; Thu, 7 Sep 2017 15:22:49 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x234.google.com (mail-io0-x234.google.com [IPv6:2607:f8b0:4001:c06::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1EDCB67779 for ; Thu, 7 Sep 2017 15:22:49 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x234.google.com with SMTP id d16so71879ioj.3 for ; Thu, 07 Sep 2017 08:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject :content-transfer-encoding; bh=ymHaohoDcMEOqTd9X8l6hVcODFwe6XvK1TgSDFyZXSA=; b=c0v7tyetIEe3yTd+LnUG0tJzCFJskPOfCkiFO8AZtdDAHqSiNcy3HdEPMy9tHAgTtO wkBGkq7g9yXF0pkr3ZU7duxOS4ifrMO7Zu/PDxmR3iPKZiHAtPrrpL7eQ0l75Ab1zDRt YST73YfXbKlm3C4QDL3pX+CGm+nNNYHTusyGnzMoobHV20LXeISo5HIvnLTz1OcxpZk1 mwtfLiLhputeSUQ8nmRx4IfjpWXsO3YUJ/INgYckTO4HsMdpA2fTNwlVsC/+xSaKug6/ wh0m08Y4nRa8vglbsLvT24FJtCDnQMFgmP0I0o2rZanpI8YST0Iq/R9y/9RlfjfWkbUP y7LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:content-transfer-encoding; bh=ymHaohoDcMEOqTd9X8l6hVcODFwe6XvK1TgSDFyZXSA=; b=aQlHjeHyvJkSl/wNQ6AEiSx/VYADD/tgz7IjnRd5T13T+7WehgGyLZ3zm5d5iFPJrL r/dvV+OzgbTm6yB/QsvZdRb2e1zLEVa9XWqEB/66OjQpu7whIYKaa95/wKLJrlyWaoZ+ rxFbPPAmVWnaDNZ6LX0tAwnNRFv9GojM2EB/iKMbxh2BjMsSGSHl/YmJldly05NWSm4O PDpjKfGCfpr+70S/aK/9FXvkz5lnE3tPvsDcknoQrOrJuCsaSCd6MG7RtMwTsSFTSNjs r9CR2Qq24PlcOa7/ONXnvv4AvqquNs14qgrSEapmCl0xDzCfN8bywKvLwFzl8CJgx97K 2qPg== X-Gm-Message-State: AHPjjUgvOr2No6LQS0HRMGof1nls5CFMErzVy6SUP3HLYdhT+4XsRQcO PPqtmeQh14Pmj4yU X-Google-Smtp-Source: AOwi7QBX9NSExa3VtqjF7P2cnop3KUS2+bx4qgBB5AjzqCEwNAXctMTHNm/nCh8bcYQDI8LDx7SPhA== X-Received: by 10.107.57.198 with SMTP id g189mr3346852ioa.323.1504797768311; Thu, 07 Sep 2017 08:22:48 -0700 (PDT) Received: from [10.0.10.3] (cpe-74-141-88-147.neo.res.rr.com. [74.141.88.147]) by smtp.googlemail.com with ESMTPSA id m123sm968706iom.25.2017.09.07.08.22.47 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Sep 2017 08:22:47 -0700 (PDT) Message-ID: <59B16444.9010608@gmail.com> Date: Thu, 07 Sep 2017 11:22:44 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: "freebsd-questions@freebsd.org" Subject: looking for batch dns inquiry tool Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Sep 2017 15:22:49 -0000 Hello list I am trying to build a domain name block list to feed unbound. There are many sites that provide *host* list files. Example host name www.thaiheart.org Using the "host" command I followed that domain as shown below. >host www.thaiheart.org www.thaiheart.org is an alias for vc1.readyplanet.com. vc1.readyplanet.com has address 203.151.233.134 >host thaiheart.org thaiheart.org has address 203.151.233.116 thaiheart.org mail is handled by 10 mx.thaiheart.org.cust.a.hostedemail.com. >host vc1.readyplanet.com vc1.readyplanet.com has address 203.151.233.134 >host readyplanet.com readyplanet.com has address 203.151.233.152 readyplanet.com mail is handled by 5 alt2.aspmx.l.google.com. readyplanet.com mail is handled by 1 aspmx.l.google.com. readyplanet.com mail is handled by 10 aspmx4.googlemail.com. readyplanet.com mail is handled by 10 aspmx5.googlemail.com. readyplanet.com mail is handled by 5 alt1.aspmx.l.google.com. What I am looking for is a command or port that I can feed it a file containing domain names and for each one output a file containing the extended domain names I should be blocking. As in for the above example. www.thaiheart.org thaiheart.org vc1.readyplanet.com readyplanet.com Thanks for any help.