02-04-2004 03:07 AM
ifconfig will give you the ip address: ifconfig lan0, for example.
nslookup will give you the hostname associated with an ip address: nslookup 100.101.102.103, for example.
02-04-2004 03:08 AM
'ifconfig lanx' is the command you are looking for.
netstat -in will also give the information on all the lancards and the IP addresses associated with it.
Hostname will be only one on the box. If the server has multiple lan cards and multiple address, each address may have a different DNS name. An 'nslookup' can give you the name corresponding to the IP address which is displayed in 'netstat -i' output.
'hostname' gives the hostname of the server.
02-04-2004 03:09 AM
The use 'ifconfig lan?' (where lan? = lan0, lan1, whatever') to get the IP address.
You could then use 'nslookup ip.addy' to get the hostname.
02-04-2004 06:02 PM
1. #ioscan -fnC lan
Find out the device number from the output. Ex.: lan0, lan2 etc.
2. #ifconfig lanX where X is to be substituted accordingly
Hostname: This is unique to a machine and not to a networkcard. For finding out the hostname,