Route my service object as a subdomain instead of path

I am using kong 1.1.x latest version. Is there a way to route my service using subdomain instead of path.
Instead of I could route my service as when I access it in the browser.

You can set up a wild-card DNS to * and then use custom nginx template to route to your desired destination.

I tried using the wild-card in route but, when I access the dns ( in the browser the dns is not detected. btw,
this hostname ( is map in etc/hosts. So I am thinking if that is why the wild-card dns does not match. Thanks