Page 1 of 1

How to know the current submask/dns value

Posted: 29 Sep 2017, 10:06
by yellowsky
Hi everyone,
is there any command to know the submask and the DNS which are retreived by DHCP?
Thank you.

Re: How to know the current submask/dns value

Posted: 29 Sep 2017, 11:14
by LisaM
nmcli device show eth0 :lol:

Re: How to know the current submask/dns value

Posted: 30 Sep 2017, 21:14
by Shardan
... which works only under linux with the network manager package installed.

Ubuntu has this by default, other distribuitions like SuSE or Debian/Raspian have not.

If you run linux without network manager
use siply "ifconfig" for the network card config.

The configured DNS can be read from a file with "cat /etc(resolv.conf".
Much easier is a " nslookup microsoft com".

Under windows (yes still some peole using it...)
open a cmd window (open start and type "cmd" to get it).
In the cmd windows type "ipconfig /all".

Regards
Shardan