Friday, 6 April 2018

Redirect naked domain to www using DNS and without using .htaccess

I wanted to redirect my domain sysadmindiaries.com to www.sysadmindiaries.com without using .htaccess or any other 301 redirect as it is hosted in Blogger. Blogger doesn't support this redirect by default and there is no option to use .htaccess files.

So for this purpose, I found that wwwizer.com is very helpful. Just point your naked domain to the IP address 174.129.25.170 as A record in your DNS settings.


Saturday, 2 January 2016

Enable ipv4 for sending emails in postfix in ubuntu server

Some times Gmail will not accept the mails from postfix server which is configured to have the emails sending over all network protocol. So we need to change the protocol to ipv4.

You can do the below steps to enable sending mails through postfix using ipv4.

Backing up the Plesk log files to Amazon AWS s3 bucket using s3cmd tool

Amazon S3 is one of the most reliable backup location. So we had a requirement to backup the website logs to S3 bucket for data retention purpose. We have achieved this using s3cmd command line tool in Centos 6.3 server.


How to enable name resolution for Ubuntu 14.04 server using resolv.conf,DNSMasq and network configuration

Recently I faced the issue where in one of my Ubuntu servers, I'm unable to set up the name servers in /etc/resolv.conf . Whenever I set this and restart networking or resolvconf, it is getting overwritten. This was causing me issues as I'm unable to ping google.com. This is what I'm getting when I ping.

[email protected]:~# ping google.com
ping: unknown host google.com