This page will help to generate a hostname for use with testing for dns rebinding vulnerabilities in software.

To use this page, enter two ip addresses you would like to switch between. The hostname generated will resolve randomly to one of the addresses specified with a very low ttl.

All source code available here.