Name resolution failed on local apache2 virtual host

Hi, I have created an apache2 vhost the name of “kong-test1.test”, when I hit from the browser its works. But When I used on kong , it do not work form me. Gives me following error

{ "message": "name resolution failed" }
What I did I have created a service and give the url " kong-test1.test" and associated a simple route. Is their any way to test kong on vhosts.
I tried with and localhost it works for both cases.