Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

looking for batch dns inquiry tool

0 views
Skip to first unread message

Ernie Luzar

unread,
Sep 7, 2017, 11:24:08 AM9/7/17
to
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.




_______________________________________________
freebsd-...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questi...@freebsd.org"

RW via freebsd-questions

unread,
Sep 7, 2017, 12:35:45 PM9/7/17
to
On Thu, 07 Sep 2017 11:22:44 -0400
Ernie Luzar wrote:

> 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.
>

It's easy to script this kind of thing. I prefer dig, e.g.

$ dig +short www.thaiheart.org
vc1.readyplanet.com.
203.151.233.134

However what you want to do seems draconian because you are blocking the
hosting company rather than the specific site.
0 new messages