Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/michaelbeaumont/coredns-libvirt

Resolve names to libvirt domain names and hostnames
https://github.com/michaelbeaumont/coredns-libvirt

coredns coredns-plugin libvirt

Last synced: 2 months ago
JSON representation

Resolve names to libvirt domain names and hostnames

Awesome Lists containing this project

README

        

# coredns-libvirt

This plugin allows CoreDNS to resolve names matching libvirt domains. It is
similar to the `nss` plugin `libvirt_guest`.

## Usage

Currently this plugin can only be used in the `guest` mode.

### Guest name

The functionality of `libvirt guest` is analogous to the `libvirt_guest` `nss`
plugin, where we look for a match on the name of the libvirt domain, not
necessarily a hostname.

### Zones

If your zone isn't root `.`, you'll likely want to include the `trim_suffix`
directive so you search for the correct name in your guests.

### Filtering by network

If only some of the IPs assigned to the guests are reachable, you can filter
them with the `keep` directive.

## Example

```
vm:1053 {
libvirt guest {
trim_suffix vm
keep 10.101.0.0/24
}
}
```