How to know the current submask/dns value

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
yellowsky
Normal user
Posts: 30
Joined: 10 Dec 2016, 20:09

How to know the current submask/dns value

#1 Post by yellowsky » 29 Sep 2017, 10:06

Hi everyone,
is there any command to know the submask and the DNS which are retreived by DHCP?
Thank you.

LisaM
Normal user
Posts: 513
Joined: 11 Apr 2017, 18:29

Re: How to know the current submask/dns value

#2 Post by LisaM » 29 Sep 2017, 11:14

nmcli device show eth0 :lol:

Shardan
Normal user
Posts: 1156
Joined: 03 Sep 2016, 23:27
Location: Bielefeld / Germany

Re: How to know the current submask/dns value

#3 Post by Shardan » 30 Sep 2017, 21:14

... 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
Regards
Shardan

Post Reply

Who is online

Users browsing this forum: No registered users and 20 guests