I guess you can set a host on your /etc/hosts
to redirect all your pterodactyl.example.com to a local ip. Also, if you need access from other computers on the local network, I think you can set up a local DNS server (such as PiHole or AdGuard Home) to reach the same solution but for all address running though your DNS server
Does any of these in https://alternativeto.net/software/pastebin/?license=opensource works for you?