mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-28 03:47:03 +02:00
29 lines
570 B
Markdown
29 lines
570 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [dnsLookup](./bitburner.ns.dnslookup.md)
|
|
|
|
## NS.dnsLookup() method
|
|
|
|
Given a hostname, returns its IP address; or given an IP address, returns its hostname.
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
dnsLookup(host: string): string;
|
|
```
|
|
|
|
## Parameters
|
|
|
|
| Parameter | Type | Description |
|
|
| --- | --- | --- |
|
|
| host | string | Hostname/IP of target server. |
|
|
|
|
**Returns:**
|
|
|
|
string
|
|
|
|
## Remarks
|
|
|
|
RAM cost: 0.05 GB
|
|
|