mirror of
https://github.com/mageddo/dns-proxy-server.git
synced 2026-04-25 09:25:56 +03:00
[GH-ISSUE #163] nslookup works but not ping #64
Labels
No labels
bug
confirmed
discussion
duplicate
enhancement
feature
feature-request
not-planned
pull-request
secondary-feature
stale
triage
waiting-feedback
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/dns-proxy-server-mageddo#64
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kundeng on GitHub (Oct 5, 2019).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/163
On a linux (mint) system, I tried it.
nslookup works, but ping doesn't. Any idea why?
ping dns-proxy-server
ping: dns-proxy-server: Name or service not known
nslookup dns-proxy-server
Server: 172.17.0.2
Address: 172.17.0.2#53
Non-authoritative answer:
*** Can't find dns-proxy-server.localdomain: No answer
I read somewhere I need to remove mdns4. Do I have to?
@mageddo commented on GitHub (Nov 3, 2019):
@adigourdi commented on GitHub (Nov 14, 2019):
Encountered the same issue when my hostnames ended with
.local(eg:
alpine.local,postgres.local)Changed it to
.testand now it works correctlyNo idea why though
PS: using :latest docker images
@thomasleveil commented on GitHub (Dec 31, 2019):
domains ending with
.localare resolved using mDNS on Linux Mint OS. It's kind of a pain to disable it. The best option is to never use domains ending with ".local" unless you want to actually use mdns.@mageddo commented on GitHub (Jan 8, 2020):
I confirm it, by some reason
.localdomains are not pingable, not sure if I havemDNSrunning, @thomasleveil how can I check that?linux: Ubuntu 19.04
@mageddo commented on GitHub (Jan 8, 2020):
While using ping DPS couldn't solve
.localDNS names. It is not founding the hostname locally, then proxying to the internet.@mageddo commented on GitHub (Jan 8, 2020):
I'll have to make deeper find, looks like DPS it's only receiving the domain, not the full hostname
status=complete, name=local., res=3@thomasleveil commented on GitHub (Jan 8, 2020):
@mageddo : execute
grep hosts: /etc/nsswitch.confand see ifmdnsappears@mageddo commented on GitHub (Jan 8, 2020):
Yes, it appears
hosts: files mdns4_minimal [NOTFOUND=return] dns myhostname@mageddo commented on GitHub (Jan 15, 2020):
When hostnames are terminated by
.localping decides to make a SOA request to.localdomain first, it's proxied to remote dns server, obviously it's not a valid domain then the remote answers NXDOMAIN (not found), then ping receives the answer as an error (and it is) and abort the process,Name or service not knownis printed by ping@mageddo commented on GitHub (Jan 15, 2020):
I imagine the SOA request is made to check if DPS can solve the hostname after mdns fails. Not sure if this check is made by ping or mdns though.
@mageddo commented on GitHub (Jan 15, 2020):
I suppose this issue will be fixed by implementing SOA record queries on DPS, actually DPS doesn't fully support it.
@lucassardois commented on GitHub (Sep 3, 2021):
I have the same issue except I'm not using
.local.I started dps with the following:
And as the documentation show, I except to be able to ping
dns.mageddo, ping returns:When I do
nslookup dns.magddoI get:When I directly ping the ip address, it works:
I'm on a Fedora 34 (Workstation) system. When I check the
/etc/resolvconfwhile dps is running I can see the following:This looks OK to me?
Here is the result of
resolvectl statusas explained in the previous file comments, in case you need it:Where
wlp3s0is my wifi interface currently used.Also, here is the result of things running on port 53:
Any idea on how to fix this issue?
@mageddo commented on GitHub (Mar 4, 2023):
So, just to give an conclusion to this issue, there is no much to do about
.localentries, they are entries for a reserved domain, just don't use that if you want to not have issues, because Linux won't forward .local hostname queries to the configured DNS, if you query using nslookup or whatever client specifying DPS server then it will work.@mageddo commented on GitHub (Mar 4, 2023):
@lucassardois I think your issue has a different cause, maybe it's related wit this entry
search .you could try remove it, maybe it's related to system-resolved in that case you can see this thread #244, if neither don't solve your issues then you can open a new issue , please.