Jump to content

DNS tips & tricks?


Skitty
 Share

Recommended Posts

I was wondering, say you have multiple domain names that lead to the same IP and on the main navigational index page of a hypothetical server, you have links to other content in that particular index like ~

<li><a href="http://Thisdomain.com">content</a></li>

Now lets say we have another domain name to our server like "Thatdomain.com".

Hypothetically speaking, lets say we traveled into the midst of "Thisdomain.com" using the domain "Thatdomain.com".

Something funny happens.

By my knowledge for some radical, inexplicable reason, you stop seeing the directory's into which you're currently traversing and only "Thatdomain.com", unlike when visiting said server from "Thisdomain.com", disallowing a visitor from seeing the full address of the current position they're in on the server.

In example, say we visit "AutoItScript.com" via "AutoItScript.tk", you'll see exactly what I'm talking about and witness the astronomical event yourself in full detail.

As for me, I'm just wondering how I can put a stop to said black magic...

Basic point of this post

I was wondering of how I might be able to refer to content using the domain used to fetch a page from the particular said server, Iike a variable that stores the domain used.

<li><a href="$Var???">content</a></li>
Edited by THAT1ANONYMOUSEDUDE
Link to comment
Share on other sites

view-source:http://autoitscript.tk/

<html>
  <head>
    <title>AutoIt - AutoItScript</title>
    <meta name="description" content="AutoIt - AutoItScript">
    <meta name="keywords" content="autoitscript.tk">
    <script type="text/javascript">
        var _gaq = _gaq || [];
        _gaq.push(['_setAccount', 'UA-23441223-3']);
        _gaq.push(['_setDomainName', 'none']);
        _gaq.push(['_setAllowLinker', true]);
        _gaq.push(['_trackPageview']);
        (function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
            ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
            var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
        })();
    </script>
  </head>
  <frameset rows="*" framespacing="0" border="0" frameborder="NO">
    <frame src="http://www.autoitscript.com/site/autoit/" name="dot_tk_frame_content" scrolling="auto" noresize>
  </frameset>
  <noframes>
    <body>
    </body>
  </noframes>
</html>

just use a javascript that checks current document parent.

Edited by Manadar
Link to comment
Share on other sites

If you connect the additional domain correctly with the server, then you will be able to see the complete domain and path in the addressbar and in the links.

The domain autoitscript.tk in your example is just a frame redirection which is only a poor replacement for a real connection with DNS-records.

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

If you connect the additional domain correctly with the server, then you will be able to see the complete domain and path in the addressbar and in the links.

The domain autoitscript.tk in your example is just a frame redirection which is only a poor replacement for a real connection with DNS-records.

But the domain that works is a tk domain, the one that doesn't is another that used to work before I started using .tk.

thats why I assume it must be the links that have to do something with it.

Edited by THAT1ANONYMOUSEDUDE
Link to comment
Share on other sites

Its strange because one .tk domain does let me see paths, and another doesn't, that's what has me confused, and I came to the conclusion that it may be due to the way linking works on the site.

dot-tk domains can be used as simple frame redirections or you can create DNS-records.

Edit: DNS is better, but your webspace must support it, too. You have to tell the server which webspace will be associated with the new domain.

Edited by ProgAndy

*GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes

Link to comment
Share on other sites

dot-tk domains can be used as simple frame redirections or you can create DNS-records.

Edit: DNS is better, but your webspace must support it, too. You have to tell the server which webspace will be associated with the new domain.

Yeah, I guess that's what happens, you can only choose one to work correctly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...