Logo
Explore Help
Sign In
External/libvirt
1
0
Fork 0
You've already forked libvirt
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-01-13 08:05:16 +00:00
Code Issues Packages Projects Releases Wiki Activity
libvirt/tests/networkxml2xmlout/nat-network-dns-forwarder-no-resolv.xml

12 lines
302 B
XML
Raw Normal View History

network: don't add "no-resolv" if we still need DNS servers from resolv.conf It was pointed out here: https://bugzilla.redhat.com/show_bug.cgi?id=1331796#c4 that we shouldn't be adding a "no-resolv" to the dnsmasq.conf file for a network if there isn't any <forwarder> element that specifies an IP address but no qualifying domain. If there is such an element, it will handle all DNS requests that weren't otherwise handled by one of the forwarder entries with a matching domain attribute. If not, then DNS requests that don't match the domain of any <forwarder> would not be resolved if we added no-resolv. So, only add "no-resolv" when there is at least one <forwarder> element that specifies an IP address but no qualifying domain.
2017-03-17 12:25:43 -04:00
<network>
<name>default</name>
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9c</uuid>
<forward mode='nat'/>
<bridge name='virbr0' stp='on' delay='0'/>
<dns>
<forwarder domain='example.com' addr='192.168.1.1'/>
</dns>
<ip address='192.168.122.1' netmask='255.255.255.0'>
</ip>
</network>
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.1 Page: 581ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API