Questions tagged [dnsmasq]
DNSmasq is a lightweight DNS forwarder, DHCP and TFTP server, designed to provide DNS (and optionally DHCP and TFTP) services to a small-scale network.
237
questions
0
votes
0
answers
19
views
Dnsmasq running in ubuntu virtual box guest
I am trying to install a DNSmasq server in an ubuntu virtualbox machine. I set it a static IP with a bridged network interface. The host has also another static IP. The DNSmasq config sends DNS ...
-2
votes
0
answers
45
views
How do I prevent dnsmasq from starting on Ubuntu 22.04
I have an ubuntu 22.04 system I'm running dnsdist on. It's easier to have dnsdist listen on 0.0.0.0, but it can't because dnsmasq it running.
Here's the caveat, the dnsmasq apt package isn't actually ...
4
votes
2
answers
489
views
dnsmasq is not logging dns queries
Here's how I am debugging this issue from the command line:
$ dnsmasq --no-daemon --log-queries
Putting the log-queries option in the config file and running it as a daemon still showed nothing on ...
0
votes
0
answers
205
views
Ubuntu 22.04 hotspot and Pi-hole, Issue with dnsmasq
I have an issue with the hotspot on my little server:
The hotspot is configured and I think it's ready to work, only the DHCP is missing. dnsmasq is not starting:
dnsmasq.service - dnsmasq - A ...
0
votes
2
answers
2k
views
How to change DNS servers in /etc/resolv.conf?
I have installed dnsmasq and disabled systemd-resolved. dnsmasq will only use local hosts.dnsmasq and not forward any request.
addn-hosts=/home/users/hosts.dnsmasq
resolv-file=
The problem is that my ...
0
votes
0
answers
56
views
dnsmasq ERR_TOO_MANY_REDIRECTS
I created ubuntu 22.04 router for my home network with dnsmasq and everytime i do a google search and landed on a website that is sponsored by google, it will result ERR_TOO_MANY_REDIRECTS. I'm not ...
1
vote
0
answers
545
views
systemd-resolve and dnsmasq on a server
i have the following issue on a server where i have dnsmasq installed:
$ systemd-resolve --status
Failed to get global data: Unit dbus-org.freedesktop.resolve1.service not found.
and that leads to ...
0
votes
0
answers
679
views
I need help with a PXE Server on Ubuntu 22.04 using dnsmasq
I am currently trying to setup a PXE server on a ubuntu22.04 server to install iso's or any other images via networkboot/pxeboot.
I use dnsmasq for that and have encountered some problems.
first, ...
-2
votes
1
answer
2k
views
Ubuntu 22.04: The DNS Cache Problem [closed]
INTRO:
I'm sure quite a few people have run into problems with DNS caching. There are plenty of hints and tips for flushing DNS cache in Ubuntu, and the more rare info about disabling it altogether. ...
0
votes
1
answer
284
views
How to set up Ubuntu system to use DNS on LAN host for local names
I've set up dnsmasq on a Raspberry Pi, and would like all my hosts on the LAN to use it. I have set the Pi's IP address in the router as primary DNS server. However, something in the Ubuntu system is ...
1
vote
0
answers
136
views
DNS upstream IP not changing on dnsmasq with Netplan
I am running dnsmasq (Version: 2.80-1.1ubuntu1.5) on Ubuntu-20.04.04, the network interface is being managed by Netplan rendered inuse is networkd.
The DNSMasq forwards requests to the upstream ...
0
votes
1
answer
4k
views
Ubuntu 22.04 has internet and wifi but dns probe finished gives bad config error
I get this error every time I turn on the computer.
enter image description here
sudo systemctl restart NetworkManager.service
every time i run this command it changes the etc/resolv.conf file
...
1
vote
2
answers
4k
views
nmcli hotspot dhcp not working
I have ubuntu server arm64 22.04 running on a raspberry pi for use as a wifi hotspot with the internet connection provided by a cellular modem. I'm using networkmanager and modemmanager to manage the ...
1
vote
1
answer
3k
views
dnsmasq and NetworkManager DNS
I have a small network of computers that can be moved between sites.
These computers are connected to a switch, and one of them acts as DHCP server and DNS server via dnsmasq for this network, let's ...
0
votes
1
answer
1k
views
How can dnsmasq be listening if it's not running?
service --status-all shows dnsmasq with a (-) in front of it indicating it's not running.
Yet when I try and run sudo dnsmasq I get the message dnsmasq: failed to create listening socket for 127.0.0....
2
votes
0
answers
3k
views
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use
I'm trying to set up dnsmasq on AWS Ubuntu 20.4 by following this link.
However, I can't seem to get around the error dnsmasq: failed to create listening socket for port 53: Address already in use
I'...
0
votes
0
answers
1k
views
How to Install dnsmasq on Ubuntu?
I tried on ubuntu 16.04 and 20.04, however I cannot install dnsmasq.
The error I get is:
Package dnsmasq is not available, but is referred to by another package.
This may mean that the package is ...
0
votes
0
answers
210
views
Problem enabling dnsmasq
I work on Ruby on Rails project which uses some subdomains and custom domains. I have installed dnsmasq server and added this to the starting of the file:
address=/xyz.test/127.0.0.1
address=/xyzsites....
0
votes
0
answers
3k
views
local DNS with dnsmasq not working for client
I'm trying to setup my raspberry Pi, running with Ubuntu server 20.04, as a wireless router so I can create a local network behind my raspberry pi.
I'm using hostapd to create a Wifi Access Point and ...
0
votes
1
answer
1k
views
Ubuntu 20.04 resolved waits for refused IPV6 result with dnsmasq
TL;DR
My DNS queries are slow because systemd-resolved queries the DNS server on IPv4 successfully but repeatedly queries on IPv6 after the DNS server responds with a REFUSED. Is this a resolved ...
0
votes
2
answers
2k
views
Random DNS resolution outages, no idea what to try next. (20.04.02)
For the past 3 months, I have been struggling with a random issue on my homeserver where DNS resolution drops for a brief period of time (10-60 seconds) for absolutely no reason. Pinging via hostname ...
0
votes
1
answer
770
views
LXC dnsmasq port 53 in use but I would like to map to container
I am trying to have an authoritative only Bind server inside a LXC container but when I went to forward the port 53 to it, I received an error saying the port is already in use. (listen=tcp:0.0.0.0:53 ...
3
votes
1
answer
13k
views
Clear dnsmasq cache without restarting the service
I have cache enabled in my dnsmasq, because it is fast.
In some situations (for example, with VPN off), dnsmasq caches wrong results. I want a quick way to clean the cache (when I connect to the VPN ...
1
vote
1
answer
3k
views
Dnsmasq unable to access log file
I'm very new to Linux, Ubuntu and this forum. I am using Ubuntu 20.04 in a VM as a wireless access point and I'm having a problem which is best explained with code:
john@HomeDT:~$ sudo service dnsmasq ...
2
votes
3
answers
4k
views
How to get the latest dnsmasq version?
I'd like to update to the latest version of dnsmasq (2.83). I used sudo apt update followed by sudo apt upgrade in an attempt to update the software and libraries installed on the machine. I then ...
1
vote
1
answer
3k
views
Failed to configure NetworkManager to use dnsmasq
I am using openconnect to connect to vpn and vpn-slice for vpn splitting. openconnect modifies /etc/resolv.conf after start, but that doesn't help with vpn domain names resolving.
To work around that, ...
1
vote
0
answers
174
views
Configuring ubuntu as router
I have a device which sends meter data to its maker site, using the MQTT protocol.
I intend to capture this information, routing it to my ubuntu PC, where I have setup a docker container with RabbitMQ ...
1
vote
0
answers
750
views
How do I set up dnsmasq for loopback to a local machine?
I recently changed my ISP and discovered a few days ago that I can't access from other computers or gadgets connected to the same home network, a domain I'm self-hosting (linked via a DDNS provider) ...
0
votes
0
answers
324
views
How to resolve single-name (no dot) domain names with upstream DNS server?
I am using dnsmasq as the DNS repeater on my network, and it has the ability to answer domain name queries for entries in that machine's hosts file. This gives me a convenient way to propagate a ...
1
vote
2
answers
4k
views
dnsmasq cannot start after Ubuntu update
I had Ubuntu 16.04 which I recently upgraded to 18.04.
On 16.04 I had dnsmasq with running configuration in parallel with bind.
After upgrade, I am not able to start dnsmasq due to following error:
...
0
votes
2
answers
1k
views
Trying to resolve .local to 127.0.0.1 using dnsmasq and Network Manager
I am on ubuntu 20.04 and I am trying to develop php projects locally. What I want is to be able to mass virtual host local projects and when I create a project and add the .local to the project name, ...
0
votes
0
answers
862
views
MULTIPASS yields dnsmasq error at launch. What can I do?
I just installed Multipass (Canonical's virtual machine manager) on Ubuntu Budgie 20.04.
When I run the Multipass launch command, I get:
[error] [dnsmasq] Process operation timed out
launch failed: ...
0
votes
1
answer
4k
views
Ubuntu 18.04 missing dnsmasq service after install
I just deployed fresh Ubuntu 18.04 on Azure. Installed dnsmasq and noticed that it is missing service files completely. Daemon itself runs fine but I would like it to start on boot. How could I ...
0
votes
0
answers
962
views
dnsmasq dhcp. No errors... but not working. What's wrong?
Ubuntu 18.04
installed docker jpillora/dnsmasq
With default config, there's no DHCP so I grabbed the example config file from dnsmasq proper and these are the options I'm using:
domain-needed
bogus-...
0
votes
1
answer
550
views
create_ap systemctl service failing
I setup config for create_ap
$ cat /etc/create_ap.conf
CHANNEL=default
GATEWAY=192.168.1.1
WPA_VERSION=2
ETC_HOSTS=0
DHCP_DNS=gateway
NO_DNS=0
NO_DNSMASQ=0
HIDDEN=0
MAC_FILTER=0
MAC_FILTER_ACCEPT=/...
4
votes
1
answer
9k
views
Configure reverse DNS using Dnsmasq
So I have my DNS by dnsmasq up and running. I can resolve my internal domain name but I cannot resolve the IP to my domain.
What I mean to say is I can use
dig rameez-ubuntu
and it works fine but ...
2
votes
0
answers
2k
views
Split VPN in WSL (Windows Subsystem for Linux)
So I need to work on a Ruby web application that consumes both public and private services, so part of the services' urls point to the internet, and part of it points to services only available on the ...
1
vote
2
answers
78
views
Running this bash script ONCE causes a "System program problem detected" on EVERY reboot
I'm trying to create a script which, when run, will set up a WiFi network over which two or more devices can communicate. If I run the current version of this script once, it causes that device to ...
2
votes
0
answers
1k
views
dnsmasq configuration problem
Morning.
Trying to setup dnsmasq on my little network, and having some trouble.
Running
dig cnn.com
; <<>> DiG 9.11.5-P4-5.1ubuntu2.1-Ubuntu <<>> cnn.com
;; global options: ...
-1
votes
1
answer
796
views
Connect to multiple dnsmasq servers at a time
I have two dnsmasq servers setup in my network. I added the dns-servers into the my network configurations but i am only able to connect to one of them at a time. When i include the two of them in ...
0
votes
1
answer
806
views
No Internet Connection Following CodeReady Containers VM Setup
I'm running Ubuntu 18.04 LTS and am having trouble connecting to the internet. Network Manager indicates I'm connected to my wireless router, but there is a '?' symbol where the wifi symbol should be ...
2
votes
0
answers
395
views
dnsmasq with unplugged ethernet port
How do I get dnsmasq to bind to an ethernet port that is not plugged in?
The environment is such that the server is working in the capacity of a router. A workstation will be plugged into this ...
1
vote
1
answer
2k
views
how to set up dnsmasq wildcard to 127.0.0.1 on Ubuntu 19.10?
closely related to How can I set up local wildcard (127.0.0.1) domain resolution on 18.04? . here is what I have done, following the earlier 18.04 instructions on 19.10:
Installed dnsmasq
apt ...
1
vote
1
answer
2k
views
Adding hosts to hostfile breaks DNS in 18.04 but didn't in 16.04
EDIT
I managed to find out what I was missing that made it clear how to fix my problem. Turns out that between 16.04 and 18.04, Ubuntu and derivatives switched from something dnsmasq based to ...
0
votes
1
answer
1k
views
How to see the address dnsmasq is listening to without netstat
I used to run sudo netstat -tulpen | grep dnsmasq, but netstat is outdated. This answer says to use ss as an alternative, but I cannot get the desired output. I.e. ss -ltu | grep dnsmasq does not ...
0
votes
0
answers
226
views
How to NetworkManager, resolvconf, and dsnmasq work together?
Running Kubuntu 16.04
Sometimes the name resolution gets slow. In previous Ubuntu versions, the problem was usually in resolv.conf and was easy to fix. In 16.04 all the DNS resolution is hidden in a ...
2
votes
0
answers
3k
views
DNSMasq unknown interface wifi0 - failed to start
Introduction
I am trying to use my Ubuntu Core-RaspberryPi as a Wifi Access point. Therefore, I am using hostapd and dnsmasq. I followed this tutorial in order to setup everything.
I start them ...
1
vote
1
answer
3k
views
How to stop continuous concurrent local DNS queries to dnsmasq
I set up a DNS server using dnsmasq, but it seems that it doesn't work properly. The networking delay is up to hundreds of millisecs.
PING [server] ([server]) 56(84) bytes of data.
64 bytes from [...
0
votes
0
answers
3k
views
DNSMasq forwarding doesn't work!
I want only one DNS for all my local network, when this DNS doesn't know a domain name I want that it ask to router DNS(192.168.1.1) or Google(8.8.8.8 and 8.8.4.4).
I installed and configured DNSMASQ,...
1
vote
1
answer
465
views
Failure to forward DNS requests with dnsmasq to a jump server
My goal is to forward DNS requests for certain work-related hosts to a jump server, which is able to resolve those requests.
I mapped port 53 on the jump server with 5353 locally as following:
ssh -...