Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #156934

Re: what is the static ip address I assigned to eth0?

From David Wright <deblis@lionunicorn.co.uk>
Newsgroups linux.debian.user
Subject Re: what is the static ip address I assigned to eth0?
Date 2015-08-28 06:40 +0200
Message-ID <q2jCh-Zu-9@gated-at.bofh.it> (permalink)
References <q1ZtT-5E6-7@gated-at.bofh.it> <q228q-RU-5@gated-at.bofh.it> <q2afE-4d2-37@gated-at.bofh.it> <q2ejf-1y1-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Quoting Elimar Riesebieter (riesebie@lxtec.de):
> * David Wright <deblis@lionunicorn.co.uk> [2015-08-27 13:29 -0500]:
> 
> > Quoting Elimar Riesebieter (riesebie@lxtec.de):
> > > * rlharris@oplink.net <rlharris@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.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

what is the static ip address I assigned to eth0? rlharris@oplink.net - 2015-08-27 09:10 +0200
  [solved] Re: what is the static ip address I assigned to eth0? rlharris@oplink.net - 2015-08-27 09:30 +0200
    Re: [solved] Re: what is the static ip address I assigned to eth0? Jörg-Volker Peetz <jvpeetz@web.de> - 2015-08-27 12:50 +0200
  Re: what is the static ip address I assigned to eth0? Gene Heskett <gheskett@wdtv.com> - 2015-08-27 10:30 +0200
    Re: what is the static ip address I assigned to eth0? Renaud (Ron) OLGIATI <renaud@olgiati-in-paraguay.org> - 2015-08-27 12:10 +0200
      Re: what is the static ip address I assigned to eth0? Hans <hans.ullrich@loop.de> - 2015-08-27 12:30 +0200
        Re: what is the static ip address I assigned to eth0? David Wright <deblis@lionunicorn.co.uk> - 2015-08-27 20:40 +0200
      Re: what is the static ip address I assigned to eth0? "Thomas Schmitt" <scdbackup@gmx.net> - 2015-08-27 12:30 +0200
      Re: what is the static ip address I assigned to eth0? Gene Heskett <gheskett@wdtv.com> - 2015-08-27 18:10 +0200
  Re: what is the static ip address I assigned to eth0? Elimar Riesebieter <riesebie@lxtec.de> - 2015-08-27 12:00 +0200
    Re: what is the static ip address I assigned to eth0? David Wright <deblis@lionunicorn.co.uk> - 2015-08-27 20:40 +0200
      Re: what is the static ip address I assigned to eth0? Elimar Riesebieter <riesebie@lxtec.de> - 2015-08-28 01:00 +0200
        Re: what is the static ip address I assigned to eth0? David Wright <deblis@lionunicorn.co.uk> - 2015-08-28 06:40 +0200
          Re: what is the static ip address I assigned to eth0? Curt <curty@free.fr> - 2015-08-28 12:10 +0200
            Re: what is the static ip address I assigned to eth0? Brian <ad44@cityscape.co.uk> - 2015-08-28 13:10 +0200
              Re: what is the static ip address I assigned to eth0? Reco <recoverym4n@gmail.com> - 2015-08-28 13:50 +0200
                Re: what is the static ip address I assigned to eth0? Brian <ad44@cityscape.co.uk> - 2015-08-28 15:40 +0200
                Re: what is the static ip address I assigned to eth0? Reco <recoverym4n@gmail.com> - 2015-08-28 16:10 +0200
                Re: what is the static ip address I assigned to eth0? Brian <ad44@cityscape.co.uk> - 2015-08-28 16:50 +0200
                Re: what is the static ip address I assigned to eth0? Curt <curty@free.fr> - 2015-08-28 18:20 +0200
                Re: what is the static ip address I assigned to eth0? Brian <ad44@cityscape.co.uk> - 2015-08-28 18:40 +0200
                Re: what is the static ip address I assigned to eth0? David Wright <deblis@lionunicorn.co.uk> - 2015-08-31 02:10 +0200
                Re: what is the static ip address I assigned to eth0? Reco <recoverym4n@gmail.com> - 2015-08-31 09:00 +0200
                Re: what is the static ip address I assigned to eth0? David Wright <deblis@lionunicorn.co.uk> - 2015-08-30 05:10 +0200

csiph-web