[PATCH 0/2] Network: Add TXT record and hosts support for DNS on virtual network

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
this is the patch to introduce the TXT record support for the DNS
service on the virtual network. This can be defined using the
txt-record subelement in the dns element of the network XML
description.

First patch is adding TXT record support to the DNS service on
the virtual network and the second patch is adding support for
defining hosts for the DNS service.

The new definition syntax is:

          <dns>
            <txt-record name="example name" value="example value" />
            <host ip='192.168.122.1'>
              <hostname>gateway</hostname>
              <hostname>host</hostname>
            </host>
          </dns>

Where multiple host elements can be defined to put the aliases
for specified IP addresses.

The patch series has been tested for the configuration and it
was working fine and also RelaxNG schema with the tests have
been both altered to add test cases to test those patches.

Both of the patches passed make, syntax checking and all the
tests.

Michal

Signed-off-by: Michal Novotny <minovotn@xxxxxxxxxx>

Michal Novotny (2):
  Network: Add TXT record support for virtual DNS service
  Network: Add support for DNS hosts definition

 docs/formatnetwork.html.in                         |   37 +++++-
 docs/schemas/network.rng                           |   20 +++
 src/conf/network_conf.c                            |  148 ++++++++++++++++++++
 src/conf/network_conf.h                            |   26 ++++
 src/network/bridge_driver.c                        |   93 ++++++++++++
 tests/networkxml2xmlin/nat-network-dns-hosts.xml   |   27 ++++
 .../nat-network-dns-txt-record.xml                 |   24 +++
 tests/networkxml2xmlout/nat-network-dns-hosts.xml  |   27 ++++
 .../nat-network-dns-txt-record.xml                 |   24 +++
 tests/networkxml2xmltest.c                         |    2 +
 10 files changed, 427 insertions(+), 1 deletions(-)
 create mode 100644 tests/networkxml2xmlin/nat-network-dns-hosts.xml
 create mode 100644 tests/networkxml2xmlin/nat-network-dns-txt-record.xml
 create mode 100644 tests/networkxml2xmlout/nat-network-dns-hosts.xml
 create mode 100644 tests/networkxml2xmlout/nat-network-dns-txt-record.xml

-- 
1.7.3.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]