On Fri, 3 Oct 2003, Steve Coleman wrote:

> Brian Dessent wrote:
>
> >You can use the binaries from the precompiled win32 BIND packages from
> >ISC.  They're not cygwin aware, but since they're ports from a unix-like
> >environment you can hardly tell the difference.
>
> For the client side command line there is also
> "/cygdrive/C/WINNT/system32/NSLOOKUP.EXE" on some Win32 OS's but because
> it is not Cygwin aware you can not use it in a pipe, popen, perl
> open(X,"cmd |"), or by greping the stdout for the desired patterns
> within a script.

Huh?

$ type -a nslookup
nslookup is /cygdrive/c/WINNT/system32/nslookup
$ nslookup cygwin.com 128.122.128.2 | grep cygwin
Non-authoritative answer:
Name:    cygwin.com
$ nslookup cygwin.com 128.122.128.2 2>&1 | grep cygwin
Name:    cygwin.com
$ perl -e '$a="cygwin.com"; $s="128.122.128.2"; open FILE,"nslookup $a $s|"; 
while(<FILE>){print if /cygwin.com/}; close FILE;'
Non-authoritative answer:
Name:    cygwin.com
$ [pechtcha:~] uname -a
CYGWIN_NT-5.0 pechtcha 1.5.5(0.94/3/2) 2003-09-20 16:31 i686 unknown unknown Cygwin
$

> I hve been looking for something to do a little scripting of my custom
> dynamic DNS updates at home and found the perl Net::DNS package
> yesterday, but alas, installing via CPAN.pm it failed some of its tests.
> I'll have to look into this package a little more when I have the time.

There must be something wrong with your system, 'cause it sure does work
for me...
        Igor
-- 
                                http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_                [EMAIL PROTECTED]
ZZZzz /,`.-'`'    -.  ;-;;,_            [EMAIL PROTECTED]
     |,4-  ) )-,_. ,\ (  `'-'           Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL     a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to