Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

1
vote
1answer
23 views

How do I change the order in which systemd services are started up

Ubuntu 18.04 server on my home network I'm running: dnsmasq for DHCP and DNS nginx as a reverse proxy to some web applications (running on localhost and on other hosts) The nginx reverse proxy ...
0
votes
1answer
51 views

home server DNS with dnsmasq

Pulling my hair for days here setting up DNS and DHCP with dnsmasq and the new way of doing things with netplan. WAN-router is on 192.168.0.1 - works fine LAN-router is on 192.168.1.1 - DHCP works ...
0
votes
0answers
43 views

Specifying a different DNS server for specific domains in Ubuntu 18.04

I currently have an Ubuntu 18.04 install with two NICs, which are connected to different LANs where various services are available. Both NICs are setup correctly. I can ping hosts on both LANs by IP ...
1
vote
1answer
56 views

Using dnsmasq broke dig and more

I am trying to set up dnsmasq as an address resolver on an Ubuntu 18.10. So far I disabled systemd-resolved as the default resolver and brought dnsmasq in. Running netstat -tulpn shows the following: ...
0
votes
0answers
25 views

problem with repetitive, frequent dns lookup

This is on Ubuntu 18.04. I have a problem where a dns lookup gets 'stuck' where it will continually repeat the same dns lookup very fast. This can be a 2 or 3 hundred requests a minute. Sometimes ...
0
votes
0answers
67 views

Dnsmasq does not resolve alias on Ubuntu 18 clients

Upgrading a few machines from Ubuntu 16.04 to 18.04 made me realize Ubuntu 18 cannot resolve the aliases I have configured in dnsmasq. /etc/dnsmasq.conf [...] # Include another lot of configuration ...
0
votes
0answers
17 views

How to configure NetworkManager's dnsmasq instance via D-Bus?

I have a default setup of dnsmasq spawned by NetworkManager. In my VPN connection script I'd like to update the list of DNS servers known to dnsmasq by using its D-Bus interface. What command(s) can I ...
0
votes
1answer
2k views

Lost editing DNS config in Ubuntu 18.04

Objective For personal use, I need to add a custom server running on 127.0.0.1#5354 that resolves queries for .hyperboria domains. What I've done There used to be a file called /etc/resolv.conf ...
0
votes
0answers
34 views

What is the secure way to use DNS cache in desktop?

I want to enable DNS cache in my desktop and came across this post DNS cache on Ubuntu . Looks like in ubuntu DNS cache is disabled by default to prevent risk of dns poisoning attacks. What is the ...
0
votes
0answers
335 views

Running dnsmasq dhcp on Ubuntu 18.04

I am trying to setup wifi router on ubuntu with two wifi cards connected. Router is to be configured by application that uses command line tools like iwconfig, dnsmasq and hostapd. On Ubuntu 17.10 ...
2
votes
0answers
2k views

dnsmasq : failed to create listening socket for port 53: Address already in use

I'm trying to configure dnsmasq to work along with NetworkManager, the problem is when I try to run the service it fails with: dnsmasq: failed to create listening socket for port 53: Address already ...
1
vote
0answers
55 views

Use a DNS server for a particular domain when on VPN

I want to use a particular domain name server for a given domain only when connected to the VPN. The rest of the lookups should be resolved by another domain name server, including that same domain if ...
1
vote
0answers
180 views

How to repair DNS resolution in Ubuntu 16.04

Recently, name resolution failed on Ubuntu 16.04, and I worked around the problem by adding "nameserver 127.0.0.1" to /etc/resolv.conf (which fixed the problem) I know I should not be manually ...
0
votes
0answers
64 views

LXD containers can't use my corporate DNS server

Bridge setup. The hosts like server.myorg.local aren't resolved inside a container. The nslookup server.myorg.local 192.0.0.2 (specifying the IP of the DNS server) works inside a container. I've ...
0
votes
0answers
833 views

dnsmasq: failed to create listening socket for port 53: Permission denied

can anyone help me with this error message I get when I start dnsmasq? I have read another thread on askubtuntu.com but I couldn solve the problem. I want dnsmasq to block certain domains... Ihanks!
0
votes
0answers
418 views

systemd-resolve applies wrong DNS entry

I'm trying to pinpoint the issues with my systemd DHCP/DNS resolution and settings. I'm running Kubuntu 18.04 LTS, I've got both wired (eno1) and wireless (wlp2s0) connection. In some networks (both ...
0
votes
0answers
254 views

Systemd-Resolve blocking Dnsmasq

