Networking Forums  

Go Back   Networking Forums > Networking Newsgroups > Linux Networking

reverse ipv6 dns lookup in a script, using, for example,/usr/bin/host utility ?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-16-2008, 08:28 AM
Default reverse ipv6 dns lookup in a script, using, for example,/usr/bin/host utility ?



How do I do reverse ipv6 dns lookup in a script,
in particular using /usr/bin/host utility ?

Thanks
Viki


viki
Reply With Quote
  #2  
Old 04-16-2008, 01:13 PM
Bit Twister
Guest
 
Posts: n/a
Default Re: reverse ipv6 dns lookup in a script, using, for example,/usr/bin/host utility ?

On Wed, 16 Apr 2008 00:28:34 -0700 (PDT), viki wrote:
> How do I do reverse ipv6 dns lookup in a script,


You could put results into an array and parse it.
You can use a while loop to read command,
you can pipe command into a file and use a while
loop to read the file.

You can use "set" to parse a line.
man set (then man man to find set builtin)

You can modify IFS to parse fields out of a word.

> in particular using /usr/bin/host utility ?


man host
to get command line arguments for ipv6.

Actual commands/method selected may be found in
http://tldp.org/LDP/abs/html/index.html

Reply With Quote
Reply

Tags
dns, ipv6, lookup, or usr or bin or host, reverse, script, utility

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 02:18 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.