Questions tagged [dnsmasq]

1

votes
0

answer
378

Views

MacOS Dnsmasq High Sierra 403 Forbidden error

I tried to configure dnsmasq with a fresh clean macOS High Sierra 10.13.2 Apache Version Server version: Apache/2.4.28 (Unix) Server built: Oct 9 2017 19:54:20 apachectl configtest Syntax OK I used to have it and worked fine. But I think I'm missing something, because I'm getting 403 forbidden er...
Absolutkarlos
1

votes
1

answer
1k

Views

Laravel Valet sites connection refused on port 80

Ever since Chrome and Safari started forcing HTTPS redirection on the .dev TLD I've been getting issues connecting to my Laravel Valet sites. Without knowing that Chrome and Safari had done this, I updated Valet to from 1.2 and not thinking to check in Firefox first (doh! 😖). I've installed the l...
Ben
1

votes
0

answer
134

Views

Virtual hosts stoped working (dnsmasq, apache)

Few months ago I've set up my local web development environment following this guide: http://mallinson.ca/osx-web-development/ Everything worked perfectly until yesterday and I have no idea what happened. I can ping my *.dev addresses: ➜ ping -c 1 home.dev PING home.dev (127.0.0.1): 56 data bytes...
user8103342
1

votes
1

answer
814

Views

wildcard for local dev hosts

I am switching between multiple projects recently. All running locally on the same IP but with different domains... actually it's always *.local (like foo.local, bar.local and so on). I could continue adding those to my /etc/hosts file but it's not very clean way. That's why I thought of setting up...
Moby04
1

votes
1

answer
968

Views

Linux to Android Bluetooth Tethering (PAN)

I'm having a bluetooth enabled [embedded] Linux device and would like to share it's internal Network (NOT connected to the internet) via Bluetooth to Android devices (tried Android 6.x and now 7.1.2 - Lineage OS [rooted]). The setup already works well with Linux or Windows Clients. I read through to...
Stefan W.
1

votes
1

answer
1.9k

Views

Multiple addn-hosts conf in DNSMasq

Is it possible to add multiple files to the 'addn-hosts' node in dnsmasq.conf? Currently I have a single file 'dnsmasq.multihosts' which has a list of servers for DNSmasq to resolve. My problem is that dnsmasq.multihosts is too long now and I would like to separate it into multiple Files like 'dnsm...
Ankit Gupta
1

votes
0

answer
201

Views

Loop DHCPDECLINE with Dnsmasq

Since some days I have infinite loop with dnsmasq DHCP… clients seems to refuse their IP that they were accustomed to having. We are talking about various clients, smartphones, PC, Mac,... I have only one DHCP server on my network. Only one subnet. Dnsmasq on 192.168.1.2, ISP router on 192.168.1....
Julien B
1

votes
0

answer
16

Views

Dnsmasq: Consider all responses

I have set up a dnsmasq server and enabled the --all-servers flag to query all servers. My problem is, that by default, dnsmasq won't consider all responses. It would stop after the first one, whether it is positive or negative. I know that this is the intended behavior for e.g. web nameservers whic...
Robin
1

votes
0

answer
195

Views

Single domain forward DNSMASQ

Hi I need to spoof single domain only not wildcard for example www.google.com and google.com 'only' . but with my config client when visit xx.google.com it's respond to 192.168.0.1 .. my config so far port=53 cache-size=10000 no-negcache server=8.8.8.8 server=4.2.2.2 server=8.8.4.4 listen-address...
1

votes
1

answer
58

Views

tftp booting my raspberry pi, but initramfs file is not requested by the raspberrypi

I am using custom Linux Kernel built through Yocto. I generated sdimg and try to boot it using an SDCARD and it boots perfectly fine. Here along with the Kernel I also use INITRAMFS files. Using config.txt and cmdline.txt file in partition 1, I tell the kernel to load my INITRAMFS file. This procedu...
Naveen KH
1

