[GH-ISSUE #233] Does dps support reverse DNS? #93

Closed
opened 2026-02-26 04:34:01 +03:00 by kerem · 3 comments
Owner

Originally created by @qianhd on GitHub (Nov 1, 2021).
Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/233

What is expected

Does dps support reverse DNS?

What is Happening

I found that when i using container's hostname ping container on host,it's alway wait some time. i do some research, the reason is reverse DNS timeout.

Changes (Optional)

Originally created by @qianhd on GitHub (Nov 1, 2021). Original GitHub issue: https://github.com/mageddo/dns-proxy-server/issues/233 ### What is expected Does dps support reverse DNS? ### What is Happening I found that when i using container's hostname ping container on host,it's alway wait some time. i do some research, the reason is reverse DNS timeout. ### Changes (Optional)
kerem 2026-02-26 04:34:01 +03:00
Author
Owner

@mageddo commented on GitHub (Mar 2, 2023):

Hey, localdb and docker entries doesn't have reverse dns support, I don't know much about this feature by haven't sure if it would solve your problem. So you are trying to ping a container from their hostname from the host machine, right? Something like (haven't tested this exact code snippet):

$ docker run --rm --hostname nginx.dev nginx
$ ping nginx.dev

And the ping is not working? As the given example it should work and ping normally, if you aren't able to, it can be because you ran the container using an overlay network, take a look at this section, it may explain the issue you are getting.

<!-- gh-comment-id:1452196704 --> @mageddo commented on GitHub (Mar 2, 2023): Hey, localdb and docker entries doesn't have [reverse dns support][1], I don't know much about this feature by haven't sure if it would solve your problem. So you are trying to ping a container from their hostname from the host machine, right? Something like (haven't tested this exact code snippet): ```bash $ docker run --rm --hostname nginx.dev nginx $ ping nginx.dev ``` And the ping is not working? As the given example it should work and ping normally, if you aren't able to, it can be because you ran the container using an overlay network, take a look at [this section][2], it may explain the issue you are getting. [1]: https://en.wikipedia.org/wiki/Reverse_DNS_lookup [2]: http://mageddo.github.io/dns-proxy-server/latest/en/2-features/dps-network-resolution/#why-it-is-necessary
Author
Owner

@rissson commented on GitHub (Mar 8, 2023):

I should be possible to answer a 1.1.16.172.in-addr.arpa. IN PTR query by looking up if there is a container with the IP 172.16.1.1, and otherwise returning a NXDOMAIN. It would be quite useful to have!

Love the project btw, thanks a lot!
<!-- gh-comment-id:1459984259 --> @rissson commented on GitHub (Mar 8, 2023): I should be possible to answer a `1.1.16.172.in-addr.arpa. IN PTR` query by looking up if there is a container with the IP `172.16.1.1`, and otherwise returning a NXDOMAIN. It would be quite useful to have! ###### Love the project btw, thanks a lot!
Author
Owner

@mageddo commented on GitHub (Mar 19, 2023):

Hey @rissson, I agree it can be useful, but I'm afraid it won't solve @qianhd question, so I've created #378 for the reverse DNS implementation and closing this one as we haven't a conclusive root cause here, feel free to reopen it and complement your question if you need it.

<!-- gh-comment-id:1475272134 --> @mageddo commented on GitHub (Mar 19, 2023): Hey @rissson, I agree it can be useful, but I'm afraid it won't solve @qianhd question, so I've created #378 for the reverse DNS implementation and closing this one as we haven't a conclusive root cause here, feel free to reopen it and complement your question if you need it.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/dns-proxy-server-mageddo#93
No description provided.