<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
<div>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Hi Guys, I do. have a question on libvirt according dnsmasq.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text'; min-height: 20.3px;">
<span style="font-family: '.SFUIText'; font-size: 17pt;"></span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">according to the Documentation libvirt initiates for each virtual Interface a dnsmasq process which listens on that interface.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text'; min-height: 20.3px;">
<span style="font-family: '.SFUIText'; font-size: 17pt;"></span><br>
</p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Now my Setup Looks like this: in Order to rebuild a Customers Setup i created a vm with several Interfaces ( machine1) and an API Server with two Interfaces ( machine2). Two of these interfaces net_ext
 and net_int are available on both vms. One of That Interface is meant for Internet (net_ext) the other other for intercommunication (net_int). The "Internet" network is Routed via another virtual Interface (net_infra) which is unavailable on both vms. On that
 network my outgoing Gateway, ntp and DNS Server is configured in the vms.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">This makes me crazy due to the fact that dns resolution on machine1 does not work until I either kill the dnsmasq process which listens on net_infra (this makes the system-wide dnsmasq also react on that
 interface) or I make config-changes mentioned below (but that persists only until the host is rebooted.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Both vms and the host run with centos7</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text'; min-height: 20.3px;">
<span style="font-family: '.SFUIText'; font-size: 17pt;"></span><br>
</p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">My problem now is, that dnsmasq is Running on every virtual interface. And every process only listens on its own interface. All changes are undone/reset by reboot.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Of course during runtime (and with restart) i can add to "Interface=net_infra,net_ext" which temporarily fixes My Problem.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Another thing I could do is killing the dnsmasq process on the interface and use the hosts own dnsmasq config.</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text'; min-height: 20.3px;">
<span style="font-family: '.SFUIText'; font-size: 17pt;"></span><br>
</p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Without These changes on DNS resolution doesn't work within my machines ( as written DNS MUST be set on an ip on net_infra, which must not be bound to both vms).</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">So my question: How do i einher configure dnsmasq Not to Start for each Interface on libvirt-start or how do i configure the dnsmasq-config for net_infra also to listen </span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">On net_ext. chattr +i /var/lib/libvirt/dnsmasq/net_infra.conf is Not an Option!</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;"><br>
</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Thanks in advance!</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;"><br>
</span></p>
<p style="color: rgb(69, 69, 69); text-decoration: -webkit-letterpress; margin: 0px; line-height: normal; font-family: '.SF UI Text';">
<span style="font-family: '.SFUIText'; font-size: 17pt;">Erik</span></p>
</div>
</body>
</html>