# Class: SrvRecord

## vertx-js/srv_record~ SrvRecord

#### new SrvRecord()

Represent a Service-Record (SRV) which was resolved for a domain.

Source:
  - vertx-js/srv_record.js, line 29

### Methods

#### name() → {string}

Returns the name for the server being queried.

Source:
  - vertx-js/srv_record.js, line 83

##### Returns:

Type
  string

#### port() → {number}

Returns the port the service is running on.

Source:
  - vertx-js/srv_record.js, line 69

##### Returns:

Type
  number

#### priority() → {number}

Returns the priority for this service record.

Source:
  - vertx-js/srv_record.js, line 41

##### Returns:

Type
  number

#### protocol() → {string}

Returns the protocol for the service being queried (i.e. "_tcp").

Source:
  - vertx-js/srv_record.js, line 97

##### Returns:

Type
  string

#### service() → {string}

Returns the service's name (i.e. "_http").

Source:
  - vertx-js/srv_record.js, line 111

##### Returns:

Type
  string

#### target() → {string}

Returns the name of the host for the service.

Source:
  - vertx-js/srv_record.js, line 125

##### Returns:

Type
  string

#### weight() → {number}

Returns the weight of this service record.

Source:
  - vertx-js/srv_record.js, line 55

##### Returns:

Type
  number