Networking Forums

Networking Forums > Computer Networking > Linux Networking > What was that command?

Reply
Thread Tools Display Modes

What was that command?

 
 
Jhuola Hoptire
Guest
Posts: n/a

 
      01-22-2004, 02:52 AM
I ran a command the other day that gave me a simple
three line response, stating the

domain name
primary dns server
secondary dns server

Does anybody know what it was I typed in? I'll not
be able to do anything else until I know what it was!

What are you supposed to do when you know there *is* a
command that gives you exactly what you want but when you
search the web, you just spend hours going through totally
unrelated and unhelpful (but possibly interesting) stuff?
If you try a search on something like

domain name server linux command

you'll be totally overwhelmed with stuff you weren't really
looking for.
 
Reply With Quote
 
 
 
 
horsager(at)comcast(dot)net
Guest
Posts: n/a

 
      01-22-2004, 03:12 AM
I'm not sure what command you're talking about, but the output you
describe has a striking resemblance to the contents of /etc/resolv.conf.

# cat /etc/resolv.conf

You can do a system search for commands using keywords:

apropos <keyword>
man -k <keyword>

The above two commands are equivelant.

As an example:

[root@dell root]# man -k domain
IO::Socket::INET (3pm) - Object interface for AF_INET domain sockets
IO::Socket::UNIX (3pm) - Object interface for AF_UNIX domain sockets
Net:omain (3pm) - Attempt to evaluate the current host's
internet name and domain
README.apollo [perlapollo] (1) - Perl version 5 on Apollo DomainOS
bind_textdomain_codeset (3) - set encoding of message translations
bindtextdomain (3) - set directory containing message catalogs
dnsdomainname [hostname] (1) - show the system's DNS domain name
domainname [hostname] (1) - show or set the system's NIS/YP domain name
getdomainname (2) - get/set domain name
ksh (1) - Public domain Korn shell
ksh [pdksh] (1) - Public domain Korn shell
named (8) - Internet domain name server
nisdomainname [hostname] (1) - show or set system's NIS/YP domain name
personality (2) - set the process execution domain
res_querydomain [resolver] (3) - resolver routines
setdomainname [getdomainname] (2) - get/set domain name
textdomain (3) - set domain for future gettext() calls
ypdomainname [hostname] (1) - show or set the system's NIS/YP domain name

HTH

Jeff

Jhuola Hoptire wrote:
> I ran a command the other day that gave me a simple
> three line response, stating the
>
> domain name
> primary dns server
> secondary dns server
>
> Does anybody know what it was I typed in? I'll not
> be able to do anything else until I know what it was!
>
> What are you supposed to do when you know there *is* a
> command that gives you exactly what you want but when you
> search the web, you just spend hours going through totally
> unrelated and unhelpful (but possibly interesting) stuff?
> If you try a search on something like
>
> domain name server linux command
>
> you'll be totally overwhelmed with stuff you weren't really
> looking for.


 
Reply With Quote
 
Jhuola Hoptire
Guest
Posts: n/a

 
      01-22-2004, 03:24 AM
That's useful, thank you.
And what's the number in the parenthesis? Is that some sort of
rating for the quality of the result?


horsager(at)comcast(dot)net wrote:

> I'm not sure what command you're talking about, but the output you
> describe has a striking resemblance to the contents of /etc/resolv.conf.
>
> # cat /etc/resolv.conf
>
> You can do a system search for commands using keywords:
>
> apropos <keyword>
> man -k <keyword>
>
> The above two commands are equivelant.
>
> As an example:
>
> [root@dell root]# man -k domain
> IO::Socket::INET (3pm) - Object interface for AF_INET domain sockets
> IO::Socket::UNIX (3pm) - Object interface for AF_UNIX domain sockets
> Net:omain (3pm) - Attempt to evaluate the current host's
> internet name and domain
> README.apollo [perlapollo] (1) - Perl version 5 on Apollo DomainOS
> bind_textdomain_codeset (3) - set encoding of message translations
> bindtextdomain (3) - set directory containing message catalogs
> dnsdomainname [hostname] (1) - show the system's DNS domain name
> domainname [hostname] (1) - show or set the system's NIS/YP domain name
> getdomainname (2) - get/set domain name
> ksh (1) - Public domain Korn shell
> ksh [pdksh] (1) - Public domain Korn shell
> named (8) - Internet domain name server
> nisdomainname [hostname] (1) - show or set system's NIS/YP domain name
> personality (2) - set the process execution domain
> res_querydomain [resolver] (3) - resolver routines
> setdomainname [getdomainname] (2) - get/set domain name
> textdomain (3) - set domain for future gettext() calls
> ypdomainname [hostname] (1) - show or set the system's NIS/YP domain name
>
> HTH
>
> Jeff
>
> Jhuola Hoptire wrote:
>
>> I ran a command the other day that gave me a simple
>> three line response, stating the
>>
>> domain name
>> primary dns server
>> secondary dns server
>>
>> Does anybody know what it was I typed in? I'll not
>> be able to do anything else until I know what it was!
>>
>> What are you supposed to do when you know there *is* a
>> command that gives you exactly what you want but when you
>> search the web, you just spend hours going through totally
>> unrelated and unhelpful (but possibly interesting) stuff?
>> If you try a search on something like
>>
>> domain name server linux command
>>
>> you'll be totally overwhelmed with stuff you weren't really
>> looking for.

>
>

 
Reply With Quote
 
Bit Twister
Guest
Posts: n/a

 
      01-22-2004, 03:34 AM
