Sponsored Content
Full Discussion: I need help with...<various>
Top Forums Shell Programming and Scripting I need help with...<various> Post 302227992 by Habitual on Friday 22nd of August 2008 12:27:07 PM
Old 08-22-2008
Question I need help with...<various>

Hello:

I am trying to come up with a BASH 1-liner (I can't use perl or php scripts, don't ask) to grab the nameservers from a host -t ns <domain> command.

Here's what I have and it's as far as I can get:

host -t ns scallyrootest.com | awk '{print $4}' | sort
ns41.hostforweb.net.
ns42.hostforweb.net.

What I'd love to have is:
IP for scallyroottest.com is <IP> at ns41.hostforweb.net.
IP for scallyroottest.com is <IP> at ns42.hostforweb.net.

by running the 1-liner on mostly CentOS platforms

Please and thank you for your time.
 
siteuptime(1)							   wzdftpd tools						     siteuptime(1)

NAME
siteuptime - show current uptime for FTP server (wzdftpd) SYNOPSIS
siteuptime [OPTION] DESCRIPTION
The siteuptime command shows current uptime for wzdftpd. OPTIONS
--user,-u XXX Use username XXX instead of wzdftpd. --pass,-w XXX Use password XXX with the username. --host,-h XXX Connect to the specified host. --port,-p XXX Employ the specified port number for connecting to the server. --secure,-s Enforce a secure connection, aborts if negotiation fails. --insecure,-t Do not try to negotiate a secure connection. AUTHORS
wzdftpd is written and maintained by Pierre Chifflier <chifflier@cpe.fr>, and some others contributors, full credits can be found in /usr/share/doc/wzdftpd/AUTHORS SEE ALSO
wzdftpd(8),ftp(1),siteconfig(1),sitewho(1) Full documentation on wzdftpd, including configuration and FAQs, is available at http://www.wzdftpd.net For help/support, try the wzdftpd mailing lists, detailed on http://sourceforge.net/mail/?group_id=78247 Report bugs at http://www.wzdftpd.net/smf/index.php siteuptime (wzdftpd) November 2004 siteuptime(1)
All times are GMT -4. The time now is 12:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy