If the device is an apple, you could throw up a tiny webserver that impersonates captive.apple.com and responds with "Success" as well as the needed dns host
If the device is an apple, you could throw up a tiny webserver that impersonates captive.apple.com and responds with "Success" as well as the needed dns host