[libvirt] [PATCH] Add forwarders attribute to <dns /> element.

Laine Stump laine at laine.org
Tue Sep 3 10:15:52 UTC 2013


On 09/02/2013 07:50 AM, Diego Woitasen wrote:
> Useful to set custom forwarders instead of using the contents of
> /etc/resolv.conf. It helps me to setup dnsmasq as local nameserver to resolv VM
> domain names from domain 0, when domain option is used.
>
> Signed-off-by: Diego Woitasen <diego.woitasen at vhgroup.net>
> ---
>  src/conf/network_conf.c                            | 34 +++++++++++++++++++++-
>  src/conf/network_conf.h                            |  1 +
>  src/network/bridge_driver.c                        |  8 +++++
>  .../nat-network-dns-forwarders.conf                | 15 ++++++++++
>  .../nat-network-dns-forwarders.xml                 |  9 ++++++
>  tests/networkxml2conftest.c                        |  1 +
>  6 files changed, 67 insertions(+), 1 deletion(-)
>  create mode 100644 tests/networkxml2confdata/nat-network-dns-forwarders.conf
>  create mode 100644 tests/networkxml2confdata/nat-network-dns-forwarders.xml

You also need to add documentation  describing the new element (I agree
with danpb's suggestion) to docs/formatnetwork.html.in, and expand the
grammar in docs/schemas/network.rng.




More information about the libvir-list mailing list