Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
DNS behaviour
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Plusnet Community
- :
- Forum
- :
- Help with my Plusnet services
- :
- Broadband
- :
- DNS behaviour
DNS behaviour
01-04-2012 12:10 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
This is not a plusnet related problem, but I thought someone out there might be able to explain what is going on.
Some time ago to bypass a DNS server issue (also not plusnet related) I added a line to the "hosts" file of the form
a.b.c.d www.site.org
Recently site.org moved to a new server (e.f.g.h) but because of this line I was still accessing the old server from my browser. This gave a "you are using the old server" page.
Now, I had forgotten the hosts entry so I tried entering e.f.g.h manually on the browser url line. To my great surprise this resolved to www.site.org and took me back to the old server warning banner. I am at a loss to explain this behaviour unless the browser did a reverse lookup on e.f.g.h then a DNS lookup on www.site.org, which seems very inefficient. I'd always assumed that entering a numeric ip address would bypass all lookup.
Firefox and IE both behaved this way. Can anyone tell me why?
Some time ago to bypass a DNS server issue (also not plusnet related) I added a line to the "hosts" file of the form
a.b.c.d www.site.org
Recently site.org moved to a new server (e.f.g.h) but because of this line I was still accessing the old server from my browser. This gave a "you are using the old server" page.
Now, I had forgotten the hosts entry so I tried entering e.f.g.h manually on the browser url line. To my great surprise this resolved to www.site.org and took me back to the old server warning banner. I am at a loss to explain this behaviour unless the browser did a reverse lookup on e.f.g.h then a DNS lookup on www.site.org, which seems very inefficient. I'd always assumed that entering a numeric ip address would bypass all lookup.
Firefox and IE both behaved this way. Can anyone tell me why?
Message 1 of 3
(945 Views)
2 REPLIES 2
Re: DNS behaviour
01-04-2012 12:25 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
Hard coded HTML on the web page? You go to http:///123.123.123.123 for instance which brings up a web page, the web page has an image with <img=http://www.sitename.com/image.jpg>, your computer needs to look up www.sitename.com which is in your hosts file as http://321.321.321.321 so it resolves to that? Or, if you try http://212.58.244.68 you'll get taken to www.bbc.co.uk, the address will change from numeric to www.bbc.co.uk so the same could be happening at site.org which again relies on your hosts file.
Message 2 of 3
(350 Views)
Re: DNS behaviour
02-04-2012 1:38 PM
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Report to Moderator
That's probably pretty much it. Many sites perform redirects such that regardless what the HTTP Host: header says, whether it be an IP address or anything other than www.site.com, it'll redirect to the canonical name of the site: www.site.com. Doing so helps maintain order at search engines etc because some engines might think, say, 'site.com' is different to 'www.site.com'. Indeed it may well be in some cases but if it isn't then each site can only seem half as popular hence search rankings get it if they're not forced to be one and the same.
To illustrate with an example, if you go to http://newtonnet.co.uk it'll redirect to http://www.newtonnet.co.uk. If you had www.newtonnet.co.uk in your HOSTS file then your setting would always end up taking effect. I had to intentionally prevent the redirect pattern matching from acting on just an IP address but if I hadn't then it'd exhibit exactly the same behaviour that you've been seeing.
Mathew
To illustrate with an example, if you go to http://newtonnet.co.uk it'll redirect to http://www.newtonnet.co.uk. If you had www.newtonnet.co.uk in your HOSTS file then your setting would always end up taking effect. I had to intentionally prevent the redirect pattern matching from acting on just an IP address but if I hadn't then it'd exhibit exactly the same behaviour that you've been seeing.
Mathew
Message 3 of 3
(350 Views)
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page