hosts

FLUSH syntax (clearing caches) – MySQL

FLUSH flush_option [,flush_option] You should use the FLUSH command if you want to clear some of the internal caches MySQL uses. To execute FLUSH, you must have the reload privilege.flush_option can be any of the following:   HOSTS Empties the host cache tables. You should flush the host tables if some of your hosts change [...]

How to configure IP-based Virtual Host in APache

As the term IP-based indicates, the server must have a different IP address for each IP-based virtual host. This can be achieved by the machine having several physical network connections, or by use of virtual interfaces which are supported by most modern operating systems (see system documentation for details, these are frequently called “ip aliases”, [...]

General Unix Commands

ls – (List Schema) This command will list the contents of your current directory. It only returns files that are not (.) “dot” files. mkdir – (Make Directory). With this command will create a subdirectory in your home directory. cd – (Change Directory) With this command you can move from your current working directory to [...]

How to Install and Configure qmail-qfilter

Qmail-qfilter provides a convenient way to pass each incoming email message through a series of filters, each of which may reject or modify the message. This happens before the message enters the queue, so rejects do not become bounce messages. Instead, the client is told immediately that the message was not accepted. Filters In order [...]

How to Configure Zend Debugger in PHP applications

It is very easy to debug the code if you enable Zend Debugger. There are only two steps whuch will enable you to run Zend Debugger. The first step is to copy pate the folloing code to your php.ini file, paste it in the end of php.ini file. ; Zend extension added  zend_extension=/usr/local/apache/bin/ZendDebugger.so zend_debugger.allow_hosts=127.0.0.1/32  zend_debugger.allow_hosts=127.0.0.1/32, [...]

How to Specify the Hosts That You Want to Openly Relay to All Domains in Windows

This step is for hosts, which are most likely your internal servers that would need to send to all domains on the Internet. It is not recommended to not have any restrictions because anyone can use your server as an open relay. It is recommended to only allow the minimum, necessary hosts to openly relay [...]

How To Grant/Deny Access to Particular Web Files Using Apache

When browsing web files and directory, most bots, without consideration to .htaccess restrictions, have the capability to crawl and sniff files and folders located under your web root folder, even if these files and folders were not visually displayed from your web pages. Take for an example, you displayed a file under http://domain.com/folder1/folder2/folder3/page.html Most bots [...]

How to access your server via SSH

If you are unfamiliar with SSH this is ok. This is a simple explanation to get you to a command prompt on your new server or existing server. Simply download a program called “putty.exe” if you are using Windows. If you are using MAC you will need to jump in to the shell and follow [...]

How to set the Hostname in Linux

Most, if not all, network applications rely on you to set the local host’s name to some reasonable value. This setting is usually made during the boot procedure by executing the hostname command. To set the hostname to name, enter: # hostname name   It is common practice to use the unqualified hostname without specifying the domain name. [...]

How to Use Nslookup to query Domain Name System

nslookup is a computer program used in Windows and Unix to query Domain Name System (DNS) servers to find DNS details, including IP addresses of a particular computer, MX records for a domain and the NS servers of a domain. The name nslookup means “name server lookup”. The most common version of the program is [...]

A brief to various iptables commands

We will use an example based approach to examine the various iptables commands. In this first example, we will create a very simple set of rules to set up a Stateful Packet Inspection (SPI) firewall that will allow all outgoing connections but block all unwanted incoming connections:

How to Block IP address of any country with iptables

Sometime it is necessary to block incoming connection or traffic from specific remote host. iptables is administration tool for IPv4 packet filtering and NAT under Linux kernel. Following tip will help you to block attacker or spammers IP address.  The blocklist is create with an API I wrote and you can use wget to update [...]

How to Verify Email Security With tcpdump

I can use tcpdump to verify that encryption is working. Here is what a plain unencrypted POP mail session looks like. This is an abbreviated example showing only the initial three-way TCP handshake. You can do this yourself by firing up tcpdump, then checking mail. Ctrl+C stops it: # tcpdump port 110 15:04:49.050227 windbag.34348 > [...]