votes
0

answer
262

Views

Cannot access virtual hosts between containers with docker-compose using nginx-proxy and dnsmasq

Context I was planning on simplifying some development setup of multiple docker-compose.yml by introducing virtual hosts locally. I looked around and decided to use nginx-proxy for the reverse-proxy (ability to set VIRTUAL_HOST for each service). Setup To expose these on the host machine I went the...
Kevin Jalbert
1

votes
0

answer
28

Views

Customized captive portal with external DHCP server

I am stuck in one issue for which I need your help on this. Actually its bit complex to explan about my situatuion but I will try my best. I am working on customized captive portal on arm processor board with embedded linux os. For which I need to run this captive portal server on my arm board. I go...
Dhruv Patel
1

votes
1

answer
1.2k

Views

use dnsmasq to point .dev domains to one computer from all local networks to which it is connected

I'm running Apache etc (actually MAMP at the moment, but soon to be replaced by individual Apache, PHP, MySQL...) on my Mac, for testing my websites locally/offline. I want to be able to test all my local sites (domains *.dev) from any and all of the following, without having to update the hots file...
Caesar
1

votes
1

answer
470

Views

dnsmasq config being bypassed

I'm really struggling with dnsmasq setup. My dnsmasq config contains (amongst other things), the following address=/local/127.0.0.1 listen-address=127.0.0.1 domain=local My network manager conf and resolve conf are definitely including 127.0.0.1 as the first nameserver. If I run dig mysite.local I g...
MJA
1

votes
1

answer
1.7k

Views

Is there a way to use DNSMasq and BIND on the same computer?

I like the idea of running my own nameserver (BIND) but if I do that, I can't get the benefit of blocking nasty websites by putting them in /etc/hosts DNSMasq is able to refer to /etc/hosts but rather than specifying an 'upstream' dnsserver, I'd like it to be able to use BIND on the same machine. Ho...
David
1

votes
1

answer
843

Views

How to change libvirt DHCP lease time

I use QEMU KVM on my Ubuntu 16.04 server for managing virtual machines connected via both bridge and NAT. I find that a VM connected via NAT requests DHCP request about every 20~25 minutes, and I want to change the DHCP lease (or request?) time longer. The system log of the host machine is like this...
Byoungheon Shin
1

votes
1

answer
465

Views

DNS does not work over TCP from pod

