[PATCH 0/3] network: Add support for local PTR domains

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

 



I run a system dnsmasq to be able to forward specific DNS requests to
specific servers. And I have it configured for both forward and reverse
lookups. Another dnsmasq is started for a virtual network with domain
"virt". The system dnsmasq knows it needs to forward any requests for
the "virt" domain and corresponding PTR domain to the dnsmasq started by
libvirt. The problem is dnsmasq forwards queries for unknown names to
the upstream name server (which is the system instance in my case). One
can get nice endless loops of DNS requests pretty easily. Forward loops
can be avoided by specifying localOnly='yes', but there was no way to
avoid reverse lookup loops. And this is what I'm trying to address in
the following patches.

Jiri Denemark (3):
  conf: Make virNetworkIPDefParseXML a little bit saner
  util: Introduce virSocketAddrPTRDomain
  network: Add support for local PTR domains

 docs/formatnetwork.html.in                      |  37 ++++++--
 src/conf/network_conf.c                         | 108 +++++++++++++++++++-----
 src/conf/network_conf.h                         |   4 +
 src/libvirt_private.syms                        |   1 +
 src/network/bridge_driver.c                     |  47 +++++++++++
 src/util/virsocketaddr.c                        |  85 +++++++++++++++++++
 src/util/virsocketaddr.h                        |   9 ++
 tests/networkxml2confdata/ptr-domains-auto.conf |  20 +++++
 tests/networkxml2confdata/ptr-domains-auto.xml  |  21 +++++
 tests/networkxml2confdata/ptr-domains.conf      |  24 ++++++
 tests/networkxml2confdata/ptr-domains.xml       |  24 ++++++
 tests/networkxml2conftest.c                     |   2 +
 12 files changed, 353 insertions(+), 29 deletions(-)
 create mode 100644 tests/networkxml2confdata/ptr-domains-auto.conf
 create mode 100644 tests/networkxml2confdata/ptr-domains-auto.xml
 create mode 100644 tests/networkxml2confdata/ptr-domains.conf
 create mode 100644 tests/networkxml2confdata/ptr-domains.xml

-- 
2.11.0

--
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]
  Powered by Linux