Dnsmasq Ubuntu 18.04

Dnsmasq Ubuntu 18.04

Dnsmasq is available in the official package repository of Ubuntu. So, you can easily install it using the APT package manager. Ubuntu uses systemd-resolved by default to manage DNS servers and DNS caching. Before you install dnsmasq, you must stop and disable systemd-resolved services. Otherwise, you won’t be able to run dnsmasq at all. The remote Ubuntu 16.04 LTS / 18.04 LTS / 20.04 LTS / 20.10 host has packages installed that are affected by a vulnerability as referenced in the USN-4698-2 advisory. Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Ubuntu 18.04 Dnsmasq Networkmanager

Publishing history

DateStatusTargetPocketComponentSectionPriorityPhased updatesVersion
2021-06-02 13:58:45 UTCPublishedUbuntu Bionic amd64updatesuniversenetOptional2.79-1ubuntu0.4
  • Published
  • Copied from Primary Archive for Ubuntu
  • Originally built as ubuntu bionic-release amd64 in PPA for Ubuntu Security Proposed
2021-06-02 13:23:30 UTCPublishedUbuntu Bionic amd64securityuniversenetOptional2.79-1ubuntu0.4
  • Published
  • Copied from ubuntu bionic-release amd64 in PPA for Ubuntu Security Proposed
2021-06-02 13:58:50 UTCSupersededUbuntu Bionic amd64updatesuniversenetOptional2.79-1ubuntu0.3
  • Removed from disk .
  • Removal requested .
  • Superseded by amd64 build of dnsmasq 2.79-1ubuntu0.4 in ubuntu bionic RELEASE
  • Published
  • Copied from Primary Archive for Ubuntu
  • Originally built as ubuntu bionic-release amd64 in PPA for Ubuntu Security Proposed
2021-06-02 13:24:15 UTCSupersededUbuntu Bionic amd64securityuniversenetOptional2.79-1ubuntu0.3
  • Removed from disk .
  • Removal requested .
  • Superseded by amd64 build of dnsmasq 2.79-1ubuntu0.4 in ubuntu bionic RELEASE
  • Published
  • Copied from ubuntu bionic-release amd64 in PPA for Ubuntu Security Proposed
2021-02-24 14:32:27 UTCSupersededUbuntu Bionic amd64updatesuniversenetOptional2.79-1ubuntu0.2
  • Removed from disk .
  • Removal requested .
  • Superseded by amd64 build of dnsmasq 2.79-1ubuntu0.3 in ubuntu bionic RELEASE
  • Published
  • Copied from Primary Archive for Ubuntu
  • Originally built as ubuntu bionic-release amd64 in Private PPA for Ubuntu Security Team
2021-02-24 13:53:47 UTCSupersededUbuntu Bionic amd64securityuniversenetOptional2.79-1ubuntu0.2
  • Removed from disk .
  • Removal requested .
  • Superseded by amd64 build of dnsmasq 2.79-1ubuntu0.3 in ubuntu bionic RELEASE
  • Published
  • Copied from ubuntu bionic-release amd64 in Private PPA for Ubuntu Security Team
2018-04-03 15:10:06 UTCPublishedUbuntu Bionic amd64releaseuniversenetOptional2.79-1
  • Published
  • Copied from ubuntu bionic-proposed amd64 in Primary Archive for Ubuntu
2018-04-03 15:10:50 UTCSupersededUbuntu Bionic amd64releasemainnetOptional2.79-1
  • Removal requested .
  • Superseded by amd64 build of dnsmasq 2.79-1 in ubuntu bionic PROPOSED
  • Published
  • Copied from ubuntu bionic-proposed amd64 in Primary Archive for Ubuntu
DeletedUbuntu Bionic amd64proposedmainnetOptional2.79-1
  • Removal requested .
  • Deleted by Ubuntu Archive Robot
  • Published
Dnsmasq Ubuntu 18.04
  1. Enable Dnsmasq Ubuntu 18.04. GitHub Gist: instantly share code, notes, and snippets.
  2. The remote Ubuntu 18.04 LTS / 20.04 LTS / 21.04 host has packages installed that are affected by a vulnerability as referenced in the USN-4976-1 advisory. A flaw was found in dnsmasq in versions before 2.85. When configured to use a specific server for a given network interface, dnsmasq uses a fixed port while forwarding queries.
  3. Create a DHCP and DNS Server with Dnsmasq on Ubuntu Server 18.04 Published 18th Dec 2019. This tutorial will show you how to install and configure Dnsmasq on Ubuntu Server 18.04 so that DNS requests by clients on your network are cached.
Ubuntu

Remove Dnsmasq Ubuntu 18.04

In Ubuntu Bionic, I found that the dnsmasq package no longer creates a service for dnsmasq that you can control with service or systemctl. After a fair amount of experimenting and some help from the friendly folk at #systemd on irc.freenode.net , I ended up with a dnsmasq service file that does the right things, namely:

  • wait for the LAN interface to be online (since my dnsmasq listens only on LAN), and then start the dnsmasq service.

Here goes the systemd unit file which you can place in /etc/systemd/system/dnsmasq.service :

Remove

Once you have created the service file, you must enable it with sudo systemctl enable dnsmasq.service . You of course need to make sure to use the correct device names for your system (my network device is listed by systemctl as sys-subsystem-net-devices-enp4s0.device). You can list all the devices systemd knows on your machine using systemctl -t device. Use grep to filter for your specific device (interface) name if you know what it’s called. Mine was called “enp4s0”.

The short summary of the above systemd unit file is that:

Dnsmasq Ubuntu 18.04 Server

  • It is wanted by my LAN ethernet device, so it is launched when the device has been registered by udevd (or whatever subsystem handles this).
  • It’s of type “forking” because dnsmasq is a daemon which forks itself and you need this configuration for systemd to track it correctly.
  • In order to wait until the LAN is actually routable, I had to use the ExecStartPre (thanks #systemd) to use the systemd-networkd-wait-online application.
    • ExecStartPre just executes specified binary or script before it actually launches your desired process.
    • this application basically blocks until the specified interface is routable (which means it has an IP address).
    • You must use the full path to the executable.
    • Once it’s routable, then dnsmasq is executed (ExecStart), and dnsmasq by default will load the config file in /etc/dnsmasq.conf