mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 14:59:16 +02:00
570 B
570 B
Home > bitburner > NS > dnsLookup
NS.dnsLookup() method
Given a hostname, returns its IP address; or given an IP address, returns its hostname.
Signature:
dnsLookup(host: string): string;
Parameters
| Parameter | Type | Description |
|---|---|---|
| host | string | Hostname/IP of target server. |
Returns:
string
Remarks
RAM cost: 0.05 GB