<html><head></head><body><pre>Dears,</pre><pre><br></pre><pre>This is my first post in this mailing list.</pre><pre>I have browsed the archives, but I have not found a solution to my concern.</pre><pre>So I decided to open a new thread.</pre><pre>Please excuse me, if it has already been addressed here or somewhere else. And just provide me directions to the solutions.</pre><pre><br></pre><pre>I am using Fedora 27 with kernel 4.15.8-300.fc27.x86_64 and KVM libvirt 3.7.0-4.fc27.x86_64.</pre><pre><br></pre><pre>My need is to be able to have the DNS server initialized by the KVM default network to answer DNS MX query for the domain.</pre><pre>The idea is to have something similar to the below MX record lines in default network xml.</pre><pre><br></pre><pre><network></pre><pre>  <name>default</name></pre><pre>  <uuid>11111111-2222-3333-4444-555555555555</uuid></pre><pre>  <forward mode='nat'></pre><pre>    <nat></pre><pre>      <port start='1024' end='65535'/></pre><pre>    </nat></pre><pre>  </forward></pre><pre>  <bridge name='virbr0' stp='on' delay='0'/></pre><pre>  <mac address='52:54:00:00:00:01'/></pre><pre>  <domain name='example.com' localOnly='yes'/></pre><pre>  <dns enable='yes' forwardPlainNames='no'></pre><pre>    <mx domain='example.com' target='mail' priority='10'/></pre><pre>    <mx domain='example.com' target='mail_backup' priority='20'/></pre><pre>  </dns></pre><pre>  <ip address='192.168.122.1' netmask='255.255.255.0'></pre><pre>    <dhcp></pre><pre>      <range start='192.168.122.100' end='192.168.122.199'/></pre><pre>      <host mac='52:54:00:00:00:10' name='mail.example.com' ip='192.168.122.10'/></pre><pre>      <host mac='52:54:00:00:00:20' name='mail_backup.example.com' ip='192.168.122.20'/></pre><pre>    </dhcp></pre><pre>  </ip></pre><pre></network></pre><pre><br></pre><pre>So that queries such the below.</pre><pre><br></pre><pre>dig @192.168.122.1 -t MX example.com</pre><pre><br></pre><pre>give answers such as below.</pre><pre><br></pre><pre>; <<>> DiG 9.11.2-P1-RedHat-9.11.2-1.P1.fc27 <<>> -t MX example.com</pre><pre>;; global options: +cmd</pre><pre>;; Got answer:</pre><pre>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61856</pre><pre>;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1</pre><pre><br></pre><pre>;; OPT PSEUDOSECTION:</pre><pre>; EDNS: version: 0, flags:; udp: 8192</pre><pre>;; QUESTION SECTION:</pre><pre>;example.com.                  IN      MX</pre><pre><br></pre><pre>;; ANSWER SECTION:</pre><pre>example.com.         3600    IN      MX      10 mail.example.com.</pre><div><pre>example.com.              3600    IN      MX      20 mail_backup.example.com.</pre></div><div><br></div><pre>;; Query time: 558 msec</pre><pre>;; SERVER: 192.168.122.1#53(192.168.122.1)</pre><pre>;; WHEN: Fri Mar 16 16:21:00 WAT 2018</pre><pre>;; MSG SIZE  rcvd: 96</pre><pre><br></pre><pre><br></pre><pre></pre><pre>Best regards,</pre><pre><br></pre><pre>Tshimanga</pre><pre><br></pre><pre><br></pre><pre></pre></body></html>