> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# getServerFromDomainType

> Function getServerFromDomainType in the Baileys API.

> **getServerFromDomainType**(`initialServer`, `domainType`?): [`JidServer`](/api-reference/type-aliases/JidServer)

Defined in: [src/WABinary/jid-utils.ts:37](https://github.com/WhiskeySockets/Baileys/blob/master/src/WABinary/jid-utils.ts#L37)

## Parameters

### initialServer

`string`

### domainType?

[`WAJIDDomains`](/api-reference/enumerations/WAJIDDomains)

## Returns

[`JidServer`](/api-reference/type-aliases/JidServer)
