![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here! |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
use full path - /sbin/ifconfig, login as root and cat /etc/resolv.conf for name servers info also.
|
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
Yes, use "echo $PATH" and you will see your path. If you are the super user, "/sbin" will be included in your path.
|
||||
| Google The UNIX and Linux Forums |