[How-To] Flush DNS Cache

If you are a developer who often has to test same application deployed on different servers, the various options you have are

1.) Modify your HOSTS file to point to a new IP. You can learn more about modifying HOSTS file by reading previous posts on HOSTS file ( Microsoft Windows: More fun with the HOSTS file and Block Websites of your choice without any Software)

2.) Modify the DNS Entry of your Website. This is useful if you have testers who are not technically savvy doing the testing. In such a scenario all you need to do is modify the DNS entry and the new IP is reflected as soon as the change happens.

However, if you are having issues with the DNS IP Resolution and if even after a change on your DNS Server, the new IP is not getting reflected, its time to Flush the DNS Cache. 

DNS Resolution of My Website is Cached? How can i Clear this Cache?

Follow the Steps below

1.) In your windows machine, open the command window by going through Start –>Run and type Cmd.

Initiate the command window

Image: Initiate the command window

2.) At the Command Prompt, type ipconfig /flushdns as shown below in the figure.

Flush out DNS Cache

Image: Flush out DNS Cache

3.) Your DNS Cache is now flushed. What this means is, that your computer will now make a new request to your DNS Server for getting the IP Address. 

The above listed trick lets you flush the DNS Cache from the local resolver of your computer. However, the DNS Entry might still be cached at the DNS Server. 

How Can i Stop the Local DNS Resolver from Caching at All?

Yes. If you make frequent changes to your IP Address and would like to keep the DNS Cache Resolver away from Caching the entries, you can stop the service by typing net stop dnscache at the command prompt.

In order to start the service again, type net start dnscache.

Starting and Stopping the DNS Local Resolver Caching.

Image: Starting and Stopping the DNS Local Resolver Caching.

You can even tweak Windows Registry to modify the DNS Caching behaviour

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. MaxCacheTtl needs to be a new DWORD.

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. MaxNegativeCacheTtl needs to be a new DWORD.

How Do I Flush DNS Cache in Linux?

In Linux, DNS Cache is managed by a service called nscd. To restart the nscd daemon, use the command `/etc/init.d/nscd restart`.

 

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.


6 Special Websearch Services from Google

Google, the big daddy of Search also offers special search features for anything related to US Government, Linux, BSD, Microsoft, Mac and Firefox.

To check out these special Search Features from Google, read out more below 

1.)  Searching for something related to US Government? Check Out  http://www.google.com/unclesam 

2.) Stuck with something in Linux? try out Google’s special Linux search at      http://www.google.com/linux

3.) For all your search related to BSD, refer http://www.google.com/bsd

4.) Own a Mac? Try out searching forMAC related information at http://www.google.com/mac

5.) Google also offers a search about Microsoft, find it at http://www.google.com/microsoft

6.) Another very interesting Topic covered on Google is Firefox, search for it at http://www.google.com/firefox

[How-To] Create Powerpoint Presentation in Five Minutes

This post talks about creating Powerpoint Presentations in relatively very less time. Below is an embedded video from Youtube which talks very clearly about creating Powerpoint presentations using in-built templates and SmartArt.

Another interesting post worth having a look at is available at Lifepal, it talks about Creating Powerful Powerpoint Presentation by Nancy Duarte.

Some point to note when you go in for the presentation

1.) Remember to KISS, i.e. Keep it short and Simple.

2.) Use more of graphic than the text: More text means more attention diversion.

3.) Keep the humor going: Its important that while delivering presentation, you keep your Humor Quotient up. This helps the audience stay focussed.

4.) Practice makes a man perfect: Before you deliver your presentation, do rehearse it once in front of a mirror or some friends and seek feedback for further improvement.

Also read: Kingsoft Office 2007: Microsoft Office comes free « Technofriends

How-To: Copy and Align Shapes in Microsoft Powerpoint

You can also follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav

[X-Box 360] Run updates from a disc

If you have a XBox 360 but somehow still haven’t got it online or if you are also one of those who is having trouble downloading the latest dashboard updates, this post should be of help to you.

In order to make this process work, all you need to do is burn an update disc from Xbox 360 website using your computer and then use that very disc to update your XBox 360.

 

X box 360 box

X box 360 box

To create an update disc you need the following:

 

  • A DVD or CD burner.
  • A blank, writeable DVD or CD.
  • The update file from Xbox.com.

To create a DVD or CD:

  1. Click here to begin downloading the update folder. Save it as “$SystemUpdate_Fall07.zip” anywhere on your computer.
  2. Place a blank disc in your burner. From Windows Explorer, select Open Writable CD Folder Using Windows Explorer or open the CD drive icon.
  3. Drag the zipped $SystemUpdate_ Fall07.zip folder to the CD Folder. If the CD write window doesn’t open by default, drag and drop the folder onto the CD/DVD RW drive.

    Note: If you are using an earlier version of Windows you will need to open the file using a separate utility (for example, WinZip).

  4. In the Explorer window, click Write files to CD from the CD writing tasks or right-click the CD/DVD RW drive and select Write these files to CD.

    Caution : The update filename and folder structure must be intact for the update to run properly.

  5. Follow the steps in the CD wizard.When you are finished with the wizard, the CD will eject. Your CD is ready.

