Hi everyone,
is there any command to know the submask and the DNS which are retreived by DHCP?
Thank you.
How to know the current submask/dns value
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 30
- Joined: 10 Dec 2016, 20:09
-
- Normal user
- Posts: 513
- Joined: 11 Apr 2017, 18:29
Re: How to know the current submask/dns value
nmcli device show eth0 

-
- Normal user
- Posts: 1156
- Joined: 03 Sep 2016, 23:27
- Location: Bielefeld / Germany
Re: How to know the current submask/dns value
... 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
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
Regards
Shardan
Shardan
Who is online
Users browsing this forum: Ahrefs [Bot], Anthropic Claude Bot [bot] and 14 guests