Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

libvirt DNS disabled at boot

Featured Replies

Libvirt runs a DNS server on interface virbr0 that can be disabled with "virsh net-edit default" and adding <dns enable='no'/> to the XML.  What is the best way to make this the default at start up? Thanks

I think you can add that command to the go file located under the config directory of the flash device.  That should make that happen each time at boot.

  • 2 years later...

For those coming across this in a Google search (like me), the above pointed me in the right direction and I was able to get this to work by adding the following to my /boot/config/go file:

# Disable DNS on KVM so PiHole container can use port 53
# https://forums.unraid.net/topic/81356-libvirt-dns-disabled-at-boot/
EDITOR='sed -i '"'"'s/<\/network>/  <dns enable="no"\/>\n<\/network>/g'"'"'' virsh net-edit default

 

After rebooting, the above allows me to bind a PiHole Docker container to port 53 (without having to give it its own IP address on my local network). I tried using net-update first, but was getting the error "unrecognized section name 'dns'". This hackery of using sed as the editor for net-edit was the only way I was able to get this to work.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.