You are not logged in.

#1 2021-04-14 11:38:27

christooss
Member
Registered: 2008-08-18
Posts: 71

[SOLVED] How do y show DNS and gatewy info the network device with ip

I'm used to using ifconfig for this but with it being deprecated I don't know how to check what are DNS's my network interface has.

ip addr

Shows only IP and broadcast.

My network is DHCP through systemd-network and resolve. Mind you I have only enabled these services so there might be something else missing. I know how to set up DNSs manually through conf files but don't know how to check existing settings.

This might not be an appropriate forum to ask these questions but searching on the internet with keywords IP, DNS, LINUX, etc is very unfruitful. But I'm missing an argument that would show all info for the device.

Thanks in advance.

Last edited by christooss (2021-04-14 20:11:22)

Offline

#2 2021-04-14 11:45:24

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [SOLVED] How do y show DNS and gatewy info the network device with ip

resolvectl; ip -c route

Last edited by Mr.Elendig (2021-04-14 11:46:03)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2021-04-14 16:10:10

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,911

Re: [SOLVED] How do y show DNS and gatewy info the network device with ip

ip route shows only ipv4 details by default .

For ipv6 routing details you need to add -6  .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2021-04-14 20:07:54

christooss
Member
Registered: 2008-08-18
Posts: 71

Re: [SOLVED] How do y show DNS and gatewy info the network device with ip

Thanks. Just the info I needed.

Offline

Board footer

Powered by FluxBB