Article View: comp.sys.sgi.admin
Article #7Re: system names from IP
From: Sam Fulcomer
Date: Mon, 14 Dec 1992 19:27
Date: Mon, 14 Dec 1992 19:27
26 lines
1151 bytes
1151 bytes
In article <1992Dec14.172453.26933@den.mmc.com>, beck@enterprise.den.mmc.com (Fred R. Beck) writes:
|> Howdy!
|>
|> Has anyone out there ever tried to resolve a system name
|> from an IP number? I've been poking around and the closest
I just use a stupid shell (csh) script which I've never bothered to make more
elegant (stdin if argc = 1, argc >2, etc...):
#!/bin/csh
set revaddr=`echo $1 | awk -F. '{printf("%s.%s.%s.%s\n",$4,$3,$2,$1)}' `
nslookup <<%%
set query=ptr
set domain=in-addr.arpa
$revaddr
%%
--
_/**/Sam_Fulcomer sgf@cfm.brown.edu What, me panic: uba crazy
Brown University Center for Fluid Mechanics, Turbulence and Computation
Technical Details
Message-ID:
<1gin6oINNi46@cat.cis.Brown.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!sgf@cfm.brown.eduReferences:
<1992Dec14.172453.26933@den.mmc.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!noc.near.net!news.Brown.EDU!sgf@cfm.brown.edu From: sgf@cfm.brown.edu (Sam Fulcomer) Newsgroups: comp.sys.sgi.admin Subject: Re: system names from IP Date: 14 Dec 1992 19:27:20 GMT Organization: Brown University Center for Fluid Mechanics Lines: 26 Sender: sgf@eddy (Sam Fulcomer) Distribution: world Message-ID: <1gin6oINNi46@cat.cis.Brown.EDU> References: <1992Dec14.172453.26933@den.mmc.com> NNTP-Posting-Host: eddy.cfm.brown.edu