Re: what is the static ip address I assigned to eth0?
Hi.
On Fri, 28 Aug 2015 12:09:08 +0100
Brian <ad44@cityscape.co.uk> wrote:
> On Fri 28 Aug 2015 at 10:01:59 +0000, Curt wrote:
>
> > On 2015-08-28, David Wright <deblis@lionunicorn.co.uk> wrote:
> > >
> > > $ 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
> >
> > curty@einstein:~$ host localhost
> > localhost has address 127.0.0.1
> > localhost has IPv6 address ::1
>
> To complete the picture:
>
> brian@desktop:~$ dig -x 127.0.0.1
>
> ; <<>> DiG 9.9.5-9-Debian <<>> -x 127.0.0.1
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7146
> ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
>
> ;; OPT PSEUDOSECTION:
> ; EDNS: version: 0, flags:; udp: 4096
> ;; QUESTION SECTION:
> ;1.0.0.127.in-addr.arpa. IN PTR
>
> ;; ANSWER SECTION:
> 1.0.0.127.in-addr.arpa. 10800 IN PTR localhost.
>
> ;; Query time: 24 msec
> ;; SERVER: 158.152.1.43#53(158.152.1.43)
> ;; WHEN: Fri Aug 28 12:03:15 BST 2015
> ;; MSG SIZE rcvd: 74
>
> host and dig use only the DNS.
>
> Elimar's suggestion to use 'host $(hostname)' will work if hostname is
> a FQDN. But it shouldn't (or wouldn't) be on a stock Debian system.
Not unless said 'stock Debian system' has 'search <domain>' stanza
in /etc/resolv.conf.
Reco
Reply to: