A while back I registered privlab.xyz for of my projects. A side job of this project is publicly sharing privlab.xyz to everybody learning and playing with IT, by having a public private DNS setup Here are the details on what it does.
One challenge when learning things is that a top down approach is usually hard to follow, as a lot of low level setup is required to have everything available. In return, when learning bottom up, one easily gets stuck on details. One of these small things is enjoying DNS. While having DNS from the start would be awesome, it takes a little to get there. My approach for trainings is to provide a running DNS server and hand out a table with names and IP addresses. The students then get to setup services, use DNS from the start and then shift things over to their own DNS server when they get there. This allows them to make sure their services work, have the correct names configured and only then add the next variable. Doing something similar in a home lab is a little bit more challenging, unless you send somebody a pre-configured VM or a box / device or use privlab.xyz.
DNS Entry
The DNS entries for privlab.xyz are named after typical tools and directly point at private IP addresses. As such, when giving a host the applicable name, any system will be able to resolve the correct IP address and then access the system. The entries offer options in 192.168.253/24, 172.30.253.0/24 and 10.10.253.0/24.
| Hostname | IP |
|---|---|
| client1.192.privlab.xyz | 192.168.253.51 |
| client2.192.privlab.xyz | 192.168.253.52 |
| client3.192.privlab.xyz | 192.168.253.53 |
| client4.192.privlab.xyz | 192.168.253.54 |
| client5.192.privlab.xyz | 192.168.253.55 |
| router.192.privlab.xyz | 192.168.253.100 |
| dns1.192.privlab.xyz | 192.168.253.101 |
| dns2.192.privlab.xyz | 192.168.253.102 |
| ntp.192.privlab.xyz | 192.168.253.105 |
| docker-one.192.privlab.xyz | 192.168.253.110 |
| docker-two.192.privlab.xyz | 192.168.253.111 |
| mail.192.privlab.xyz | 192.168.253.120 |
| nextcloud.192.privlab.xyz | 192.168.253.150 |
| netbox.192.privlab.xyz | 192.168.253.151 |
| wiki.192.privlab.xyz | 192.168.253.152 |
| server1.192.privlab.xyz | 192.168.253.161 |
| server2.192.privlab.xyz | 192.168.253.162 |
| server3.192.privlab.xyz | 192.168.253.163 |
| server4.192.privlab.xyz | 192.168.253.164 |
| server5.192.privlab.xyz | 192.168.253.165 |
Additionally the *.int192.privlab.xyz is resolved by ns192.privlab.xyz, which in return points to 192.168.252.101.
The full set of entries can be found on https://security-bits.de/privlabdns and on https://privlab.xyz .
And Now?
Have fun actually having DNS in your next simple lab setup.