dnsmasq: DNS request timed out for machines in local network

Super User Asked by g_ain on December 4, 2020

I have a vagrant machine running on my mac with virtual hosts I want to make available to my local network.
I installed dnsmasq via brew and have the following in its /usr/local/etc/dnsmasq.conf:


so that all URLs ending with * will resolve to

It works partially:

gives me the correct answer:

[email protected]:~$ dig
; <<>> DiG 9.10.1 <<>>
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 54075
;; flags: qr aa rd ra ad; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0

;         IN  A

;; ANSWER SECTION:      0   IN  A

but when I try to ping that host,

[email protected]:~$ ping
ping: cannot resolve Unknown host

I added local IP of machine running dnsmasq to dns servers of my router, but other clients in this network don’t get response from it even when I explicitly perform a nslookup:

DNS request timed out.
    timeout was 2 seconds.

What do I do wrong?

One Answer

I'm dumb. dnsmasq was not set up to listen on so I added


to my dnsmasq.conf file so it works now.

Answered by g_ain on December 4, 2020

Add your own answers!

Related Questions

Conditional Formatting of decimal places

0  Asked on December 5, 2021 by natalie-lawrence


How to tell full path of file on Mac?

6  Asked on December 3, 2021 by user27449


OS Update gone wrong

1  Asked on December 3, 2021 by rutday


SSH automatically logging out

2  Asked on December 3, 2021 by myranda-rose


PXELINUX network booting an ISO file

1  Asked on December 3, 2021 by sundararajan


Power button on USB keyboards?

1  Asked on December 3, 2021


images disappeared after saving a big WORD file

2  Asked on December 3, 2021 by roudan


Account sometimes partially lose administrator status

0  Asked on December 1, 2021 by zdimension


Ask a Question

Get help from others!

© 2022 All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir