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
Re: How to know the current submask/dns value
nmcli device show eth0 

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: No registered users and 20 guests