[feature request] add special hosts for gateway and dns server

Bug #353077 reported by Peter Rullmann
2
Affects Status Importance Assigned to Milestone
Link Monitor Applet
New
Undecided
Unassigned

Bug Description

Please add two options to enable special hosts to monitor: the standard gateway and the dns-server.
These hosts are interesting for quick diagnosis if the internet connection is down. But their address is dependant on the network, the computer is connected to, so they can't be added to the Link Monitor Prefs Hosts list at the moment.
The standard gateway ip address could be obtained eg. by running "route -n | egrep ^0.0.0.0 | cut -b 17-31"
The first dns-server ip address could be obtained eg. by running "grep ^nameserver /etc/resolv.conf | head -n 1 | cut -b 12-"
But I am sure, there are more elegant ways to obtain these IPs.

Thanks for reviving the Link Monitor Applet idea!

Revision history for this message
Joachim Breitner (nomeata) wrote :

Hi Peter,

at least for the current gateway, you can install libnss-gw-name and configure l-m-a to ping gateway.localhost – that’s what I’m doing. And the same package could provide names for the DNS servers, if someone adds support for that.

Gruß,
Joachim

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.