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