Network commands  [Solved]

Message
Author
nirav
Posts: 44
Joined: Fri Nov 10, 2023 1:00 pm

Network commands

#1 Post by nirav »

Merry Christmas,

I can't seem to find correct networking commands compatible with MX running systemvint, I tried to run resolvectl but it states command not found and need systemd-resolved installed which will not work, this is just one example I'm sure there are lot more commands which I will not be able to use. Is there different commands compatible with systemvint which I can utilize? I have tried searching but can't seem to find it.

Any chance of going with systemd in next release?

Thanks
Thank you!
Nirav :cool:

User avatar
CharlesV
Global Moderator
Posts: 7392
Joined: Sun Jul 07, 2019 5:11 pm

Re: Network commands

#2 Post by CharlesV »

You should be able to run systemd just by selecting Advanced on grub and then choosing the systemd choice.

What you are probably looking for is systemd-resolve for sysvint?
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

nirav
Posts: 44
Joined: Fri Nov 10, 2023 1:00 pm

Re: Network commands

#3 Post by nirav »

CharlesV wrote: Mon Dec 25, 2023 11:54 am You should be able to run systemd just by selecting Advanced on grub and then choosing the systemd choice.

What you are probably looking for is systemd-resolve for sysvint?
Yes, I can run systemd from advance options but I don't want it to cause issues since default OS uses systemvint, if you recommend it is okay to run then I don't mind trying. Will it cause any issues with all software and configuration already installed?

Is there a systemd-resolve for sysvint?
Thank you!
Nirav :cool:

Charlie Brown

Re: Network commands

#4 Post by Charlie Brown »

nirav wrote: Mon Dec 25, 2023 12:22 pm... but I don't want it to cause issues since default OS uses systemvint, if you recommend it is okay to run then I don't mind trying. Will it cause any issues with all software and configuration already installed?..
Nope, otherwise MX developers wouldn't (never ever) provide such an option, and many MX users use that, no matter for they like it or just for they need it for some software ...

You can even make it the default boot option with "MX Boot Options" - "Boot to" .. select from drop-down, Apply.

"Don't worry, Be happy" :)

(Just , there won't be systemd on live session even if you create snapshots when on systemd , and that's not a bug/harm etc..)

User avatar
CharlesV
Global Moderator
Posts: 7392
Joined: Sun Jul 07, 2019 5:11 pm

Re: Network commands

#5 Post by CharlesV »

And exactly what networking things are you trying to do?

I run systemd very rarely and it always works fine. But I have not found anything that I cannot get done in sysvint either.
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

nirav
Posts: 44
Joined: Fri Nov 10, 2023 1:00 pm

Re: Network commands

#6 Post by nirav »

If I want to flush/renew DNS records how can I do that? and can you recommend any site where there are network commands cheat sheet which will work with syvint.
Thank you!
Nirav :cool:

User avatar
Gabriel_M
Posts: 161
Joined: Tue Aug 13, 2019 7:21 pm

Re: Network commands

#7 Post by Gabriel_M »

Code: Select all

Linux  commands         Olds                            News

