To find a hostname when you know the IP address:
nmblookup -A <ip_address>
eg. nmblookup -A 192.168.0.148
or
host <ip_address>
eg. host 192.168.0.148
To find an IP address when you know the hostname, try the following ways:
whois www.google.com
dig www.google.com
nslookup www.google.com
This is a repository of all of my Linux/Unix writings as well as useful tips and tricks for systems administration, engineering, and programming.
Showing posts with label hostname. Show all posts
Showing posts with label hostname. Show all posts
Wednesday, January 7, 2009
Friday, June 13, 2008
Change hostname
To change the name of the computer's name (hostname) do the following:
#echo <hostname> > /etc/HOSTNAME
Example:
#echo earth > /etc/HOSTNAME
Subscribe to:
Posts (Atom)