gslbctl command reference¶
gslbctl is the Nexus GSLB command-line client. Run with no arguments it opens the terminal UI; with a
command it talks to the REST API of a running gslbd.
Connecting¶
| Setting | Flag | Environment | Notes |
|---|---|---|---|
| API base URL | --server URL |
GSLB_SERVER_URL |
Required for every command. The flag wins. |
| API key | — | GSLB_API_KEY |
Sent as Authorization: Bearer …. A named API key or the system key. |
Every subcommand accepts --server.
The terminal UI (no command) reads the datastore directly instead of the API:
| Flag | Default | Meaning |
|---|---|---|
--rqlite |
localhost:4001 |
rqlited HTTP API address |
--config |
— | path to the gslbd YAML config; enables editing cluster and NATS settings |
Commands¶
Each command's subcommands and flags are documented with the feature it belongs to. Run any command with no subcommand to print its usage.
| Command | What it manages | Documented in |
|---|---|---|
pools, members, services |
Pools, members and steered services | API, Tutorials |
trace |
Dry-run a query through a service's filter chain | Query Path Tracer |
routing |
Routing schema and validation of proposed chains | MCP |
domains |
Zones, SOA/NS overrides, delegation health, secondary zones | Delegated Domains, Zone Transfers |
records, txt-records |
Static DNS records, ACME TXT records | Static Records, RFC 2136 |
tsig-keys |
TSIG keys for dynamic updates and transfers | RFC 2136 |
dnssec |
Per-zone signing and key rolls | Delegated Domains |
zonesync |
Status of the zone push to Route 53 / Cloudflare / Bunny | Dual-Run |
views |
Split-horizon views | Views |
regions, topology |
Regions and the topology view | Regions |
buckets, bucket-sources |
Object-storage bucket routing | Bucket Routing |
rrl, rpz, client-block |
Rate limiting, DNS firewall, client blocking | RRL, RPZ, Client Blocking |
rum |
Real-user latency routing | RUM Routing |
signals |
Carbon/cost signal values per zone | Carbon-Aware Routing |
insights |
Per-service query anomaly detection | Insights |
rollouts, changes |
Progressive delivery, deployment gates | Progressive Delivery, Deployment Gates |
maintenance, drills |
Maintenance windows, chaos drills | Maintenance Windows, Chaos Drills |
history |
Config snapshots and restore | Config History |
sla, compliance |
Uptime history, signed compliance reports | SLA, Compliance Attestation |
traffic |
Traffic globe data | Traffic Globe |
cluster |
Cluster and DNS listener status | Installation |
tls |
ACME certificates | ACME Certificates |
geoip |
GeoIP database status and updates | GeoIP Setup |
users, roles, keys |
Users, custom roles, named API keys | Password Reset, RBAC, API Keys |
license |
License status and activation | Licensing |
bgp, redirects, tenants, metrics, usage |
See below | this page |
bgp¶
Shows whether BGP route health injection is enabled on the node the API call reaches, its local ASN and
router ID, the configured peers, and the prefixes it is announcing right now. Prints BGP: disabled when
bgp.enabled is off. BGP is configured in the config file only; see BGP.
redirects¶
gslbctl redirects list
gslbctl redirects create --source old.example.com --target https://new.example.com [--code 301] [--no-preserve-path]
gslbctl redirects delete <id>
| Flag | Default | Meaning |
|---|---|---|
--source |
— | FQDN to redirect (required) |
--target |
— | target URL (required) |
--code |
301 |
301, 302, 307 or 308 |
--no-preserve-path |
off | drop the request path and query string instead of appending them to the target |
How redirects are served: HTTP Redirects.
tenants¶
gslbctl tenants list
gslbctl tenants create --name acme [--rps-limit 500]
gslbctl tenants delete --name acme
--rps-limit 0 (the default) means no per-tenant limit beyond the license's. Tenants are addressed by name;
the CLI looks up the ID. See Multi-Tenancy.
metrics¶
Queries per second and average answer latency per service over the last 60 seconds, as seen by the node the API call reaches. For history and cluster-wide numbers use Prometheus; see Metrics.
usage¶
DNS queries and API calls per hourly period, with a total. --from and --to take YYYY-MM-DDTHH in UTC and
default to the start and end of today. --tenant reads another tenant's usage and needs a system admin key;
without it you get your own tenant's. See Usage Metering.