The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 08-08-2007
Registered User
 

Join Date: Aug 2007
Posts: 5
red hat ee 2.6.9-42

hello.
I would be greatfull if someone could tell me how will i see what dns server and gateway my red hat server uses.
I tryied to find out by typing ifconfig command but i got :
-bash: ifconfig: command not found , although man ifonconfig gives output with info about using that command.
Is there some file on that red hat server where that information could be ?

thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 08-08-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
use full path - /sbin/ifconfig, login as root and cat /etc/resolv.conf for name servers info also.
Reply With Quote
  #3  
Old 08-09-2007
Registered User
 

Join Date: Aug 2007
Posts: 5

thank you sysgate, that gave me exactly what i needed.
...and , as we speaking about it, i suppose i have to use full path becouse i don+t have ifconfig path in my env variables?





cheers,
Toni
Reply With Quote
  #4  
Old 08-09-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,197
Yes, use "echo $PATH" and you will see your path. If you are the super user, "/sbin" will be included in your path.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:18 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0