'No ip domain lookup' will solve your problem instance below. Eg dns
True, but only really useful until you configure the device and it can
reach a DNS server, at which point you lose the ability to resolve any
hostname, but would be very handy in a lab where DNS is never likely to
exist I must say.
I might include that into my lab template.