Get the DNS resolvers of an interface
GET/api/node/:hostname/network/dns/:interface_name
Reads the servers and the search domains of the interface: resolvectl on Linux, with resolv.conf on a host that has no resolvers per interface, such as a container, and scutil on macOS.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 409
- 500
Each target host's result.
The request is not valid.
Unauthorized - API key required
Forbidden - Insufficient permissions
The host has no dns with that interface_name.
osapi did not deploy the item, so it does not change it, or the host does not have a program that the method needs.
An error on the controller.