Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

change dns so that it always take me to one site

Posted on 2013-02-01
10
Medium Priority
?
189 Views
Last Modified: 2013-02-01
is there an example somewhere that i could find to do the following:
when i open my browser, it will always direct me to one website. so say i want to go to www.cnn.com, it will take me to www.yahoo.com and www.google.com, it will take me to www.yahoo.com

in c# please. thanks
0
Comment
Question by:StewSupport
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 5
10 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38845205
I can't think of any legitimate reason for this.  Can you explain what it is you're trying to accomplish?  Why can't you change DNS manually?
0
 

Author Comment

by:StewSupport
ID: 38845222
it doesn't have to be an app. is there a way to change the setting in ie manually?
0
 

Author Comment

by:StewSupport
ID: 38845430
I've requested that this question be deleted for the following reason:

change proxy
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 34

Accepted Solution

by:
Paul MacDonald earned 2000 total points
ID: 38845290
You can edit the "hosts" file on the system.  That will accomplish much the same thing, but it will be for all applications, not just IE.

Here are generic instructions for a Windows system:
http://www.howtogeek.com/howto/27350/beginner-geek-how-to-edit-your-hosts-file/
0
 

Author Comment

by:StewSupport
ID: 38845320
yes but that will prevent the user going to that site, what if i want to redirect them to one site.
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38845336
Change the IP address in the hosts file so it appears to be a particular host name.  In other words...
     w.x.y.z     www.yahoo.com
...where w.x.y.z is the IP address for cnn.com.  Then, whenever someone tries to go to www.yahoo.com, they get sent to cnn.com.

If you have a proxy - and your closing reason implies you do - that might be a better/easier solution.
0
 

Author Comment

by:StewSupport
ID: 38845344
can we use webproxy in c# instead of host file?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38845362
If you mean "webproxy" as in the .Net control, the answer is no.  

I meant "proxy" as in a device that sits between the client and the Internet to control access.
0
 

Author Comment

by:StewSupport
ID: 38845373
ok but instead of listing out the address can we do like * for all addresses? that way you only do it once time and do i need to restart the machine for this to work?
0
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 38845417
No, you can't use wildcards (at least not on Windows machines).
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question