Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


timmmay

20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

#178958 20-Aug-2015 18:25
Send private message

I do quite a few little jobs where I move websites between servers. Before I change DNS I'd like to check that the new server will respond to the request with the correct content before I make the DNS change. I know I can make a change in my local hosts file, but that's a bit annoying. Is there a better way?

Create new topic
sidefx
3775 posts

Uber Geek
+1 received by user: 1295

Trusted

  #1371047 20-Aug-2015 18:49
Send private message

I used this firefox plugin a fair bit a while ago (I can't recall why) 

https://addons.mozilla.org/en-us/firefox/addon/hostadmin/ 

I seem to recall it essentially automating the process of modifying your hosts file, so I'm not sure how well it fits what you're looking for, but might be worth a look.




"I was born not knowing and have had only a little time to change that here and there."         | Octopus Energy | Sharesies
              - Richard Feynman




timmmay

20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #1371081 20-Aug-2015 20:05
Send private message

Seems to crash in the latest version. Guess I'll use a hosts file for now.

rphenix
990 posts

Ultimate Geek
+1 received by user: 127

ID Verified
Lifetime subscriber

  #1371648 21-Aug-2015 15:18
Send private message

Windows: I use fiddler2 set your browser to use it as a proxy, under tools it has hosts manager which you can tell it to replace certain host names with another hostname or ip address works well.  Wildcards on domain names are supported.

Linux I just run my own local dns server and edit that way.



timmmay

20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #1371760 21-Aug-2015 18:06
Send private message

Fiddler, good idea, worth a shot. Seems like simply changing the hosts file may be the easiest way though.

rphenix
990 posts

Ultimate Geek
+1 received by user: 127

ID Verified
Lifetime subscriber

  #1371764 21-Aug-2015 18:29
Send private message

I find fiddler faster since it supports wildcards and you can toggle the DNS mapping off and on with one click rather than having to comment out multiple lines like I tend to have to in windows hosts file.
+ I can verify where  a page I just requested was actually pulled from which is a help since sometimes if you have the page open in another tab it keeps requesting from a host your not expecting after updating the hosts file.


timmmay

20858 posts

Uber Geek
+1 received by user: 5350

Trusted
Lifetime subscriber

  #1371786 21-Aug-2015 19:13
Send private message

Sounds ideal. I used fiddler once before, something to do with HTTPS diagnosis.

Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.