To update the console:

  1. Place the CD in the Xbox 360 console.
  2. Power cycle the Xbox 360 console.
  3. The update program will start automatically. Select Yes, update nowand press A.
  4. Wait for the update to complete.
  5. When the console reboots, you’re done.

Also read: [How-To] Shutdown your Windows machine instantly

How-To: Link and not attach in Microsoft Outlook.

How-To: Display two time zones in Microsoft Outlook

 

You can follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav Pandey

[How-To] Missed Outlook Attachment,get warned before its too late

Gmail labs has an interesting feature which warns you if you miss to attach an attachment when sending the mail. A similar feature can be achieved in Microsoft Outlook as well, using Visual Basic scripting. 

For those of you who wish to achieve the same in Outlook, here is the step by step process.

1.) Ensure that Macros are enabled for your Microsoft Office Outlook. Macros don’t work with Microsoft Outlook Express, therefore this setup cannot be achieved with Microsoft Outlook Express.

2.) Ensure that your security level is set to Medium. You can set the security level by clicking on Tools –> Macro –> Security. Set the desired level to Medium.

3.) Traverse through Tools –> Macro –> Visual Basic Editor ( Or press ALT + F11)

4.) Expand Project 1 by clicking on the + sign.

Project Edition in Outlook

Project Edition in Outlook

5.) Expand Microsoft Office Outlook Objects.

6.) Double click ThisOutlookSession.

Code for Attachment Detection

Code for Attachment Detection

7.) Copy paste the following code. 


Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)

    Dim lngres As Long

    If InStr(1, Item.Body, "attach") <> 0 Then

        If Item.Attachments.Count = 0 Then

            lngres = MsgBox(" Found 'Attach' in message, but no attachment found - send anyway?", _

                            vbYesNo + vbDefaultButton2 + vbQuestion, "You asked me to warn you...")

            If lngres = vbNo Then Cancel = True

        End If

    End If

End Sub

8.) The above code looks for the term “attach” ( without quotes) in the message body. If you send mails in your local language which is other than English, replace the word “attach” to the word you would be interested in searching for. This will make the code look for that particular word.

9.) Once the code is pasted, click on Save and then Exit.

Detecting attachments in Outlook

Detecting attachments in Outlook

10.) From now on, if you create any mail with Attach in the mail body and try sending it without attaching any file, you will get an alert.

Enjoy no more missing attachments in your important mails. Hope this post helps.

Also read[How-To] Recover lost Outlook PST Password

Kingsoft Office 2007: Microsoft Office comes free

How-To: Display two time zones in Microsoft Outlook

Recovering ‘permanently’ deleted email in Microsoft Outlook 2003

Microsoft Outlook: Creating an Appointment From a Mail

You can also follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav

 

 

 

 

 


[How-To] Recover lost Outlook PST Password

If you happen to be one of those who is scratching his/her head trying to remember the password of your PST folder in Outlook, this post should bring instant relief to you.

PstPassword is a small utility that recover lost password of Outlook .PST (Personal Folders) file. The process of running this utility is simple and you dont even need to install it onto your computer. This utility can recover the PST passwords of Outlook 97, Outlook 2000, Outlook XP, Outlook 2003, and Outlook 2007. You don’t have to install MS-Outlook in order to use this utility. You only need the original PST file that you locked with a password.

Microsoft Outlook 2003

Earlier, in one of my posts i had also mentioned the process of recovering deleted mails in Microsoft Outlook. This post is another case wherein the user has lost the password of the PST folder and is therefore, not able to open up the personal folder under Outlook.

PstPassword recovery tool can help you recover lost password

To open up the password protected pst folder, follow the steps below

1.) Download PstPassword

2.) Run the application and select the PST file for which you wish to recover the password.

3.) After you run PstPassword, the main window displays the list of all PST files of the current logged on user (Under Documents and Settings\User Name\Local Settings\Application Data\Microsoft\Outlook). For each password-protected PST file, PstPassword provide 3 alternative passwords that will open the PST file. If the PST is not protected by a password, the 3 password columns remain empty, and the CRC value column is 0x00000000.

4.) If you want to recover a password of PST file that doesn’t appear in the default list, you can press F7 and select the desired PST file, or simply drag the PST file from Explorer window into the main window of PstPassword.

5.) If from some reason PstPassword fails to read a PST file, an error message is displayed under the error column, and the item is painted with pink color.

Also read: Recovering ‘permanently’ deleted email in Microsoft Outlook 2003

Recovering Hard Deleted Items in Outlook 2003.

Top 10 Password Crackers.

You can also follow me on Twitter at http://twitter.com/vaibhav1981

Do stay tuned to Technofriends for more, one of the best ways of doing so is by subscribing to our feeds. You can subscribe to Technofriends feed by clicking here.

Cheers

Vaibhav