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.

Filter by
Sorted by
Tagged with
0 votes
1 answer
174 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 ...
user avatar
  • 126
0 votes
1 answer
86 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....
user avatar
  • 133
1 vote
0 answers
432 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'...
user avatar
  • 133
0 votes
0 answers
229 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 ...
user avatar
  • 285
0 votes
0 answers
33 views

Disable the Build in DNS Service in Ubuntu-Core

I have using Ubuntu-Core as for my Raspberry Pi 4 for running Docker on it. Now I plan to use the Pi-Hole Container on it for AdBlocking. This container acts as a DNS Server in my network. But on ...
user avatar
  • 1
0 votes
0 answers
83 views

TFTP Aborted received from

I tried to set up a PXE-boot server with dnsmasq. Everything is working but the there is an error regarding TFTP. Nov 9 12:28:52 zika dnsmasq-dhcp[59739]: DHCPDISCOVER(enp4s0) 08:00:27:78:a4:c2 Nov ...
user avatar
0 votes
0 answers
105 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....
user avatar
  • 51
0 votes
0 answers
69 views

Systemd-resolved not querying local server (dnsmasq) when offline

I have configured dnsmasq to handle some local domains, with config like this: address=/local/127.0.0.1 address=/devel/127.0.0.1 /etc/systemd/resolved.conf was changed to: [Resolve] DNS=127.0.1.1 # ...
user avatar
  • 286
0 votes
0 answers
22 views

How can we add name resolution for hostname for LAN? [duplicate]

I recently installed https://ubuntu.com/appliance/nextcloud, which is nextCloud appliance It automatically translated the IP to a hostname masking 192.168.1.2 to nextcloud.local I want to achieve the ...
user avatar
0 votes
0 answers
44 views

dnsmasq: after adding strict-order flag to configuration file, dnsmasq only forwarding queries to first three nameservers from the resolv.dnsmasq file

First used glibc resolver, but faced some issue with supported nameservers then tried dnsmasq and able to query all the namservers. But after adding strict-order to the /var/dnsmasq.conf then the the ...
user avatar
  • 101
0 votes
0 answers
491 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 ...
user avatar
  • 101
0 votes
1 answer
495 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 ...
user avatar
0 votes
0 answers
40 views

how to change IP Address DNS Only?

I want to change the DNS IP to other than Indonesia, can that happen? because I can only use a VPN, the IP Address and DNS will change according to the VPN. but I want only DNS to change for example ...
user avatar
0 votes
2 answers
1k 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 ...
user avatar
  • 11
0 votes
1 answer
264 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 ...
user avatar
  • 11
1 vote
1 answer
2k 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 ...
user avatar
  • 768
1 vote
1 answer
1k 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 ...
user avatar
2 votes
3 answers
2k 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 ...
user avatar
1 vote
1 answer
1k 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, ...
user avatar
1 vote
0 answers
55 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 ...
user avatar
  • 11
1 vote
0 answers
435 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) ...
user avatar
  • 167
0 votes
0 answers
114 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 ...
user avatar
1 vote
2 answers
2k 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: ...
user avatar
0 votes
2 answers
509 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, ...
user avatar
  • 467
0 votes
0 answers
588 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: ...
user avatar
  • 264
0 votes
1 answer
517 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 ...
user avatar
0 votes
0 answers
685 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-...
user avatar
  • 1,249
0 votes
1 answer
308 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=/...
user avatar
3 votes
1 answer
5k 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 ...
user avatar
2 votes
0 answers
1k 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 ...
user avatar
  • 21
1 vote
2 answers
70 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 ...
user avatar
2 votes
0 answers
845 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: ...
user avatar
-1 votes
1 answer
563 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 ...
user avatar
  • 129
0 votes
1 answer
644 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 ...
user avatar
  • 113
1 vote
0 answers
231 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
1 vote
1 answer
1k 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 ...
user avatar
0 votes
1 answer
837 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 ...
user avatar
  • 103
0 votes
0 answers
121 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 ...
user avatar
  • 4,999
2 votes
0 answers
2k 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 ...
user avatar
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 [...
user avatar
0 votes
0 answers
2k 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,...
user avatar
1 vote
1 answer
300 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 -...
user avatar
  • 13
2 votes
0 answers
422 views

dnsmasq + systemd-resolved high cpu

I'm using DNSMasq only for DNS caching, other DNS queries should go to the original DNS configured in systemd-resolved (if I understand the flow correctly). All the solutions to this issue are saying ...
user avatar
  • 150
0 votes
1 answer
82 views

Do I need DNS Server?

I use internet (personal connection from ISP). My operating System is Ubuntu 18.4. I am aware of /etc/hosts file, but it has limitation with wild card entries (to block websites). I wanted to know if ...
user avatar
  • 487
0 votes
0 answers
146 views

SSH stop working when connecting ethernet cable

I greatly appreciate your help to show me what is going on with my network. The situation is like this: I have a LiDAR sensor that streams UDP data over ethernet cable. The LiDAR has a DHCP server ...
user avatar
2 votes
2 answers
2k views

systemd starts dnsmasq before starting network manager?

Looks to me that my systemd starts dnsmasq before starting network manager. How can I confirm this? How can I force systemd starts dnsmasq after starting network manager? Reason behind this is, as ...
user avatar
  • 731
3 votes
3 answers
5k views

Use dnsmasq as system DNS service

Following How to disable systemd-resolved and resolve DNS with dnsmasq? However, I followed it as much as I could, but still wasn't able to properly replace systemd-resolved with dnsmasq -- If i put ...
user avatar
  • 731
2 votes
1 answer
3k views

Difference between Dnsmasq and Dnsmasq-base [closed]

I want to set up a DNS and DHCP server to bypass the loopback restriction of my internet provider. I wanted to install Dnsmasq but can't install It because of conflicts with Dnsmasq-base. So my ...
user avatar
  • 21
0 votes
0 answers
4k views

Can't run Dnsmasq via command line

I am unable to install Dnsmasq via command line, this error is shown : Package dnsmasq is not available, but is referred to by another package. This may mean that the package is missing, has been ...
user avatar
  • 21

1
2 3 4 5