I use dnsmasq to block certain websites, mostly ad networks. I noticed that dnsmasq was already installed on 18.04, so I edited /etc/dnsmasq.conf to block the websites. I then rebooted my computer, ...
0
votes
1answer
132 views

Send all request for a TLD to one IP

I've been fighting this issue for a few days and I can't figure out what I am doing wrong. I am developing a sight that is going to use dynamic subdomains so I am trying to get all domains that end ...
0
votes
0answers
783 views

Dnsmasq trouble in BridgeBuilding Ubuntu 18.04

I'am trying to build a bridge for a VirtualBox. To do that I used this tutorial with a few exceptions because some of the tips not working for Ubuntu 18.04 All of exceptions was on the dns part ...
0
votes
1answer
346 views

DNSMasq resolving not working on Ubuntu 16.04

We installed DNSMasq for delivering ip addresses and tft bootinng. As the service dnsmasq is running , the resolving on the local ubuntu system is not working: root@dnsmasq001:~# ping joeri001 ping: ...
4
votes
0answers
675 views

How can I prevent DNS leakage when using a VPN in Ubuntu 18.04?

I recently installed Ubuntu 18.04. I want to ensure that my DNS requests use my VPN DNS rather than my ISP DNS. In 16.04, preventing DNS leakage was easy: just disable the dnsmasq entry in /etc/...
1
vote
1answer
942 views

Upgraded to 18.04 and it is incredibly slow [duplicate]

I'm running an i7 quad core with 16gb ram and an SSD. My proc maxes out at 100% routinely, and sometimes my ram goes into swap. This happens with Gnome or Unity. My laptop runs arch, and I'm ...
1
vote
0answers
173 views

Openvpn dns nameserver not getting configured

I'm using ubuntu 16.04 and I have setup an openvpn connection and a tun0 interface is being created. The vpn connects successfully. At first I could visit some of the URLs through the VPN and but the ...
8
votes
3answers
5k views

How to Add dnsmasq and keep systemd-resolved (18.04)

I want to get fast dns resolution with dnsmasq and keep the default systemd-resolved. Looking for an elegant way to do this
9
votes
3answers
16k views

18.04: Bionic Beaver: enforce static /etc/resolv.conf

Previously, on Ubuntu 16.04, I felt betrayed when an Ubuntu update installed dnsmasq package, configured it, and gave it precedence over my own super-stable, ultra-fast, and own-configured BIND DNS ...
0
votes
2answers
3k views

Ubuntu 18.04 unable to reach DNS after upgrade

I recently upgrade my Ubuntu Virtual Machine (VirtualBox 5.2.8) from ubuntu 16.04 to 18.04 using do-release-upgrade -d. There were lots of issues during the upgrade. I kept having to restart/resume ...
8
votes
3answers
2k views

How can I set up local wildcard (127.0.0.1) domain resolution on 18.04?

On Ubuntu 14.04 I'm using dnsmasq to resolve wildcard example.com domains to the local machine (desktop computer at home). After much reading around I cannot for the life of me sort out the same on a ...
1
vote
1answer
65 views

Dnsmasq - basic configuration

I am trying run dnsmasq server in my local network for translating name www.mydomain.dev to IP address 10.254.20.4. I need this name to correct signing SSL certificates. I tried ping host from local ...
0
votes
0answers
287 views

dnsmasq always returning REFUSED

Ubuntu Server 16.04.04 dnsmasq.conf: listen-address = 192.168.5.5, 172.30.108.1, 127.0.0.1 log-queries resolv-file = /etc/resolv.dnsmasq /etc/resolv.dnsmasq: nameserver = 8.8.8.8 /etc/resolv....
2
votes
0answers
583 views

problem with dnsmasq using hostapd

I want first to apologize for my bad English... I'm encountering an error using hostapd and most precisely with dnsmasq: when I edit my /etc/dnsmasq.conf and I refresh it, I have an error message : ...
0
votes
1answer
530 views

Where is dhcpcd.conf (dnsmasq installation)?

According to everything I've read it should be in /etc, but it's not. I did read in some old post that one may simply create one as it's a text file. (Sorry, I can't find the post anymore.) I'm not ...
0
votes
0answers
23 views

Make dnsmaq use broadcasted dns servers

I am new to dnsmasq and am only using it because it is a hard dependency for other software I use. I have configured dnsmasq to use Google's dns and it works fine, except when it doesn't. My college ...
0
votes
1answer
117 views

NetworkManager add dns entries when connecting to certain dhcp servers

I have an owncloud server on my home network that uses ssl certificates. As a result, clients need to connect using the server's FQDN: owncloud.example.org. I am using an dynamic dns service to map ...
4
votes
2answers
1k views

