Skip to content

Commit aec80e9

Browse files
author
GitHub Actions Deployer
committed
Sphinx build of 91d5fe8
1 parent d989d55 commit aec80e9

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

_sources/sysadmin/qemu.rst.txt

+14
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,20 @@ with ``virsh net-edit default``. It looks like:
431431
432432
The generated dnsmasq configuration is in ``/var/lib/libvirt/dnsmasq/default.conf``.
433433

434+
For information, dnsmasq can also be directly used on the command line:
435+
436+
.. code-block:: sh
437+
438+
dnsmasq --dhcp-range=192.168.122.2,192.168.122.254,12h --interface=virbr0 \
439+
--bind-interfaces --port 1053 --keep-in-foreground --log-dhcp `
440+
--server=8.8.8.8 --dhcp-option=6,8.8.8.8
441+
442+
# To relay DNS servers on a fake systemd-resolved service, without DHCP
443+
# Other options: --no-daemon --clear-on-reload --log-queries
444+
dnsmasq --listen-address=127.0.0.53 --interface=lo --no-dhcp-interface \
445+
--no-resolv --server=1.1.1.1 --server=8.8.8.8 \
446+
--host-record=my-own-domain,192.0.2.42
447+
434448
Web links
435449
---------
436450

searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sysadmin/qemu.html

+12
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,18 @@ <h2>Libvirt integration<a class="headerlink" href="#libvirt-integration" title="
413413
</pre></div>
414414
</div>
415415
<p>The generated dnsmasq configuration is in <code class="docutils literal notranslate"><span class="pre">/var/lib/libvirt/dnsmasq/default.conf</span></code>.</p>
416+
<p>For information, dnsmasq can also be directly used on the command line:</p>
417+
<div class="highlight-sh notranslate"><div class="highlight"><pre><span></span>dnsmasq --dhcp-range<span class="o">=</span><span class="m">192</span>.168.122.2,192.168.122.254,12h --interface<span class="o">=</span>virbr0 <span class="se">\</span>
418+
--bind-interfaces --port <span class="m">1053</span> --keep-in-foreground --log-dhcp <span class="sb">`</span>
419+
--server<span class="o">=</span><span class="m">8</span>.8.8.8 --dhcp-option<span class="o">=</span><span class="m">6</span>,8.8.8.8
420+
421+
<span class="c1"># To relay DNS servers on a fake systemd-resolved service, without DHCP</span>
422+
<span class="c1"># Other options: --no-daemon --clear-on-reload --log-queries</span>
423+
dnsmasq --listen-address<span class="o">=</span><span class="m">127</span>.0.0.53 --interface<span class="o">=</span>lo --no-dhcp-interface <span class="se">\</span>
424+
--no-resolv --server<span class="o">=</span><span class="m">1</span>.1.1.1 --server<span class="o">=</span><span class="m">8</span>.8.8.8 <span class="se">\</span>
425+
--host-record<span class="o">=</span>my-own-domain,192.0.2.42
426+
</pre></div>
427+
</div>
416428
</section>
417429
<section id="web-links">
418430
<h2>Web links<a class="headerlink" href="#web-links" title="Permalink to this headline"></a></h2>

0 commit comments

Comments
 (0)