On Sat, 30 Oct 1999, Vadim Vygonets wrote:
> Quoth Dave C. on Fri, Oct 29, 1999:
> > On Fri, 29 Oct 1999, Vadim Vygonets wrote:
> > > And, BTW, write a function in C that will find out whether or not
> > > you have a permanent Net connection and proper hostname, eh?
> >
> > Heck I can write a bash script that can do that..
>
> How? (By proper hostname, I meant the one that can be traced
> from the root DNS servers). And don't forget that trying to
> nslookup exim.org won't work -- if the line is down, I want the
> function / script to return the "have permanent connection"
> value. If there usually is Net connection. And checking
> hostnames won't work either -- you never know when some weird TLD
> like ".nom" is defined.
MMm... I don't see - generally speaking - how any information from the DNS
will tell if a machine is permanatly connected to the net.
Take the host u-sci.u-net.com,
> nslookup u-sci.u-net.com
Server: serv1.is.u-net.net
Address: 194.119.131.65
Name: u-sci.u-net.com
Address: 193.119.177.3
> set q=ptr
> 193.119.177.3
Server: serv1.is.u-net.net
Address: 194.119.131.65
Non-authoritative answer:
3.177.119.193.in-addr.arpa name = u-sci.u-net.com
The host is just a dialup account - but it's DNS entries are no more
special than those of my desktop box at work which is indeed permenently
connected...
Regards,
aid
--
Adrian J Bool | http://www.noc.u-net.net/
Network Manager | tel://44.1925.484061/
U-NET Ltd | fax://44.1925.484055/