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.


abena

42 posts

Geek
Inactive user


#11828 14-Feb-2007 05:30
Send private message

Hi, I've trying to block some DNS lookups, but i'm not sure how to do it.... i need someone to explain me pleaseeeee Cry

Create new topic
freitasm
BDFL - Memuneh
80654 posts

Uber Geek
+1 received by user: 41050

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

#60736 14-Feb-2007 08:49
Send private message

Is this from your PC or a network? And just some IP addresses?

If it's your PC and just some IP addresses, then you can add an entry to the HOSTS file like ths:

127.0.0.1 domain

This will point such domain to localhost...





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




abena

42 posts

Geek
Inactive user


#60751 14-Feb-2007 11:26
Send private message

Well.... let me explain you what i'm triyng to do...  is just for my pc, is not a network... I'm trying to disable the "gmail chat" and to do so, i must block a DNS, but i really dont know how, and about the host files...  Embarassed i don´t know which is it.

Thanks freitasm!


freitasm
BDFL - Memuneh
80654 posts

Uber Geek
+1 received by user: 41050

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #60753 14-Feb-2007 11:29
Send private message

Well, this works if you know the IP addresses and the server names. Open notepad and add the line with IP address and server name to \windows\system32\drivers\etc\hosts (replace \windows with the folder where your Windows is installed if not the default).





Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 




abena

42 posts

Geek
Inactive user


#60757 14-Feb-2007 11:39
Send private message

Ready!, it works....


THANKS! 
Kiss

abena

42 posts

Geek
Inactive user


#61179 19-Feb-2007 08:57
Send private message

Hi!, I'm trying to block the Windows Live Messenger, blocking the DNS lookup on the hosts file, I've be trying this:

# MSN Messenger
127.0.0.1 messenger.hotmail.com
127.0.0.1 get.live.com
127.0.0.1 messenger.msn.com
127.0.0.1 messenger.msn.es
127.0.0.1 www.messenger.hotmail.com
127.0.0.1 www.get.live.com
127.0.0.1 www.messenger.msn.es

And then setting the hosts file as "Read Only" but it doesn`t work, the msn is still working... How do I know which DNS is the right one???

freitasm
BDFL - Memuneh
80654 posts

Uber Geek
+1 received by user: 41050

Administrator
ID Verified
Trusted
Geekzone
Lifetime subscriber

  #61180 19-Feb-2007 09:14
Send private message

I think those URL should all be left out of the hotsts file. Try blocking this one as a start: gateway.messenger.hotmail.com. If you want you can also try blocking with some software, for example http://www.plevna.f9.co.uk/blockmsnmessenger.htm.








Referral links: Quic Broadband (free setup code: R587125ERQ6VE) | Samsung | AliExpress | Wise | Sharesies 

 

Support Geekzone by subscribing (browse ads-free), or making a one-off or recurring donation through PressPatron.

 


 
 
 
 

Shop now on Samsung phones, tablets, TVs and more (affiliate link).
abena

42 posts

Geek
Inactive user


#61200 19-Feb-2007 11:46
Send private message

Hi... firstable, thank you so much for your help Mauricio.... Well, i added the one you suggested me, but it didn't work either.... Now, my dude is bigger... is there any way to know which URLs is accessed by an specific program, i mean, how can i know, if there is a way, to know what URL is using my MSN, for example?

Thanks !!
Smile

abena

42 posts

Geek
Inactive user


#61227 19-Feb-2007 14:57
Send private message

Ok, I could do it all ready, this is what I did:



On the Hosts file:
127.0.0.1 messenger.msn.com
127.0.0.1 messenger.hotmail.com



Set the file as "Read Only" and reboot.


Laughing It works perfectly, it blocks the use of the msn perfectly, and to unblock it again, just comment (#) the line




juha
1317 posts

Uber Geek
+1 received by user: 7

Trusted

  #61241 19-Feb-2007 15:51
Send private message

Hola Abena. The Hosts file is quite a crude mechanism really, but you could try setting a Group Policy instead to prevent the use of certain programs. As Administrator, run "gpedit.msc" without the " quotes. On a single machine, drill down the Administrative Templates tree like so:
GPEDIT
And configure Windows Messenger not to run.

That's Windows Messenger though, and it may not work with MSN or Live Messenger, in case it's installed. For that, go into the User Configuration tree, Administrative Templates, and the System branch. In there, double-click the Don't run specified Windows applications item and list the IM programs you don't want to run.

If you have a Windows network with a Domain Controller and Active Directory, you won't have to specify the above on each machine of course.




abena

42 posts

Geek
Inactive user


#61242 19-Feb-2007 16:11
Send private message

Wow!, that sounds really interesting!, but when i try "gpedit.msc" it says that the system can't find the file, I think this is because i'm using a Home Edition XP Version... Ii don't know if to execute "Regedit" is the same... is it?


juha
1317 posts

Uber Geek
+1 received by user: 7

Trusted

  #61243 19-Feb-2007 16:18
Send private message

The Group Policy Editor Microsoft Management Console or gpedit.msc is not the same as the Registry Editor :).

It should be in your %windir%\system32 folder (like c:\windows\system32). Which version of Windows are you using?

But... if you're inexperienced as an administrator, please be careful here. If you make a mistake, you could lock yourself out of your system. Make sure you have back ups of everything.






 
 
 

Support Geekzone with one-off or recurring donations Donate via PressPatron.
abena

42 posts

Geek
Inactive user


  #61244 19-Feb-2007 16:23
Send private message

I working on a home edition version, and I just read this: GPEDIT.MSC (Group Policy Editor) isn't available on XP Home Edition, partly because XP Home cannot join a domain by desig....  Frown Is there any alternative??


Gracias Juha..





juha
1317 posts

Uber Geek
+1 received by user: 7

Trusted

  #61245 19-Feb-2007 16:36
Send private message

Hmm, XP Home Edition is crippled so it's not easy to replicate the functionality found in XP Pro unfortunately. If upgrading to Pro isn't an option, your fastest and least painful way forward is to use Mauricio's tip. Yes, by hacking the Registry and/or installing the various files required by the Group Policy MMC, you can do what I suggested, but life's too short and it's summer in the southern hemisphere so... Laughing




abena

42 posts

Geek
Inactive user


#61246 19-Feb-2007 16:43
Send private message

Jajaja.... it's ok Juha, now i'm gonna have to upgrate to XP Pro because of you... I want to try the "gpedit.msc"... when i do it, i
definitely let you know.

Hasta Pronto!


juha
1317 posts

Uber Geek
+1 received by user: 7

Trusted

  #61247 19-Feb-2007 16:48
Send private message

OK... buena suerte with the upgrade and remember: back up. First. Before you do anything. :)




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.