apxy dns
Point hostnames at chosen IPs for the proxy’s outbound connections
Synopsis
Manage DNS overrides. An override makes the proxy connect to a chosen IP for a hostname, for example to send api.example.com to a staging server, while the Host header and TLS SNI keep the original hostname.
Hosts are exact names or *.example.com wildcards (subdomains only). An exact match wins over a wildcard, and the longest wildcard wins over shorter ones. Overrides do not apply while the proxy runs with —upstream-proxy, because the upstream proxy resolves hostnames.
Options
-h, --help help for dnsOptions inherited from parent commands
--config string config file (default is ~/.apxy/config.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1)
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy - Verify code changes against the HTTP requests they send
- apxy dns list - List DNS overrides
- apxy dns remove - Remove the DNS override for a hostname
- apxy dns set - Point a hostname at an IP address
apxy dns list
List DNS overrides
apxy dns list [flags]Examples
apxy dns listOptions
--control-url string control API URL (default "http://127.0.0.1:8081")
--global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global
-h, --help help for list
-q, --quiet output only IDs, one per lineOptions inherited from parent commands
--config string config file (default is ~/.apxy/config.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1)
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy dns - Point hostnames at chosen IPs for the proxy’s outbound connections
apxy dns remove
Remove the DNS override for a hostname
apxy dns remove [flags]Examples
apxy dns remove --host api.example.comOptions
--control-url string control API URL (default "http://127.0.0.1:8081")
--global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global
-h, --help help for remove
--host string hostname or *.wildcard whose override to removeOptions inherited from parent commands
--config string config file (default is ~/.apxy/config.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1)
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy dns - Point hostnames at chosen IPs for the proxy’s outbound connections
apxy dns set
Point a hostname at an IP address
apxy dns set [flags]Examples
apxy dns set --host api.example.com --ip 10.0.0.5
apxy dns set --host "*.staging.example.com" --ip 10.0.0.6Options
--control-url string control API URL (default "http://127.0.0.1:8081")
--global use the global rules (~/.apxy/rules.json) instead of this workspace's (<worktree>/.apxy/rules.json): global rules apply to untagged traffic, such as browsers on the system proxy and iOS simulators, and to every workspace after its own. Outside a git worktree, rules are always global
-h, --help help for set
--host string hostname or *.wildcard to override
--ip string IP address to connect to insteadOptions inherited from parent commands
--config string config file (default is ~/.apxy/config.yaml)
--error-format string error output format: text|json (default "text")
--help-format string help output format: default|agent (default "default")
--no-project ignore project .apxy/ and use global ~/.apxy (env: APXY_NO_PROJECT=1)
--output string output format: agent|human (default: auto-detect via TTY)
--verbose enable verbose outputSEE ALSO
- apxy dns - Point hostnames at chosen IPs for the proxy’s outbound connections
Last updated on