hosts_add
Add hostname-IP mappings to the Kali container's /etc/hosts at runtime, no restart needed. Resolve target domains immediately for penetration testing.
Instructions
Add hostname(s) to /etc/hosts on the Kali container at runtime.
No container restart needed. Entries are tracked in a managed section so they can be listed, removed, or cleared independently of system entries.
Args: ip: Target IP address (e.g., '10.129.17.154') hostnames: Space or comma separated hostnames (e.g., 'target.htb www.target.htb dc01.corp.local')
Returns: Added entries and current state
Example: hosts_add(ip='10.129.17.154', hostnames='silentium.htb') hosts_add(ip='10.10.11.5', hostnames='dc01.corp.local corp.local')
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| hostnames | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |