MFWT/onlyFakeIP ? reverse-engineered prompt

Reverse engineered prompt

Build me a small DNS server that only answers domain names with a fake IP, so different domains usually get different addresses and it helps avoid connection reuse issues with SNI proxy setups.

I want it to take a domain name, run it through a hash, turn that into a stable IP under a configurable prefix, and return that as the A record. It should listen on a custom address and port, with sensible defaults, and let me change the fake IP prefix from the command line. Keep it simple and lightweight, with a clear help message and an easy way to compile or run it.

It’s okay if two different domains sometimes land on the same fake IP, but the result should be stable for the same domain. If you need current DNS library details or best practices, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab