Quoting Elimar Riesebieter (riese...@lxtec.de): > * David Wright <deb...@lionunicorn.co.uk> [2015-08-27 13:29 -0500]: > > > Quoting Elimar Riesebieter (riese...@lxtec.de): > > > * rlhar...@oplink.net <rlhar...@oplink.net> [2015-08-27 02:09 -0500]: > > > > > > [...] > > > > > > > > How can I determine the address without reinstalling? > > > > > > $ host $(hostname)
I was trying to ascertain the usefulness of this command in a LAN context. > > $ host junk > > Host junk not found: 3(NXDOMAIN) > > $ > > > > ... whether junk is localhost, another PC on the LAN, or indeed "junk". IOW whatever I substitute for "junk", I get the same reply. > So junk isn't assigned to your LAN's DHCP/DNS server. Correct. It's not. I tried putting in the name of this computer, another (existing) computer and for completion, a non-existent computer. After all, the message for the latter case might have been different, which would indicate the command was doing *something* even if it wasn't particularly useful. Or, to spell it out: $ host localhost Host localhost not found: 3(NXDOMAIN) $ ping localhost PING localhost (127.0.0.1) 56(84) bytes of data. 64 bytes from localhost (127.0.0.1): icmp_req=1 ttl=64 time=0.032 ms [...] $ host alum Host alum not found: 3(NXDOMAIN) $ ping alum PING alum (127.0.1.1) 56(84) bytes of data. 64 bytes from alum (127.0.1.1): icmp_req=1 ttl=64 time=0.036 ms [...] $ host west Host west not found: 3(NXDOMAIN) $ ping west PING west (192.168.1.15) 56(84) bytes of data. 64 bytes from west (192.168.1.15): icmp_req=1 ttl=64 time=5.61 ms [...] $ host junk Host junk not found: 3(NXDOMAIN) $ ping junk ping: unknown host junk $ and from west: $ host alum Host alum not found: 3(NXDOMAIN) $ ping alum PING alum (192.168.1.19) 56(84) bytes of data. 64 bytes from alum (192.168.1.19): icmp_seq=1 ttl=64 time=5.30 ms [...] $ But just to show that I really do exist: $ host www.google.com www.google.com has address 173.194.115.18 www.google.com has address 173.194.115.20 www.google.com has address 173.194.115.16 www.google.com has address 173.194.115.19 www.google.com has address 173.194.115.17 www.google.com has IPv6 address 2607:f8b0:4000:806::1012 $ Cheers, David.