Archive for the HowTo - Général Category

How do I flush DNS?

Posted in HowTo - Général, HowTo - Linux, HowTo - Mac OS X, HowTo - Windows on October 2, 2008 by aristomagnus

From: http://www.tech-faq.com/flush-dns.shtml

Most DNS clients cache the results of name resolution requests. This speeds up name resolution if multiple lookups are done to the same address, such as is common when browsing the web.

Sometimes a bad DNS entry will be cached and you will need to either flush the DNS cache to get rid of it, or wait up to 24 hours for it to be dropped from the cache automatically.

How to Flush DNS in Microsoft Windows

In Microsoft Windows, you can use the command ipconfig /flushdns to flush the DNS resolver cache:

C:\>ipconfig /flushdns
Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

You can also use the command ipconfig /displaydns to view the DNS resolver cache.

Turning off DNS Caching under Microsoft Windows

If you experience frequent issues with DNS caching under Microsoft Windows, you can disable client-side DNS caching with either of these two commands:

  • net stop dnscache
  • sc servername stop dnscache

This will disable DNS caching until the next reboot. To make the change permanent, use the Service Controller tool or the Services tool to set the DNS Client service startup type to Disabled.

Tuning DNS Caching under Microsoft Windows

You can modify the behavior of the Microsoft Windows DNS caching algorithm by setting two registry entries in the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Dnscache\Parameters registry key.

The MaxCacheTtl represents the maximum time that the results of a DNS lookup will be cached. The default value is 86,400 seconds. If you set this value to 1, DNS entries will only be cashed for a single second.

MaxNegativeCacheTtl represents the maximim time that the results of a failed DNS lookup will be cached. The default value is 900 seconds. If you set this value to 0, failed DNS lookups will not be cached.

How to Flush DNS in Mac OSX

In Mac OSX Leopard, you can use the command dnscacheutil -flushcache to flush the DNS resolver cache:

bash-2.05a$ dnscacheutil -flushcache

In Mac OSX versions 10.5.1 and before, the command lookupd -flushcache performed the same task:

bash-2.05a$ lookupd -flushcache

How to Flush DNS in Linux

In Linux, the nscd daemon manages the DNS cache.

To flush the DNS cache, restart the nscd daemon.

To restart the nscd daemon, use the command `/etc/init.d/nscd restart`.

Retouche photos

Posted in HowTo - Général on March 5, 2008 by aristomagnus

Russell Addis Says:
March 4, 2008 at 3:17 pm

Un petit logiciel qui peut être pratique lors des retouches de photo :

http://www.colorpilot.com/wire.html

See ya!

Piclens Firefox Plugin

Posted in HowTo - Général on February 14, 2008 by aristomagnus

Did you try it already? The PicLens plugin for firefox is amaziiiiiiiing! It’s a must see!

Click on that link to install the plugins:

http://www.cooliris.com/

Informations pertinentes concernant les DNS et noms de domaine

Posted in HowTo - Général on January 3, 2008 by aristomagnus

Vous voulez savoir comment voir les informations d’un domaine? Vous vous êtes toujours demander comment l’Internet fonctionnait?

Chaque fois que vous faite un ping ou une requête HTTP avec un fureteur web, vos DNS (configuré avec votre IP privé de machine ou en dhcp si vous avez un routeur) pointent sur des DNS public de votre fournisseur Internet qui lui à une base de donnée propre (BIND) qui doit faire un refresh selon le TTL (time to live) configuré partir des DNS configurés pour un domaine en particulier. Je vous perds? Voici un exemple.

Exemple:

Machine utilisé: DHCP
IP de la machine: 192.168.1.101
netmask: 255.255.255.0
Gateway: 192.168.1.1
DNS: 192.168.1.1

Donc, mon DNS est 192.168.1.1 (le routeur) qui lui, a aussi un DHCP pointant sur 2 ou 3 DNS public appartenant au fournisseurs Internet.

Quand je fais: ping slashdot.org
Le ping va demander à mon DNS 192.168.1.1 (le routeur) qui lui va demander aux DNS de mon fournisseur Internet. Mon fournisseur Internet regarde dans ces base de donnée DNS et retourne le IP pointant sur le nom du domaine slashdot.org.

Si le TTL du domaine est expiré, il demandera au DNS du domaine quel est le IP qui pointe maintenant sur ce domaine. Si le IP a changé, il modifiera sa base de donnée.

Exemple de la commande whois sous linux:

$ whois slashdot.org

Domain ID:D2289308-LROR
Domain Name:SLASHDOT.ORG
Created On:05-Oct-1997 04:00:00 UTC
Last Updated On:06-Nov-2007 01:57:42 UTC
Expiration Date:04-Oct-2008 04:00:00 UTC
Sponsoring Registrar:Tucows Inc. (R11-LROR)
Status:OK
Registrant ID:tuAhkYq7f8Mbfpgr
Registrant Name:DNS Administration
Registrant Organization:SourceForge, Inc.
Registrant Street1:46939 Bayside Parkway
Registrant Street2:
Registrant Street3:
Registrant City:Fremont
Registrant State/Province:CA
Registrant Postal Code:94538
Registrant Country:US
Registrant Phone:+1.5106877000
Registrant Phone Ext.:
Registrant FAX:+1.5106877155
Registrant FAX Ext.:
Registrant Email:dns-admin@ostg.com
Admin ID:tu7bL5n14AURmZqS
Admin Name:DNS Administration
Admin Organization:SourceForge, Inc.
Admin Street1:46939 Bayside Parkway
Admin Street2:
Admin Street3:
Admin City:Fremont
Admin State/Province:CA
Admin Postal Code:94538
Admin Country:US
Admin Phone:+1.5106877000
Admin Phone Ext.:
Admin FAX:+1.5106877155
Admin FAX Ext.:
Admin Email:dns-admin@ostg.com
Tech ID:tusCtXZ58HLRRcgZ
Tech Name:DNS Technical
Tech Organization:SourceForge, Inc.
Tech Street1:46939 Bayside Parkway
Tech Street2:
Tech Street3:
Tech City:Fremont
Tech State/Province:CA
Tech Postal Code:94538
Tech Country:US
Tech Phone:+1.5106877000
Tech Phone Ext.:
Tech FAX:
Tech FAX Ext.:
Tech Email:dns-tech@ostg.com
Name Server:NS1.OSTG.COM
Name Server:NS2.OSTG.COM
Name Server:NS3.OSTG.COM

Vous pouvez donc voir qui a enregistré le domaine, la date de l’enregistrement et la date d’expiration. Ce qui est aussi très pratique est les names server. Les serveurs DNS qui font le travail de pointer le nom de domaine sur un IP public. Par exemple: Si vous faite ping slashdot.org

# PING slashdot.org (66.35.250.150) 56(84) bytes of data.

L’information reçu (le IP ET si le serveur répond) sont liées de près aux serveurs DNS qui font la conversion.

Voilà!