-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
DNS rewrites don't work with subdomains of the same domain #4016
Comments
Because that's not how DNS works? It allows you to set a custom IP, not a host name. |
Because that's not what a DNS server should do. To do what you want, you need to run an HTTP server, then install your own Root CA for all clients in your network to implement MitM, and then resolve amazon.com to your HTTP server. Finally configure the HTTP Server to send HTTP redirects (HTTP 301 / 302 / 307 / 308). |
Understood. I guess I thought that would be the function of the dns server
to forward the request to smile.amazon vs Amazon since Adguard home is a
proxy server.
Appreciate your help. I'll look into the mitm proxy.
…On Sun, Dec 26, 2021, 2:34 PM ZeroClover ***@***.***> wrote:
Because that's not what a DNS server should do.
To do what you want, you need to run an HTTP server, then install your own
Root CA for all clients in your network to implement MitM, and then resolve
amazon.com to your HTTP server. Finally configure the HTTP Server to send
HTTP redirects (HTTP 301 / 302 / 307 / 308).
—
Reply to this email directly, view it on GitHub
<#4016 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AFKSOA3IPAKPZ42Q5U5JSQTUS535VANCNFSM5KX5HVKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
@hauntedghost, hello and thanks for the report. Looks like a bug actually. Consider using AGH doesn't support HTTP redirects, indeed, if the issue intends that. |
The others are correct in their recommendations about the HTTP redirects, but the fact that a |
Updates #4016. Squashed commit of the following: commit 83bb15c Merge: 8190550 313555b Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:36:44 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 8190550 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:35:51 2021 +0300 filtering: fix self reqs commit b706f48 Merge: 29cf83d 661f4ec Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:13:08 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 29cf83d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:07:08 2021 +0300 all: fix docs commit 9213fd8 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 18:44:06 2021 +0300 filtering: fix rw to subdomain
The issue with the incorrect CNAME rewrite to a subdomain should now be fixed on the |
Updates #4016. Squashed commit of the following: commit 83bb15c Merge: 8190550 313555b Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:36:44 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 8190550 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:35:51 2021 +0300 filtering: fix self reqs commit b706f48 Merge: 29cf83d 661f4ec Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:13:08 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 29cf83d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:07:08 2021 +0300 all: fix docs commit 9213fd8 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 18:44:06 2021 +0300 filtering: fix rw to subdomain
Updates AdguardTeam#4016. Squashed commit of the following: commit 83bb15c Merge: 8190550 313555b Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:36:44 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 8190550 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:35:51 2021 +0300 filtering: fix self reqs commit b706f48 Merge: 29cf83d 661f4ec Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:13:08 2021 +0300 Merge branch 'master' into 4016-rw-subdomain commit 29cf83d Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 19:07:08 2021 +0300 all: fix docs commit 9213fd8 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Mon Dec 27 18:44:06 2021 +0300 filtering: fix rw to subdomain
I'm looking for a way to setup DNS redirects from amazon.com to smile.amazon.com.
I currently have a DNS Rewrite setup with the following settings and the redirect is not sending me to the correct URL.
The text was updated successfully, but these errors were encountered: