lancachenet / lancache-dns

DNS Docker service for a lancache.

Home Page:https://hub.docker.com/r/lancachenet/lancache-dns/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DNS only resolving local dns request once from upstream

Entr0py86 opened this issue · comments

Issue Description:
I have a local dns server(Mikrotik router) that I use to map my local pc's by hostname. I have setup the lancachenet-dns to point to this server as it's upstream.
The the docker container itself can resolve these hostnames no problem. The internet seems to work without issue, from the same windows box that the output below is from and others.
From a windows box I get the following output:

C:\Users\Conrad>nslookup homelab.home.gohl
Server: UnKnown
Address: 192.168.1.251

Non-authoritative answer:
Name: homelab.home.gohl
Address: 192.168.1.250

C:\Users\Conrad>nslookup homelab.home.gohl
Server: UnKnown
Address: 192.168.1.251

*** UnKnown can't find homelab.home.gohl: Non-existent domain

The commands where run right after each other.
For some reason the cache only serves the dns request once and not again?

Docker Run Command:

docker run --name lancache-dns --restart unless-stopped -d --dns-search home.gohl --dns 192.168.1.254 -p 192.168.1.250:53:53/udp -e USE_GENERIC_CACHE=true -e LANCACHE_IP=192.168.1.251 -e UPSTREAM_DNS=192.168.1.254 lancachenet/lancache-dns:latest

Please let me know if more info is required.

I found a work around.