I have many automated integration tests. Some of them are negative-case tests, which make sure that my system correctly reacts to being given data that it can't successfully use - such as being told to find resources on a remote host which does not exist.
However, this means I want the system under test to actually reach out and try to resolve the host, and I want it to always fail. But I don't know a way to guarantee that a given URL will result in a "Unknown Host" DNS response. I could try to make ludicrously-long and weird domain names, but that makes tests harder to read, and ultimately is still brittle in that someone could still bind something to that ludicrous domain name.
Is there a well-known "always-unresolvable" (but valid) domain or convention that I can use, without having to worry about the configuration of my (or anyone else's) DNS servers?
JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)