Tag Archives: domain

How to Redirect a URL in a Virtual Host

How to Redirect a URL in a Virtual Host | Redirecting a URL in a virtual host is a snap! I’ll show you how. Scenario: you have a server that receives example.com but you want that to redirect to example2.com. First you will want to add this to your /etc/apache2/ports.conf (Debian or Ubuntu) or /etc/httpd/conf/httpd.conf (Red Hat or CentOS) if you have not already: NameVirtualHost

Perform DNS Lookups with the host command

Perform DNS Lookups with the host command | The dig command is commonly used to make DNS queries. However, a much overlooked command is the host command. Here are some quick tips for a useful tool to add to your bag of tricks or to impress your friends. The syntax is: $ host [domain.com] When run with no options, a simple quick summary