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.


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.