---
title: req.subdomains
description: Return subdomains as an array.
---

<h3 id='req.subdomains'>req.subdomains</h3>

Return subdomains as an array.

```js
// Host: "tobi.ferrets.example.com"
console.dir(req.subdomains);
// => ['ferrets', 'tobi']
```
