setDns only overrides the IP address for a domain that already exists (it still does the actual lookup to make sure the timing is right). If you want to use a domain that doesn’t exist you’ll need a combination of setDns and setDnsName (to have the dns lookup lookup the other name instead).