Is there a way in Linux to make it so when the DNS client looks up information on a DNS name it would return an IP number, even if it does not exist?
I am creating a testing environment, and I want to be able to resolve domain names that do not exist.
I know I can do this in the host file however I do not want to edit this file for every domain name I try to lookup.
Further clarification on my question is this
Scenario 1: I ping
google.com dns lookup
google.com and get the real IP number.
Scenario 2: I ping
nonexstiantdoamin.com it would return local IP number instead of lookup failing.