]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
network: backend functions for updating network dns host/srv/txt
authorLaine Stump <laine@laine.org>
Mon, 12 Nov 2012 21:18:02 +0000 (16:18 -0500)
committerLaine Stump <laine@laine.org>
Tue, 11 Dec 2012 10:49:44 +0000 (05:49 -0500)
commitfc19a005975f2ebc384fc9a5fdfa79e574941a8a
treea8024f479bcd57231698c70bf953e5bed0c98b37
parentab297becc150fd1b8b2f314eef855db5945cee2c
network: backend functions for updating network dns host/srv/txt

These three functions are very similar - none allow a MODIFY
operation; you can only add or delete.

The biggest difference between them (other than the data itself) is in
the criteria for determining a match, and whether or not multiple
matches are possible:

1) for HOST records, it's considered a match if the IP address or any
of the hostnames of an existing record matches.

2) for SRV records, it's a match if all of
domain+service+protocol+target *which have been specified* are
matched.

3) for TXT records, there is only a single field to match - name
(value can be the same for multiple records, and isn't considered a
search term), so by definition there can be no ambiguous matches.

In all three cases, if any matches are found, ADD will fail; if
multiple matches are found, it means the search term was ambiguous,
and a DELETE will fail.

The upper level code in bridge_driver.c is already implemented for
these functions - appropriate conf files will be re-written, and
dnsmasq will be SIGHUPed or restarted as appropriate.
src/conf/network_conf.c