delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/03/12:23:11

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Fri, 3 Oct 2003 12:22:52 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Steve Coleman <Steve DOT Coleman AT jhuapl DOT edu>
cc: cygwin AT cygwin DOT com
Subject: Re: 'dig', 'nslookup' etc?
In-Reply-To: <3F7DA074.50801@jhuapl.edu>
Message-ID: <Pine.GSO.4.56.0310031216290.15176@slinky.cs.nyu.edu>
References: <slrnbnmsqa DOT hab DOT spam AT home DOT bounceswoosh DOT org>
<013301c38905$16be7c10$200aa8c0 AT thorin> <slrnbnn2r2 DOT hab DOT spam AT home DOT bounceswoosh DOT org>
<3F7BAF4E DOT 7689E54F AT dessent DOT net> <3F7DA074 DOT 50801 AT jhuapl DOT edu>
Importance: Normal
MIME-Version: 1.0

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/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019