Re: DNS and its IP for Linux

Eric Koldeweij <[email protected]>
Newsgroups gmane.linux.redhat.release.enigma
Message-ID <[email protected]>

HL wrote:

>Have some questions for our Redhat Linux :
>
>1. How to find out what DNS and its respective for the Linux server ?
>  
>
I think you mean here "What name servers are being used for name 
resulotion?"
The answer is "cat /etc/resolv.conf" In there you will find one or more 
lines saying "nameserver" followed by an IP address. Those are the name 
servers being used, in order. You can specify up to three nameservers.

>2. How to find out what host name/address for the Linux server ?
>

Use the command "hostname" to display the assigned hostname. Use the 
command "ifconfig" to see all IP addresses assigned to the box.

Eric.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.