[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hostname of the modem gateway



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


Reply to: