Questions tagged [dnsmasq]

DNSMASQ QUESTIONS MUST BE PROGRAMMING RELATED. Dnsmasq is a lightweight, easy to configure DNS forwarder and DHCP server. It is designed to provide DNS and, optionally, DHCP, to a small network.

DNSMASQ QUESTIONS MUST BE PROGRAMMING RELATED. Dnsmasq is a 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/TFTP/PXE for network booting of diskless machines.

Dnsmasq is targeted at home networks using NAT and connected to the internet via a modem, cable-modem or ADSL connection but would be a good choice for any smallish network (up to 1000 clients is known to work) where low resource use and ease of configuration are important.

286 questions
4
votes
4 answers

Valet installed for laravel, but why isn't dnsmasq resolving correctly?

I've installed valet for laravel using homebrew on my mac (Mojave). According to laravel's documentation I should now be able to ping *.test, but when I keep getting the following error: ping:cannot resolve foobar.test: Unknown host It looks like…
Urbycoz
  • 7,247
  • 20
  • 70
  • 108
4
votes
1 answer

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…
Ankit Gupta
  • 565
  • 6
  • 18
4
votes
1 answer

Redirect AWS sdks' default endpoint to mocked localstack endpoints

I have multiple Java spring boot services (around 20 of them) using Amazon SDKs for S3, SQS, DynamoDB, etc.. Currently, to use Amazon Web Service I only need to specify my AWS key &…
user8429728
  • 41
  • 1
  • 3
4
votes
1 answer

Remove libvirt's dhcp lease entry using virsh

Using: $ virsh version Compiled against library: libvirt 1.3.1 Using library: libvirt 1.3.1 Using API: QEMU 1.3.1 Running hypervisor: QEMU 2.5.0 $ $ $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: …
Amir Keibi
  • 1,991
  • 28
  • 45
4
votes
3 answers

docker-compose not adding hostname to /etc/hosts

I'm working on a docker-compose config which should spin up an openvpn container attached to a dnsmasq container. The openvpn server should automatically discover the dnsmasq container and use it as the dns server. Discovery is done by searching for…
Sven van de Scheur
  • 1,809
  • 2
  • 15
  • 31
4
votes
1 answer

https redirection with dnsmasq

I am using a raspberry pi for my project and also I have setup my pi as a wifi access point. I am trying to create a landing page to which all the http and https requests must be redirected when a user is connected to pi's wifi access point. I am…
M.Priyanka
  • 89
  • 1
  • 9
4
votes
1 answer

reverse dns lookup with consul and dnsmasq

I've setup consul (http://consul.io/) and dnsmasq so that I can have my own internal dns resolution. I have tested with dig that consul supports reverse dns lookups: $ dig @127.0.0.1 -p 8600 +noall +answer -x 11.0.16.69 69.16.0.11.in-addr.arpa. 0 …
Alex Ethier
  • 497
  • 2
  • 7
  • 18
4
votes
4 answers

Kong: Running Mashape Kong fails on Mac OS X

Today I installed Kong (API Management Layer) on my Mac OS X (Yosemite 10.10.5). I used the .pkg file which is available here. I followed the installation instructions and everything was successful. I also installed Cassandra using the information…
Kamalakannan J
  • 2,818
  • 3
  • 23
  • 51
4
votes
0 answers

dnsmasq/hostapd slow to offer DHCP address

I've got an embedded system running hostapd and dnsmasq acting as a wifi access point. Very repeatably it will take 11s between the time clients (Macbook pros, Dell laptops, iphones, android tablets) associate/authenticate with the AP and the time…
Allan
  • 91
  • 1
  • 6
4
votes
3 answers

After update to Yosemite, Local domain stop working after disconnect from network

I'm using dnsmasq for my local develop environment. When I'm connected to network everything is fine but then I disconnect form network, local domain doesn't work. (Safari or FireFox show me "You are not connected to network" Thanks!
kubens
  • 264
  • 3
  • 5
4
votes
0 answers

How do you set up a domain alias while running dnsmasq?

I know the following rules in my dnsmasq.conf file will redirect all requests with a ".dev" top level domain back to my local machine. listen-address=127.0.0.1 address=/.dev/127.0.0.1 The problem I am having is that I want to set up an alias such…
4
votes
2 answers

Using dnsmasq on a Windows VM in VirtualBox on a Mac (+ MAMP)

I'm using dnsmasq on the Mac (OS X 10.7) to facilitate local development (along with MAMP), with just this pretty simple config: [dnsmasq.conf] address=/dev/127.0.0.1 .. pretty darn simple. All my *.dev domains resolve to 127.0.0.1 (localhost).…
Jonny Nott
  • 328
  • 3
  • 14
3
votes
2 answers

Kubernetes Pod to run with OpenVPN client sidecar and have functional DNS through the tunnel and in cluster

I attempt to build a Pod that runs a service that requires: cluster-internal services to be resolved and accessed by their FQDN (*.cluster.local), while also have an active OpenVPN connection to a remote cluster and have services from this remote…
Dyin
  • 5,815
  • 8
  • 44
  • 69
3
votes
0 answers

dnsmasq use different upstream servers for specific hosts by IP

I am trying to set up the following scenario: Local raspberry (192.168.0.9) is used as both dhcp server (dhcpd) and dns server (dnsmasq). I have two sets of devices (my own and everyone else's), that receive their IP addresses from specific ranges…
badlands
  • 115
  • 1
  • 10
3
votes
3 answers

CoreDNS do not respect local DNS

I am running a k3s cluster on some raspberry pi 4, in my local network. I have a DNS server (dnsmasq) on the master nodes. I want that the pods of my cluster use that DNS server, via coredns. However when I ping an adress from within a pod I always…
samsja
  • 71
  • 1
  • 4
1 2
3
19 20