New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static IP #2
Comments
|
Hey there! Could you share the |
|
I really didn't do anything complicated with the configuration you provided. Maybe I'm just not understanding what I need to do to access the container for configuration. services: |
|
I don't see that you're defining a static IP in there. Here's an example that should work fine: version: "3"
services:
nextdns:
container_name: nextdns
image: jedayoshi/nextdns:latest
restart: always
networks:
nextdns:
ipv4_address: 10.53.53.2
ports:
- 53:53/tcp
- 53:53/udp
environment:
NEXTDNS_PROFILE: xxxxxx
NEXTDNS_CACHE_SIZE: 10m
NEXTDNS_REPORT_CLIENT_INFO: true
NEXTDNS_USE_HOSTS: true
volumes:
- /docker/nextdns/hosts:/etc/hosts:ro
networks:
nextdns:
name: nextdns
ipam:
config:
- subnet: 10.53.53.0/30The IP would be |
|
Keep in mind that |
|
Appreciate the quick responses here! I assume I want to configure this on my local network subnet, correct? Aka, I want the container to respond on my local subnet so I can forward DNS queries through it instead of my router. Or, am I just forwarding DNS queries to the Docker Server IP address and those port 53 queries are then going to the container and the container IP isn't needed? Maybe this is what I was missing. |
|
No, using your local network's subnet will not work and would cause conflicts since it's creating another interface for this and they'd not be bridged together. A simpler solution would be to just depend on |
|
Ok, so I went back to my original docker-compose configuration. This should then allow me to point my local clients to the docker server IP for DNS queries. These local clients then should register within my NextDNS cloud portal? Is there any other configuration that I need to do? I tried to console into the container and run the command "nextdns log", but that system not supported. Something I'm missing? |
|
No need to register them in the NextDNS portal. All you need to do is set Try using |
|
It's the small things in life... haha. Thanks for all the help. I think I finally got this working as expected. |
|
No problem! |
Everyone,
Can a static IP be configured for the docker-compose image? When I deploy the image, it creates a new network and comes up on a completely (non-existent) network. I've been playing with the docker-compose syntax, but haven't been successful in figuring it out. Hoping you can help add this information as optional.
Thanks,
Jake
The text was updated successfully, but these errors were encountered: