Click to See Complete Forum and Search --> : internet routing
axyjo
Sep 2nd, 2005, 03:06 PM
how do i make a program which routes the internet packets for specific urls
like if i type in 5222222222222222.kline it should point to localhost. do i do that in the hosts file? and does the hosts file work with firefox?
dglienna
Sep 2nd, 2005, 04:31 PM
The hosts file is correct. It works with the Network Connection, so yes, it does work with Fx.
axyjo
Sep 8th, 2005, 04:51 PM
the host file did not work for me.
anything else?
jeroen79
Sep 10th, 2005, 04:21 AM
What did you put in the hosts file?
It should be like <destination ip> <alias name>.
(example: "192.168.0.1 router")
Also, you should flush your local DNS records before trying the changes.
If you don't and the DNS name is listed locally then it will use that listing, not the new entry in your hosts file.
From the commandline: ipconfig /flushdns
BTW, this is not routing.
Routing is the process of getting the package from the sender to the receiver and on the internet this occurs at the IP layer.
Routing is done by routers (hence the name) and not by your PC.
The hosts file helps with resolving a DNS name (like vbforums.com) to an IP address.
Usually DNS adresses are resolved by DNS servers and your computer will store past results in a local cache.
Your hosts file will override the DNS server, or rather prevent the DNS server from being queried at all.
axyjo
Sep 10th, 2005, 08:46 AM
so if i enter
10.10.10.1 onion
and if i type in onion in my web browser, it will take me to 10.10.10.1?
asmdev
Sep 10th, 2005, 10:28 AM
yes .
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.