I have an Openshift Origin installation (v. 1.2.1, but also reproduced this issue on 1.3.0), and I'm trying to get pods' IPs from DNS by service name. Assume my node has IP 192.168.58.6, and I look for pods of headless service 'hz' in project 'hz-test'. When I try to send DNS request to dnsmasq (whi...
Danila Kiver
1

votes
2

answer
1.1k

Views

How to configure wildcard subdomains for authoritative (auth) dnsmasq dns server?

I have compiled dnsmasq v2.76 including support for running its authoritative dns server (NOAUTH removed in the Makefile). Wildcard subdomains with dnsmasq is possible for the caching part of the server. I have tried: host-record=*.domain.tld,1.2.3.4 host-record=.domain.tld,1.2.3.4 host-record=domai...
Pro Backup
1

votes
1

answer
138

Views

Dnsmasq failing to catch 307 redirect for https?

I am currently doing some debugging on my website which involves calling the facebook API. I've installed dnsmasq to work with my mac os X to redirect all request to facebook.com to 127.0.0.1 This is my entry in dnsmasq.conf: address=/facebook.com/127.0.0.1 I also have /etc/resolver/com with nameser...
Sparrowcide
1

votes
1

answer
65

Views

Will website name in certificate shared by server during handshake kill the DNS over https purpose?

While querying DNS over https lets assume the user gets ip over secure connection. In the handshaking process the website shares its certificate in plaintext which includes website name and other info. Will it kill the DNS over https purpose other than active sniffing?
sujoshi
1

votes
1

answer
430

Views

Docker container internal vs external dns resolution issue using Traefik

Docker 18.06.1-ce, traefik 1.7.3, dnsmasq, Mac 10.14 I have docker-compose setup with Traefik and need to access several services from inside the docker network/containers and externally. On a linux box (with Let'sEncrypt and http redirected to https), everything works using the same FQDN for both...
William
1

votes
1

answer
164

Views

undefined reference to `inotify_init1'

I am trying to integrate latest version 2.80 of dnsmasq application in my project. The platform is Linux 2.6.32. Compilation with cross compiler arm-none-linux-gnueabi-gcc is giving this error: inotify.o: In function `inotify_dnsmasq_init': inotify.c:(.text+0x514): undefined reference to `inotify_i...
Gaston
1

votes
1

answer
1.5k

Views

Enable wildcard subdomain for localhost on Ubuntu 12.04

I am trying to enable wildcard subdomain using dnsmasq. I followed the following link for that. https://coderwall.com/p/6dgpsw I am adding dns nameserver by editing /etc/dhcp/dhclient.conf with the line prepend domain-name-servers 127.0.0.1; I am using ubuntu 12.04 with wifi connection. But this is...
user519846
1

votes
2

answer
77

Views

Replace entire lines in a .conf file

I have a situation where I want a bash script to replace an entire lines in a dnsmasq.conf By default, lines are : listen-address=192.168.42.1 dhcp-range=192.168.42.1,192.168.42.253,255.255.255.0,192.168.42.255,24h dhcp-option=option:router,192.168.42.1 I implement : new_ip=$1 broadcast=$2 base_ip=...
ogs
1

votes
1

answer
21

Views

Why ns_t_ns is faster than ns_t_a when query root sever?

I want to know the latency between client and local dns server. So I send a query for the root dns server(.) like that: res_nquery(&res, '.', ns_c_in, ns_t_a, answer, sizeof(answer)); But if I change ns_t_a to ns_t_ns, the query is become more faster. Why this happen? Response when use ns_t_a: Resp...
Karl
1

votes
1

answer
0

Views

Docker container to change default DNS server

I am learning to work with Docker containers and I trying what I thought would be a simple exercise, but running into issues. I want to use a container to change the default DNS server that my machine uses. So when I say >> host facebook.com the result should be the same as >> host facebook.com...
Abu Wuf
0

votes
0

answer
3

Views

Mapping domain to a domain using dnsmasq

I want to resolve a domain to a domain using dnsmasq. The following entry doesn't seems to be working: address=/nas.lan/1.lan What entry should I add to dnsmasq to resolve/redirect nas.lan to 1.lan?
Chirag Arora
1

votes
1

answer
40

Views

kubernetes and external DNS in ubuntu

I have an ubuntu box out of the kubernetes cluster My /etc/resolv.conf content nameserver 10.3.0.1 (kubedns) If i make a nslookup, everything works fine nslookup spark-master-0.spark-master.ns.svc.cluster.local Server: 10.3.0.1 Address: 10.3.0.1#53 Non-authoritative answer: Name: spark-mast...
Jose
1

votes
1

answer
4.1k

Views

DNSMasq forwarding on domain specific

I've a problem of routing dns traffic on domain specific. Example: *.swaroop.com should forward to ns.swaroop.com swaroop.org should forward to ns.swaroop.org Can we achieve the above scenario with DNSMasq, Please let me know if anyone has done
Swaroop Kundeti
0

votes
0

answer
16

Views

Traefik on Home Network

I am sure I am being stupid an over looking something, so I apologize in advance. Here is the dilemma, I have a home network with a lot of different docker based web apps running and I am tired of trying to come up with a new port to run them on. I thought hey I read somewhere about Traefik being ju...
Matt Camp
1

votes
1

answer
4.8k

Views

Run dnsmasq as DHCP server from inside a Docker container

I'm trying to get dnsmasq to operate as a DHCP server inside a Docker container, issuing DHCP addresses to machines on the host's physical network. I'm using the Alpine Linux 6MB container from https://hub.docker.com/r/andyshinn/dnsmasq/. It works fine as a DNS server on port 53 on the host machine...
Josh Wulf
2

votes
1

answer
1.9k

Views

How can I restrict dnsmasq to only reply to specific client DNS requests?

I am looking at using a dnsmasq server to easily serve up some local ad-hoc hostnames and also provide recursive DNS for the local clients. However, the dnsmasq service appears to always allow any client to look up DNS entries once it is configured as a recursive DNS server. Is there a way to restri...
Niels2000
5

votes
2

answer
4k

Views

Docker container can only access internet with --net=host

Just installed docker 1.10.1 today using their installation guide. However, none of my containers can access the internet unless I used --net=host in the docker run command. I have tried various workarounds from these posts: http://odino.org/cannot-connect-to-the-internet-from-your-docker-containers...
wheeler
4

votes
4

answer
5.6k

Views

Where is dnsmasq.conf in Android phone?

In the command line of Android, there are dnsmasq commands. But where are all the config files (dnsmasq.conf, dnsmasq.pid...)? As far as I try is creating my own configuration files and using the following command: dnsmasq --conf-file=the/location/of/my/file It says: dnsmasq: failed to open pidfile...
TrisNguyen
4

votes
1

answer
1.2k

Views

dnsmasq fixed subdomain with wildcard domains/tld

Is it possible to route all subdomain requests regardless of top level domain to a given ip with dnsmasq? I would like to get something like this to work. address=/dev.*/127.0.0.1 So any production url if prefixed with dev will route to my dev server. So any tld such as mysite.mobi or mysite.com if...
Darren Powers
4

votes
1

answer
324

Views

Dnsmasq changing from working .dev to .local

I have configured dnsmasq on mac os high sierra with *.dev domains to point to 127.0.0.1 and it all worked great. But now I want to change my localhost domains from *.dev to *.local, so I changed it in dnsmasq.confg file and created a resolver 'local' for it. but dnsmasq doesn't seem to referesh the...
Sohail
21

votes
4

answer
31.5k

Views

dnsmasq, serve different ip addresses based on interface used

Basically my problem is that I'm running a VM for developing web sites on. The host machine has its dns pointing at the Vm which is running dnsmasq which resolves the addresses of various dev sites, i.e. test.mysite.vm etc. The issue is when I go from my work network to my home network it all breaks...
Ian Chadwick
2

votes
1

answer
1.1k

Views

dnsmasq statistics not match cache-size in dnsmasq.conf

When i use command 'kill -s SIGUSR1 cat /var/run/dnsmasq.pid', the output in log is as below: Dec 2 14:23:48 dnsmasq[22548]: cache size 10000, 22230/42649 cache insertions re-used unexpired cache entries. Dec 2 14:23:48 dnsmasq[22548]: queries forwarded 97058, queries answered locally 544818 I am...
workhardcc
2

votes
0

answer
971

Views

dnsmasq on an interface connected to a Linux bridge not working

I have a few Ubuntu VMs. One with a DHCP server and the rest would be clients. On the DHCP server, I created a Linux bridge (br-1) Assigned static IP to eth1. Attached the interface eth1 to bridge br-1. Ran dnsmasq on eth1. Then from a client I ran 'dhclient -v eth1' in the hope to get an IP. Bu...
linuxmonk
4

votes
3

answer
13k

Views

I cant restart my dnsmasq service, so my fog server wont work

I have a fog server set up in work, every now and then our useless internet fails and I have to reset the dnsmasq to get it working again, (dont have a dhcp server set up and cant modify the hubs settings so wont be doing this) whenever I try sudo dnsmasq restart, I get the message - junk found in c...

View additional questions