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


Groups > linux.debian.user > #190524

Re: hostname of the modem gateway

From john doe <johndoe65534@mail.com>
Newsgroups linux.debian.user
Subject Re: hostname of the modem gateway
Date 2018-01-02 07:50 +0100
Message-ID <v3oyB-5dr-7@gated-at.bofh.it> (permalink)
References <v3hGO-Ao-7@gated-at.bofh.it> <v3njb-4ul-1@gated-at.bofh.it> <v3o5z-51F-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 1/2/2018 7:15 AM, David Wright wrote:
> On Tue 02 Jan 2018 at 06:25:29 (+0100), john doe wrote:
>> On 1/2/2018 12:12 AM, Max Power wrote:
>>> Hi guys,
>>> with the new release of Debian 'Stretch', the route command has been replaced
>>> but what other command returns the hostname of the modem/router gateway...?
>>> # route
>>> gateway = home.telecomitalia.it
>>> # ip route
>>> gateway = 192.168.1.1
> 
> $ ip -r r
> 
> You need to ask for the resolver with -r.
> 
> man ip-route documents the arguments/commands, but you need
> man ip for the options (which are common).
> 
>>>
>>> Thanks for reply, Max Power.
>>>
>>
>> You could try the host(1) utility:
>>
>> $ host 192.168.1.1
>>
>> https://linux.die.net/man/1/host
> 
> $ host 192.168.1.1
> Host 1.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
> $
> 

Looks like 192.168.1.1 is not your default route.

-- 
John Doe

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


Thread

hostname of the modem gateway Max Power <debian@cpnetserver.net> - 2018-01-02 00:30 +0100
  Re: hostname of the modem gateway john doe <johndoe65534@mail.com> - 2018-01-02 06:30 +0100
    Re: hostname of the modem gateway David Wright <deblis@lionunicorn.co.uk> - 2018-01-02 07:20 +0100
      Re: hostname of the modem gateway Tom Furie <tom@furie.org.uk> - 2018-01-02 07:50 +0100
        Re: hostname of the modem gateway john doe <johndoe65534@mail.com> - 2018-01-02 08:00 +0100
          Re: hostname of the modem gateway Tom Furie <tom@furie.org.uk> - 2018-01-02 08:10 +0100
            Re: hostname of the modem gateway john doe <johndoe65534@mail.com> - 2018-01-02 08:20 +0100
              Re: hostname of the modem gateway john doe <johndoe65534@mail.com> - 2018-01-02 09:00 +0100
                Re: hostname of the modem gateway David Wright <deblis@lionunicorn.co.uk> - 2018-01-03 11:10 +0100
      Re: hostname of the modem gateway john doe <johndoe65534@mail.com> - 2018-01-02 07:50 +0100
  Re: hostname of the modem gateway Tom Furie <tom@furie.org.uk> - 2018-01-02 09:30 +0100
  Re: hostname of the modem gateway Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-02 15:40 +0100
  Re: hostname of the modem gateway Greg Wooledge <wooledg@eeg.ccf.org> - 2018-01-02 16:10 +0100
  Re: hostname of the modem gateway Glenn English <ghe2001@gmail.com> - 2018-01-02 16:10 +0100

csiph-web