mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-06 15:20:12 +00:00
dnsmasq: avoid conflict with systemd-resolved
Add a drop-in configuration file for systemd-resolved to avoid conflict about port 53. The error message is as below. failed to create listening socket for port 53: Address already in us Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
committed by
Khem Raj
parent
02f0502053
commit
93c5f47045
@@ -12,6 +12,7 @@ SRC_URI = "http://www.thekelleys.org.uk/dnsmasq/${@['archive/', ''][float(d.getV
|
||||
file://dnsmasq.conf \
|
||||
file://dnsmasq-resolvconf.service \
|
||||
file://dnsmasq-noresolvconf.service \
|
||||
file://dnsmasq-resolved.conf \
|
||||
"
|
||||
|
||||
inherit pkgconfig update-rc.d systemd
|
||||
@@ -58,6 +59,8 @@ do_install () {
|
||||
else
|
||||
install -m 0644 ${WORKDIR}/dnsmasq-noresolvconf.service ${D}${systemd_unitdir}/system/dnsmasq.service
|
||||
fi
|
||||
install -d ${D}${sysconfdir}/systemd/resolved.conf.d/
|
||||
install -m 0644 ${WORKDIR}/dnsmasq-resolved.conf ${D}${sysconfdir}/systemd/resolved.conf.d/
|
||||
|
||||
install -m 0755 ${S}/contrib/lease-tools/dhcp_release ${D}${bindir}
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Avoid conflicts between dnsmasq and systemd-resolved about port 53
|
||||
[Resolve]
|
||||
DNSStubListener=no
|
||||
Reference in New Issue
Block a user