Unable to access the Internet at Starbucks - used to work with Ubuntu 16.04

For close to 6 months I haven't been able to have access to the Internet with the Starbucks wifi. Ubuntu sees the Wifi and is able to establish a connection. But then when I click access/accept... it ...
0
votes
0answers
351 views

/etc/hosts changes ignored

I want to add entries to my hosts file so I can access some local vagrant VMs for development. I have a near-new install of Ubuntu 16.04 LTS. There is a /etc/hosts file but changes I make to it are ...
2
votes
0answers
481 views

DNS Leak OpenVPN dnsmasq [duplicate]

I have configured Ubuntu 16.04 with OpenVPN and when connected to the tunnel Ubuntu is using DNS servers from my VPN (which is what I want) but it is also using one DNS server from network/interfaces ...
0
votes
1answer
399 views

Unable to configure a secondary DNS server

Network manager wasn't applying the DNS servers that I entered using "Edit Connections" -> "Wired Connection 1" -> IPv4 Settings -> Switch to "Automatic (DHCP) addresses only -> entered in ...
0
votes
0answers
23 views

block dnsmasq per external IPs

I have set up dnsmasq on a vps for it to work as a dns server. I don't want to trash dns server and want to make dns server usable only for certain static external IPs. I have tried doing that with ...
0
votes
1answer
216 views

Creating a network with lxd on xenial-backports

I want to start using lxc container on an Ubuntu 16.04 Xenial machine. I am using lxd 2.21 from the xenial-backports repository. It works fine up to the point where I want to give my containers ...
0
votes
0answers
96 views

Ubuntu 16.04 service don't properly start after reboot

this is the second time I found this issue, but with two diferent services, first using squid, and now dnsmasq in two different PCs with Ubuntu Desktop 16.04 installed. The thing is that I Install ...
1
vote
1answer
1k views

Hotspot with dnsmasq to resolve local hosts

I have a Hotspot configured to share my wired Internet connection with other devices, the hotspot is started using nmcli con up Hotspot ifname virtual. The hostspot is up and use the IP 10.42.0.1 ...
0
votes
0answers
63 views

IP and DNS Connection problems in Zesty

first of all, NetworkManager sets my DNS to 127.0.0.53. No DNS service is running by default. I installed dnsmasq, but it still fails to look names up. I added some dns servers to the resolv.conf.d/...
1
vote
1answer
482 views

Default DNS nameserver for Ubuntu 17.10

While looking some old dnsnameserver posts, just noticed the following points. Default nameserver for Ubuntu desktop 12.04 was 127.0.0.1 Ubuntu desktop 14.04 was 127.0.1.1 Ubuntu desktop 17.10 is ...
0
votes
2answers
1k views

DNS keeps resetting after reboot. Ubuntu 17.10

So I see there are lots of issues on this. I've read through all the posts, but cant seem to find a permanent solution on this. I have Ubuntu 17.10 and everytime my computer reboots, I have to ...
0
votes
1answer
129 views

Slow program launching after editing nsswitch.conf

In a fit of rage of trying to resolve this, I removed the dnsmasq-base. After restart, I noticed program launch becomes very slow (> 5 seconds), even though I have SSD. It mainly affected firefox, but ...
0
votes
1answer
113 views

How to pass on DNS servers to another interface?

I have two ethernet interfaces, eth0, and eth1 on ubuntu 17.04. eth0 is configured for DHCP and obtains an IP address, gateway, and DNS servers. This is a mobile PC so these change everytime. ...
4
votes
0answers
118 views

dnsmasq for local resolution works after running dhclient, then stops working after a few minutes

I'm running into a strange issue. For the record, I'm using Ubuntu 17.10. I'm trying to configure a custom TLD, call it .mytld, to resolve to 127.0.0.1 so I can host local websites without needing to ...
20
votes
3answers
30k views

DNS not working after upgrade 17.04 to 17.10

I've just upgraded my laptop from xubuntu 17.04 to 17.10. After the final reboot, DNS has stopped working. This is obviously a problem! I can ping known IP addresses; just no DNS resolution. I've not ...
0
votes
1answer
848 views

How do I add a forwarding rule in UFW? [duplicate]

I have set up an Ubuntu server with 2 network cards as a basic router using dnsmasq as the DNS and DHCP server and I'm using ufw to control iptables. Everything works and I think I have a pretty good ...
1
vote
1answer
1k views

How to cache dnscrypt-proxy with dnsmasq+resolvconf?

Due to my ISP intercepting some DNS requests and return 'redirected' A records, I want to use dnscrypt-proxy on my computer (my workstation, actually, running Ubuntu 16.04) What I have done is ...