FEDORA 30 – DNSMASQ ERROR

(Last Updated On: 2019/06/09)

“A dnsmasq egy kicsi, könnyen konfigurálható DNS szerver program, de használható DHCP, TFTP szerverként is. Csak helyi DNS szervernek alkalmas, globális DNS szerverenk nem.”

szit.wiki

 

$ dnf info dnsmasq
Telepített csomagok
Név          : dnsmasq
Verzió       : 2.80
Kiadás       : 4.fc30
Architektúra : x86_64
Méret        : 731 k
Forrás       : dnsmasq-2.80-4.fc30.src.rpm
Tároló       : @System
Ezen tárolób : anaconda
Összegzés    : A lightweight DHCP/caching DNS server
URL          : http://www.thekelleys.org.uk/dnsmasq/
Licenc       : GPLv2 or GPLv3
Leírás       : Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network. It can serve the names of local machines which are not in the global DNS. The DHCP server integrates with the DNS server and allows machines with DHCP-allocated addresses to appear in the DNS with names configured either in each host or in a central configuration file. Dnsmasq supports static and dynamic DHCP leases and BOOTP for network booting of diskless machines.

if not installed
$ dnf install dnsmasq

Not work dnsmasq :(

$ systemctl start dnsmasq
$ systemctl enable dnsmasq
  Created symlink /etc/systemd/system/multi-user.target.wants/dnsmasq.service → /usr/lib/systemd/system/dnsmasq.service.
$ dnsmasq --test
  dnsmasq: syntax check OK.

But not work!

$ journalctl -f -l -u dnsmasq.service
dnsmasq.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
dnsmasq[5101]: failed to create listening socket for 192.168.122.1: Address already in use
dnsmasq[5101]: FAILED to start up
systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
-- Reboot --
systemd[1]: Started DNS caching server..
dnsmasq[5994]: dnsmasq: failed to create listening socket for 192.168.122.1: Address already in use
systemd[1]: dnsmasq.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
dnsmasq[5994]: failed to create listening socket for 192.168.122.1: Address already in use
systemd[1]: dnsmasq.service: Failed with result 'exit-code'.
dnsmasq[5994]: FAILED to start up

Lol what 192.168.122.1? (virtual bridge?)

add config file interface=xxx
$ nano /etc/dnsmasq.conf

Sample
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=enp0s25

and work
$ systemctl start dnsmasq
$ journalctl -f -l -u dnsmasq.service
-- Logs begin at Sat 2019-05-25 08:55:16 CEST. --
systemd[1]: Started DNS caching server..
dnsmasq[6602]: started, version 2.80 cachesize 10000
dnsmasq[6602]: compile time options: IPv6 GNU-getopt DBus no-i18n IDN2 DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify dumpfile
dnsmasq[6602]: DNSSEC validation enabled
dnsmasq[6602]: configured with trust anchor for <root> keytag 20326
dnsmasq[6602]: configured with trust anchor for <root> keytag 19036
dnsmasq[6602]: read /etc/hosts - 39375 addresses
dnsmasq[6602]: using nameserver 1.1.1.1#53
dnsmasq[6602]: using nameserver 8.8.8.8#53
dnsmasq[6602]: using nameserver 9.9.9.9#53






 

Leave a reply

©2016 idStudio & SMThemes.com