• 1 Post
  • 482 Comments
Joined 1 year ago
cake
Cake day: July 21st, 2023

help-circle
  • NeoNachtwaechter@lemmy.worldtoSelfhosted@lemmy.worldDNS?
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    I have 3 separate machines:

    1. That fat home server with NAS and VM’s etc.

    2. A Pi serving my smart home.

    3. A plastic router with OpenWrt doing DNS and (I like to believe) some security, and giving WiFi to many small devices.

    They all run 24/7 but I just don’t want everything to be dead and dark when one machine is down for whatever reason.







  • This will be the spec for my next server. The current one is smaller, and several years old

    I have several different requirements for my server, for example, my son does video editing and needs lots of storage. I want to experiment with more VM’s and containers, therefore RAM and threads.

    Do you think people just beginning could get buy on 4 cores and 8 GB RAM for a while?

    For most people I think they just want to have some NAS and a reliable machine. But please grant them 16 GB, otherwise they would ask why their laptop has so much more than their server :-)




  • Because the information necessary for that is already available from the subnet mask WITHOUT the bitwise AND, e.g., with 255.255.255.0 or 1111 1111.1111 1111.1111 1111.0000 0000, you count the amount of 1s, which in this case is 24 and corresponds to that appendix in the CIDR notation. At this point, you already know that you only need to consider those first 24 bits from the IP address, making the subsequent bitwise AND redundant.

    On a technical level, the bitwise operation is all that is needed. It is one calculation of the simplest kind. A CPU can do it in 1 tick. That’s why they invented it this way.

    The other way that you described is the super extra ultra lengthy complicated - and maybe redundant - thing.