05-11-2005, 13:01
|
#1
|
|
Inactive
Join Date: Nov 2005
Posts: 3
|
hosts file and NTL
I have been given a domain name along with an IP address that is to be inserted into my hosts file within my System32/Drivers/etc dir. The reason is for me to view my website home page on a different server.
www.example.com Original Domain
example.com new domain with an IP address in the hosts file.
I have entered the IP address and its related domain name into the hosts file and have tested this using a BT connection †“ this works fine. My web browser redirects me to the new server home page as expected.
However when I try the very same using my NTL connection, it doesnââ‚ÆšÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t work. It redirects me to the original domain.
I suspected there was an issue with NTL and contacted their Tech Support. They couldnââ‚Ãâ €šÂ¬ÃƒÂ¢Ã¢â‚¬Å¾Ã‚¢t give me a solid explanation and suggested that the reason maybe because of NTL supplying a non-fixed IP Address.
Has anyone experienced a similar problem? If so, how did you resolve it?
Many thanks
Steve
|
|
|
05-11-2005, 13:09
|
#2
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: hosts file and NTL
Moving to email, Web Proxy & webspace discussion
__________________
 to Cable Forum
I'm not quite clear on what you are trying to do here? Are you hosting a website on your home PC, or is it that you cannot connect to a website hosted somewhere else on the internet?
__________________
If you are trying to host at home, then yes the IP address of your connection is dynamic. Try setting up a redirection through somewhere like www.no-ip.com
|
|
|
05-11-2005, 13:22
|
#3
|
|
Inactive
Join Date: Nov 2005
Posts: 3
|
Re: hosts file and NTL
Ho Rob
thanks for your reply!
My Main website is hosted in USA. And I use www.buyitinwales.com to access it as normal. I have a different hosting company who has made a duplicate of my home page. To access this particular page (from MY pc only) I have been given an IP address and the following domain neme: buyitinwales.com (without the www) an inserted this into my hosts file.
As I mentioned earlier this works fine on a BT connection. It redirects me to the new hosting area as expected. When using NTL it continues to direct me to the normal area.
Thanks again
Steve
|
|
|
05-11-2005, 14:08
|
#4
|
|
Inactive
Join Date: Jun 2003
Location: 127.0.0.1
Age: 62
Posts: 15,868
|
Re: hosts file and NTL
In which case I'd suspect an ntl proxy issue. ntl aren't seeing a difference in the IP names of the two sites. Don't know how you would get round that.
You are sure your PC isn't caching any data - force a refresh (Ctrl-F5 using IE)?
|
|
|
05-11-2005, 14:29
|
#5
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,331
|
Re: hosts file and NTL
You can't do it on ntl, simple as that.
Requests for a domain are intecepted by the proxy - which does it's own dns lookup on the domain, so what's in your hosts file is irrelevnt, ignored. You could create a hosts file pointing every domain at 1.2.3.4 and web browsing would still work ......
* This only applies to http / port 80 requests. It will work as expected for https, or http on ports other than 80.
__________________
Baby, I was born this way.
|
|
|
05-11-2005, 19:25
|
#6
|
|
Guest
Location: Sale, Cheshire
Services: 10MB Broadband, DTV, Telephone
Posts: n/a
|
Re: hosts file and NTL
Eh! How come pointing ad (and porn) domain names at 127.0.0.1 works (i.e. blocks access) then?
|
|
|
|
05-11-2005, 20:30
|
#7
|
|
Inactive
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
|
Re: hosts file and NTL
Because that is happening on your internal network, if you sent the request out on port 80 then it would be served correctly.
|
|
|
05-11-2005, 20:38
|
#8
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,331
|
Re: hosts file and NTL
Quote:
|
Originally Posted by JohnHorb
Eh! How come pointing ad (and porn) domain names at 127.0.0.1 works (i.e. blocks access) then?
|
Because, as smharman says, 127.0.0.1 is your local loopback address, it never leaves your pc.
__________________
Baby, I was born this way.
|
|
|
06-11-2005, 07:21
|
#9
|
|
Inactive
Join Date: Nov 2005
Posts: 3
|
Re: hosts file and NTL
Ok... Would it be fair to say that there is NO solution for my little problem?
Is there not a workaround or something?
Cheers
Steve
|
|
|
06-11-2005, 07:50
|
#10
|
|
Guest
Location: Sale, Cheshire
Services: 10MB Broadband, DTV, Telephone
Posts: n/a
|
Re: hosts file and NTL
Quote:
|
Originally Posted by Paul M
Because, as smharman says, 127.0.0.1 is your local loopback address, it never leaves your pc.
|
Sorry to labour this, but I'm genuinely intrigued. I thought the domain name, if in the hosts file, was resolved to an IP address BEFORE any DNS look-up, so the request leaving the PC would be for the OP's new IP. I'm obviously missing something, but I don't understand where NTL's proxies come into it.
|
|
|
|
06-11-2005, 13:47
|
#11
|
|
Dr Pepper Addict
Cable Forum Admin
Join Date: Oct 2003
Location: Nottingham
Age: 63
Services: Zen & YouFibre FTTP, Sky Q TV, Sky Mobile, Flextel SIP
Posts: 31,331
|
Re: hosts file and NTL
__________________
Baby, I was born this way.
|
|
|
06-11-2005, 13:51
|
#12
|
|
Guest
Location: Sale, Cheshire
Services: 10MB Broadband, DTV, Telephone
Posts: n/a
|
Re: hosts file and NTL
Ah! #4 under transparent proxy. Thanks Paul.
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT. The time now is 18:23.
|