nm-tool также выполнит задание.
$ nm-tool
NetworkManager Tool
State: connected (global)
....
IPv4 Settings:
Address: 192.168.1.110
Prefix: 24 (255.255.255.0)
Gateway: 192.168.1.1
DNS: 208.67.222.222
DNS: 208.67.220.220