plugin-dns/plugins/mdns/resolve1
Mike Degatano 80ef4fae49
Mdns to systemd resolve (#73)
* Using systemd resolver via dbus

* Tested and working locally
2022-02-22 08:46:36 +01:00
..
README.md Mdns to systemd resolve (#73) 2022-02-22 08:46:36 +01:00
api.go Mdns to systemd resolve (#73) 2022-02-22 08:46:36 +01:00

README.md

Generating api.go

File was generated using dbus-codegen-go from the interface of org.freedesktop.resolve1. To get the XML representation of the interface, use the following:

gdbus introspect \
    --xml --system \
    --dest org.freedesktop.resolve1 \
    --object-path /org/freedesktop/resolve1

To regenerate the file from this XML, use the following:

dbus-codegen-go \
    -package=resolve1 \
    -client-only \
    -camelize \
    -prefix=org.freedesktop.resolve1 \
    -only=org.freedesktop.resolve1.Manager

Unfortunately some post-processing changes are required after generation or it won't compile. Post-generation, make the following changes:

  1. Remove "fmt" and "errors" from the generated file (issue)
  2. Change flags to in_flags in the inputs of 4 methods with errors (issue)