<div dir="ltr"><div><div><div>Jeff's solution works for a file of host names:<br><br></div>for ip in $(cat list.txt);<br>do<br></div>  host $ip;<br></div>done<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Dec 4, 2014 at 3:54 PM, Raymond Norton <span dir="ltr"><<a href="mailto:admin@lctn.org" target="_blank">admin@lctn.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I misunderstood the original response. Thought it was a file name<br>
<br>
<br>
<br>
I will just make scripts like this:<br>
<br>
<br>
<br>
<br>
for ip in x.x.x.x x.x.x.x x.x.x.x ; do<br>
host $ip<br>
done<br>
<br>
<br>
Works fine.<br>
<br>
Thanks<span class="im HOEnZb"><br>
<br>
<br>
<br>
<br>
On 12/04/2014 03:44 PM, <a href="mailto:tclug@freakzilla.com" target="_blank">tclug@freakzilla.com</a> wrote:<br>
</span><div class="HOEnZb"><div class="h5"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Should still work. Here's how I'd run it on one of my servers:<br>
<br>
sterling@rooster:/home/<u></u>sterling$ for ip in 192.168.0.100 192.168.0.65 192.168.0.74; do<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
host $ip<br>
done<br>
</blockquote>
100.0.168.192.in-addr.arpa domain name pointer <a href="http://tiger.yaron.org" target="_blank">tiger.yaron.org</a>.<br>
65.0.168.192.in-addr.arpa domain name pointer <a href="http://wyvern.yaron.org" target="_blank">wyvern.yaron.org</a>.<br>
74.0.168.192.in-addr.arpa domain name pointer <a href="http://dragon.yaron.org" target="_blank">dragon.yaron.org</a>.<br>
<br>
If it's not working for you, try just "host ip_address". If that fails, too, you have some weird DNS stuff going on.<br>
<br>
On Thu, 4 Dec 2014, Raymond Norton wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Im using IP's<br>
<br>
x.x.x.x<br>
x.x.x.x<br>
<br>
<br>
On 12/04/2014 03:40 PM, Shaden Smith wrote:<br>
      What are you using for the list of host names? The code posted<br>
      before works fine as long as you're giving it a list correctly.<br>
<br>
On Thu, Dec 4, 2014 at 3:36 PM, Raymond Norton <<a href="mailto:admin@lctn.org" target="_blank">admin@lctn.org</a>> wrote:<br>
      I get the following error:<br>
<br>
      Host hostnames not found: 3(NXDOMAIN)<br>
<br>
<br>
<br>
<br>
      On 12/04/2014 02:55 PM, <a href="mailto:tclug@freakzilla.com" target="_blank">tclug@freakzilla.com</a> wrote:<br>
            for ip in list_of_hostnames; do<br>
            host $ip<br>
            done<br>
<br>
<br>
<br>
<br>
            On Thu, 4 Dec 2014, Raymond Norton wrote:<br>
<br>
                  I want to review out networks<br>
                  periodically for current dns<br>
                  records, using the host dns lookup<br>
                  tool. I would like to use a bash<br>
                  script and have it look up 30-50<br>
                  IPs per run. Anyone have a simple<br>
                  script for this?<br>
<br>
<br>
            ______________________________<u></u>_________________<br>
            TCLUG Mailing List - Minneapolis/St. Paul,<br>
            Minnesota<br>
            <a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
<br>
<br>
-- <br>
Raymond Norton<br>
LCTN<br>
<a href="tel:952.955.7766" value="+19529557766" target="_blank">952.955.7766</a><br>
<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
<br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
<br>
<br>
<br>
</blockquote>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</blockquote>
<br>
-- <br>
Raymond Norton<br>
LCTN<br>
<a href="tel:952.955.7766" value="+19529557766" target="_blank">952.955.7766</a><br>
<br>
______________________________<u></u>_________________<br>
TCLUG Mailing List - Minneapolis/St. Paul, Minnesota<br>
<a href="mailto:tclug-list@mn-linux.org" target="_blank">tclug-list@mn-linux.org</a><br>
<a href="http://mailman.mn-linux.org/mailman/listinfo/tclug-list" target="_blank">http://mailman.mn-linux.org/<u></u>mailman/listinfo/tclug-list</a><br>
</div></div></blockquote></div><br></div>