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.
use full path - /sbin/ifconfig, login as root and cat /etc/resolv.conf for name servers info also.
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?:o
cheers,
Toni
Yes, use "echo $PATH" and you will see your path. If you are the super user, "/sbin" will be included in your path.