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
Date | Status | Target | Component | Section | Priority | Phased updates | Version | ||
---|---|---|---|---|---|---|---|---|---|
2021-06-02 13:58:45 UTC | Published | Ubuntu Bionic amd64 | updates | universe | net | Optional | 2.79-1ubuntu0.4 | ||
| |||||||||
2021-06-02 13:23:30 UTC | Published | Ubuntu Bionic amd64 | security | universe | net | Optional | 2.79-1ubuntu0.4 | ||
| |||||||||
2021-06-02 13:58:50 UTC | Superseded | Ubuntu Bionic amd64 | updates | universe | net | Optional | 2.79-1ubuntu0.3 | ||
| |||||||||
2021-06-02 13:24:15 UTC | Superseded | Ubuntu Bionic amd64 | security | universe | net | Optional | 2.79-1ubuntu0.3 | ||
| |||||||||
2021-02-24 14:32:27 UTC | Superseded | Ubuntu Bionic amd64 | updates | universe | net | Optional | 2.79-1ubuntu0.2 | ||
| |||||||||
2021-02-24 13:53:47 UTC | Superseded | Ubuntu Bionic amd64 | security | universe | net | Optional | 2.79-1ubuntu0.2 | ||
| |||||||||
2018-04-03 15:10:06 UTC | Published | Ubuntu Bionic amd64 | release | universe | net | Optional | 2.79-1 | ||
| |||||||||
2018-04-03 15:10:50 UTC | Superseded | Ubuntu Bionic amd64 | release | main | net | Optional | 2.79-1 | ||
| |||||||||
Deleted | Ubuntu Bionic amd64 | proposed | main | net | Optional | 2.79-1 | |||
|
- Enable Dnsmasq Ubuntu 18.04. GitHub Gist: instantly share code, notes, and snippets.
- 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.
- 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.
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
:
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