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.