On Thu, 22 Jan 2004 04:24:58 GMT, Jhuola Hoptire wrote:
> That's useful, thank you.
> And what's the number in the parenthesis? Is that some sort of
> rating for the quality of the result?


man man
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      01-22-2004, 03:44 AM
"Jhuola Hoptire" <(E-Mail Removed)> wrote in message
news:TNHPb.45713$(E-Mail Removed)

> I ran a command the other day that gave me a simple
> three line response, stating the
>
> domain name
> primary dns server
> secondary dns server
>
> Does anybody know what it was I typed in? I'll not
> be able to do anything else until I know what it was!
>
> What are you supposed to do when you know there *is* a
> command that gives you exactly what you want but when you
> search the web, you just spend hours going through totally
> unrelated and unhelpful (but possibly interesting) stuff?
> If you try a search on something like


"history" will give you a finite list of the recent commands you've type, if
supported by and enabled within your shell environment.

The command was probably something akin to:

$ nslookup -sil -query=NS example.net

Learn to use the "man -k word" or "apropos word" commands, which will return
the man pages that have "word" in their descriptive fields.


tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Jhuola Hoptire
Guest
Posts: n/a

 
      01-22-2004, 04:43 AM
I skimmed
http://www.linux-tutorial.info/cgi-b...l?13&0&224&0&3
http://jamesthornton.com/linux/man/man.7.html
Both give quite a lot of good info on man. And man man
is another read.

This is getting a bit OT, so we should perhaps leave it
here.

If anyone wants to have the last word, let us know what
the numbers in the parenthesis signify in the SEE ALSO (and
other places). It seems to be a general convention rather
than man specific.

As I said before, without places like this NG, if you
are new at this, you can spend hours to find something
that should be quite easy to locate.



ynotssor wrote:

> "Jhuola Hoptire" <(E-Mail Removed)> wrote in message
> news:TNHPb.45713$(E-Mail Removed)
>
>
>>I ran a command the other day that gave me a simple
>>three line response, stating the
>>
>>domain name
>>primary dns server
>>secondary dns server
>>
>>Does anybody know what it was I typed in? I'll not
>>be able to do anything else until I know what it was!
>>
>>What are you supposed to do when you know there *is* a
>>command that gives you exactly what you want but when you
>>search the web, you just spend hours going through totally
>>unrelated and unhelpful (but possibly interesting) stuff?
>>If you try a search on something like

>
>
> "history" will give you a finite list of the recent commands you've type, if
> supported by and enabled within your shell environment.
>
> The command was probably something akin to:
>
> $ nslookup -sil -query=NS example.net
>
> Learn to use the "man -k word" or "apropos word" commands, which will return
> the man pages that have "word" in their descriptive fields.
>
>
> tony
>
> --
> use hotmail for any email replies
>
>
>
> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----== Over 100,000 Newsgroups - 19 Different Servers! =-----

 
Reply With Quote
 
Abi
Guest
Posts: n/a

 
      01-22-2004, 08:40 AM
The number next to man is the section of the manual page that you are
supposed to look for
printf (3) would mean the printf of section 3 of the manual
man 3 printf would also get you to the exact document
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      01-22-2004, 09:52 AM
"Jhuola Hoptire" <(E-Mail Removed)> wrote in message
news:HpJPb.45715$(E-Mail Removed)

> If anyone wants to have the last word, let us know what
> the numbers in the parenthesis signify in the SEE ALSO (and
> other places). It seems to be a general convention rather
> than man specific.


The *nix online manual is divided into "sections" for various types of
command categories. You can study this more specificall by perusing section
4.7 at http://www.icon.co.za/~psheer/book/index.html.gz

That link is something one should bookmark as a ready reference, and it will
serve one well.


tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
Vilmos Soti
Guest
Posts: n/a

 
      01-29-2004, 01:45 AM
Jhuola Hoptire <(E-Mail Removed)> writes:

> That's useful, thank you.
> And what's the number in the parenthesis? Is that some sort of
> rating for the quality of the result?


....

>> bind_textdomain_codeset (3) - set encoding of message translations
>> bindtextdomain (3) - set directory containing message catalogs
>> dnsdomainname [hostname] (1) - show the system's DNS domain name


That refers to the man section. Type "man 3 bindtextdomain" to
get the appropriate man page.

Vilmos
 
Reply With Quote
 
Bill Marcum
Guest
Posts: n/a

 
      02-23-2004, 04:17 PM
On Thu, 22 Jan 2004 05:43:03 GMT, Jhuola Hoptire
<(E-Mail Removed)> wrote:

> If anyone wants to have the last word, let us know what
> the numbers in the parenthesis signify in the SEE ALSO (and
> other places). It seems to be a general convention rather
> than man specific.


The SEE ALSO section may refer to man pages that aren't available on
your system.

--
Incrsease your earoning poswer and gaerner profwessional resspect.
Get the Un1iversity Dewgree you have already earned.
[from the University of Spam!]
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
SP3 Netsh command does not include wlan command. Stephen Liffen Wireless Networks 4 09-15-2008 02:42 PM
Need help in 'at' command R C V Linux Networking 6 04-03-2008 11:20 AM
Using Net Use command... Eric Windows Networking 8 04-17-2007 01:52 PM
DNS and LS command TheBib Windows Networking 2 02-18-2006 03:50 PM
Is There A Command Dan Linux Networking 4 04-21-2005 07:48 AM



1 2 3 4 5 6 7 8 9 10 11