TASK                    IFCONFIG/ROUTE                  IP
Show all NICs           ifconfig                        ip addr show
Show specific NIC       ifconfig eth0                   ip addr show eth0
Disable NIC             ifconfig eth0 down              ip link set eth0 down
Enable NIC ifconfig     eth0 up                         ip link set eth0 up
Assign IP ifconfig      eth0 [IP] netmask [NM]          ip addr [IP]/[CIDR] dev eth0
Show routing table      route / netstat -r              ip route
Set standard route      route add default gw [IP] eth0  ip route add default via [IP

TASK                    NSLOOKUP                        DIG
Forward lookup          nslookup google.de              dig google.de / dig +short google.de
Reverse lookup          nslookup [IP]                   dig -x [IP]  /  dig +short -x [IP]
Use specific DNS server nslookup google.de [DNS]        dig @[DNS] google.de / dig @[DNS] +short google.de
Ask for MX records      nslookup -query=mx google.de    dig google.de MX  / dig +short google.de MX
Specific timeout        nslookup -timeout=42 google.de  dig google.de +time=42 / dig +short google.de +time=42
Desktop Mobo: BIOSTAR model: B450MHP
CPU AMD Ryzen 3 3200G
RAM: 8 GiB 2667 MHz DDR4
Device-1: AMD Picasso/Raven 2
STORAGE:Gigabyte model: GP-GSTFS31480GNTD size: 447.13 GiB
DISTRO: MX-23.6_x64 Libretto XFCE 4.20

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: Network commands  [Solved]

#8 Post by l0dr3 »

nirav wrote: Mon Dec 25, 2023 7:17 pm If I want to flush/renew DNS records how can I do that?
from my archived debian linux general notes ...

Debian: DNS resolver(s) and cache(s)

https://unix.stackexchange.com/question ... y-on-linux

Plain Vanilla Debian (and all MX) comes with NO DEFAULT DNS-RESOLVER and NO DEFAULT DNS-CACHE !!

https://www.debian.org/releases/bookwor ... d-resolved
"MQ: Installing this package will automatically give systemd-resolved control of /etc/resolv.conf.
Note that systemd-resolved was not, and still is not, the default DNS resolver in Debian."
https://www.freedesktop.org/software/sy ... rvice.html

Options for custom local DNS services are:
apt policy systemd-resolved
systemd-resolved:
Installed: (none)
Candidate: 1:252.6-1mx23+1

apt policy bind9
bind9:
Installed: (none)
Candidate: 1:9.18.19-1~deb12u1

apt policy dnscache
dnscache:
Installed: (none)
Candidate: 1:1.05-15+b2

apt policy dnsmasq
dnsmasq:
Installed: (none)
Candidate: 2.89-1

apt policy unbound
unbound:
Installed: (none)
Candidate: 1.17.1-2+deb12u1

apt policy resolvconf
resolvconf:
Installed: (none)
Candidate: 1.91+nmu1

apt policy openresolv
openresolv:
Installed: (none)
Candidate: 3.12.0-3
ff references and procedures ..
https://unix.stackexchange.com/question ... -debian-11
https://serverfault.com/questions/11453 ... -debian-12
https://www.howtoforge.com/how-to-set-u ... on-debian/
https://www.howtoforge.com/how-to-set-u ... debian-12/
https://www.linuxbabe.com/debian/dns-re ... ster-bind9
https://vitux.com/two-ways-to-flush-the ... on-debian/


HTH l0dr3

nirav
Posts: 44
Joined: Fri Nov 10, 2023 1:00 pm

Re: Network commands

#9 Post by nirav »

Thank you l0dr3 for comprehensive guide greatly appreciated.
Thank you!
Nirav :cool:

User avatar
l0dr3
Posts: 463
Joined: Wed Jun 28, 2023 11:06 am

Re: Network commands

#10 Post by l0dr3 »

nirav wrote: Tue Dec 26, 2023 2:14 pm Thank you l0dr3 for comprehensive guide greatly appreciated.
Glad to be of help :happy:

ATM i'm in the middle of a transition from an ancient (but still in use!) Windows HomeServer (2011) to an All-in-One Debian/MX based HomeLabServer, that features all the classic services: ICS, NAS, VM/VDI, HTPC and of course: DNS/DHCP services.

I decided to go a slightly modified 'Pi-Hole-Way', but this time, using 'unbound' instead of 'dnsmasq' for DNS. Maybe of interest for you, here are some links to Tutorials, HowTos and WiKis, i 'borrowed' my ideas from ...

https://docs.pi-hole.net/guides/dns/unb ... s-solution
https://wiki.archlinux.org/title/unbound
https://www.howtoforge.com/how-to-set-u ... on-debian/
https://www.ricmedia.com/tutorials/set- ... esolv-conf

greetz l0dr3

Post Reply

Return to “General”