Skip to main content

Get

Get the node's DNS config:

$ osapi client node network dns get --interface-name eth0

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME SERVERS SEARCH DOMAINS
server1 192.168.0.247, 2607:f428::1 example.com

When targeting all hosts:

$ osapi client node network dns get --interface-name eth0 --target _all

Job ID: 550e8400-e29b-41d4-a716-446655440000

HOSTNAME SERVERS SEARCH DOMAINS
server1 192.168.0.247, 2607:f428::1 example.com
server2 8.8.8.8, 1.1.1.1 local

Target by label to query a group of servers:

$ osapi client node network dns get --interface-name eth0 --target group:web

Flags

FlagDescriptionDefault
--interface-nameName of the network interface to query DNS forrequired
-T, --targetTarget: _any, _all, hostname, or label (group:web)_any