Comments (1)
Hello yelijun,
First of all, the image used in your docker-compose is not the one provided in our project.
With our image in place, and the correct capabilities, everything works as expected.
Let me detail the testing scenario:
docker-compose.yaml:
version: '3.7'
services:
dnsmasq:
image: 4km3/dnsmasq:2.85-r2
container_name: dnsmasq
ports:
- '9053:53/udp'
- '9053:53/tcp'
cap_add: ['NET_ADMIN']
Here I am mapping the service to listen on 9053 only for testing purposes, in order to avoid possible conflicts with other resolvers that may already be running on your system.
With that compose up, you can check it works correctly by using any domain query tools, for example dig:
$ dig @127.0.0.1 -p 9053 google.com
; <<>> DiG 9.16.1-Ubuntu <<>> @127.0.0.1 -p 9053 google.com
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 5740
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 4096
;; QUESTION SECTION:
;google.com. IN A
;; ANSWER SECTION:
google.com. 177 IN A 172.217.168.238
;; Query time: 0 msec
;; SERVER: 127.0.0.1#9053(127.0.0.1)
;; WHEN: Sat Jun 19 12:03:31 UTC 2021
;; MSG SIZE rcvd: 55
from docker-dnsmasq.
Related Issues (20)
- Update to 2.78 HOT 3
- Can't resolve name when the dockerized app and dockerized dnsmasq on the same host HOT 2
- inotifywait dnsmasq.conf althosts -> HUP HOT 1
- Feature: Multiple architectures using manifest HOT 6
- Error starting userland proxy HOT 2
- `cname` not working HOT 4
- Isn't a issue, but it's a question about this image. HOT 1
- Conflicts with systemd-resolved HOT 7
- Some lookups fail. Dockerized dnsmasq unusable. HOT 1
- provide updated images on dockerhub HOT 1
- Root user has no password HOT 1
- Stopped working in docker desktop for mac v2.1.0.0 HOT 3
- Maximum number of concurrent DNS queries reached HOT 6
- Provide dnssec capabilities HOT 4
- Don't work in swarm but in docker-compose HOT 4
- Up for adoption HOT 13
- how can i user this image HOT 1
- push to quay.io HOT 1
- Can't get it to work as DHCP server HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-dnsmasq.