ipconfig is a Windows program - the closest for linux is ifconfig, but contrary to what others (including the accepted "answer") are saying, it is not the same, and does not give the same output at all.
One of the key missing pieces of information in ifconfig is the DNS addresses; they are not there, and there's not an easy way to find that out. On my system, I have an alias to show some information like that:
nmcli dev list iface eth0 | grep IP4
This will list most of the information I usually want to see. On my system, it shows:
$ nmcli dev list iface eth0 | grep IP4
IP4-SETTINGS.PREFIX: 24 (255.255.255.0)
Note that you may need to use a different designation for the network, such as
eth2, etc. If you get an error about a device not found, try changing this.
Also note the accepted "answer" is also incorrect in that you do not need to use "sudo" for this command.