Troubleshooting DNS issue with Nslookup command

When troubleshooting DNS problem, Nslookup is used to perform DNS queries and to examine the contents of zone files on local and remote servers.

Nslookup is a standard command-line tool which available on Windows, Linux and Mac OS platform. Nslookup offers you the ability to perform query testing of DNS servers and to obtain detailed responses at the command prompt.

To use nslookup in command-line mode, enter the following in the command prompt window:

nslookup DNS_name_or_IP_address server_IP_address

This command will look up a DNS name or address using a server at the IP address you specify.”

Here i going to show few examples on using the nslookup command. Continue reading

Centos 5.6: Find PHP Version using Command Line

I wanted to install phpmyadmin on Centos 5.6 Machine. I check from phpmyadmin official web site, phpmyadmin requires at least PHP 5.2 and MySQL 5. I have to check my php version 1st before start install.

Here is a useful command to display or show what version of php you have installed in your Linux Machine.

Just enter following command to check your PHP Version

[ 2]# php -v
PHP 5.1.6 (cli) (built: Nov 29 2010 16:47:46)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies

Once you enter the php -v command, you should able to see the result like what i show you above, if you don’t get something like the above, then it means that you don’t have php installed in your server.