I’ve wanted to install pihole so I can access my machines via DNS, currently I have names for my machines in my /etc/hosts files across some of my machines, but that means that I have to copy the configuration to each machine independently which is not ideal.

I’ve seen some popular options for top-level domain in local environments are *.box or *.local.

I would like to use something more original and just wanted to know what you guys use to give me some ideas.

  • ellipsoidalellipsoid@alien.topB
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    “.home.arpa” for A records.

    I run my own CA and DNS, and can create vanity TLDs like: a.git, a.webmail, b.sync, etc for internal services. These are CNAMEs pointing to A records.

  • ohuf@alien.topB
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    RFC 6762 defines the TLDs you can use safely in a local-only context:

    *.intranet
    *.internal
    *.private
    *.corp
    *.home
    *.lan

    Be a selfhosting rebel, but stick to the RFCs!

      • Diligent_Ad_9060@alien.topB
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        https is not a problem. But you’ll need an internal CA and distributed its certificate to your hosts’ trust store.

  • TheSecondist@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I bought a .casa domain Using it internally, but also routing one service to the outside with that domain

  • alekslyse@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I use home.arpa as the base dns as that play very well and are the official standard, then I have a domain for my reverse proxy. Of course I can use that domain for the whole network, but I like to split it up

  • Aurailious@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I have 2 registered tlds in .dev and .net. I split their use using .net for personal/selfhosted sites and .dev for public facing.

  • Im1Random@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    .box since it’s recognized as valid TLD by many devices. Never use .local it’s reserved for multicast DNS.

  • AnomalyNexus@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Managed to buy a really sweet domain so using that for both mail and local domain

    currently I have names for my machines in my /etc/hosts files across some of my machines

    A better way is to set the DHCP server to resolve local too via DNS.

    So in my case proxmox.mydomain.com and proxmox both resolve to a local IP…without any need to configure IPs manually anywhere.

    On opnsense it’s under Unbound >> Register DHCP Leases

  • murdaBot@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    My TLDs are:
    .lan = management/wired vlan
    .mobile = primary wifi
    .iot = locked down for iot/home automation devices .guest = guest wifi

    The domain for each is my public .io domain.

  • phantom_eight@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I use .home for the Windows domain/internal hosts and .online for my external domain as it was cheap, and the name I wanted was available.

    To access self hosted stuff with working SSL certs,.I set up split DNS. On the internal DNS sever, I have a forward lookup zone for the .online domain with static A records for .online and all the subdomains pointing at the internal address of a caddy reverse proxy.

  • Wixely@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Being a bit of a rebel myself. I use ONLY a tld, and where subdomains would be used, I use domain.tld

    This has lead me to discover quite a few projects out there that don’t parse domain names correctly, especially when you want to use an email like admin@tld and it cries because you have no dot.