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
Windows dns, cant make it work #41
Comments
That won't work. The redirect server needs to lookup your source domain in the DNS system to know what to do. But, www.cnn.local is not a valid domain from the perspective of the server: hence, the error: CNAME not found for www.cnn.local. The way it works is this, I think:
This is also why just accessing 'target-domain.com.redirect.center' from the browser will not work, because in Step 4, the Host header will be 'x.redirect.center' and the DNS lookup in 6 will just find 'CNAME redirect.center', and target-domain.com won't ever be used. Other redirect services (https://redirect.name) lookup the target information from other DNS records like TXT, but the principle is the same: this information about the target redirect can only come from DNS because it is not contained within the GET request. PS. @udleinati might be useful to post this basic info about how it works in the title page, because this is not obvious, to save people from figuring it out every time. |
Hello, @radfish i still cant make it work. |
@stammail were you able to make it work? |
Hello, Im using windows dns for redirect and i can't make it work.
for example im trying to redirect http://www.cnn.local to https://www.walla.co.il
when i query the dns i get the right info. C:\Users\Administrator>nslookup www.cnn.local
Server: UnKnown
Address: 212.x.x.x
Name: redirect.center
Address: 212.X.X.X (THIS IS MY DNS)
Aliases: www.cnn.local
www.walla.co.il.opts-https.redirect.center
but browsing using chrome and IE doesn't work
im getting
Something is wrong on your host: www.cnn.local
Error message:
queryCname ENOTFOUND www.cnn.local
redirect.center
tried with the dot (.) in fdqn and without it.
tied with the opts-https and without it.
noting helps.
what am i doing wrong?
The text was updated successfully, but these errors were encountered: