Article 5FKVA How to find an interface Gateway and DNS addresses?

How to find an interface Gateway and DNS addresses?

by
n00b_noob
from LinuxQuestions.org on (#5FKVA)
Hello,
On Fedora Server 33, How can I find the Gateway and DNS addresses of an interface?
I know that Fedora Server doesn't use "/etc/sysconfig/network-scripts/ifcfg-eth0" and instead of it, using "/etc/NetworkManager/system-connections/" directory. I checked it:
Code:# cat /etc/NetworkManager/system-connections/enp0s3.nmconnection
[connection]
id=enp0s3
uuid=95811d88-1adf-3720-8c29-8216fd970ec8
type=ethernet
autoconnect-priority=-999
interface-name=enp0s3
permissions=
timestamp=1616322710

[ethernet]
mac-address-blacklist=

[ipv4]
dns-search=
method=auto

[ipv6]
addr-gen-mode=eui64
dns-search=
method=auto

[proxy]But I can't see any Gateway or DNS!!!

Thank you.latest?d=yIl2AUoC8zA latest?i=18bUrdtgxWA:5Z635VGfj1Y:F7zBnMy latest?i=18bUrdtgxWA:5Z635VGfj1Y:V_sGLiP latest?d=qj6IDK7rITs latest?i=18bUrdtgxWA:5Z635VGfj1Y:gIN9vFw18bUrdtgxWA
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments