Monthly Archives: July 2008

How to Unzip a .gz File

$ gzip -d compressed_file.gz

Posted in Linux | Tagged , | 1 Comment

A Simple Menu With CSS Beautification

visitors, click here admin, proceed to saps <html> <head> <style type=”text/css”> body { font-size: 12px; font-family: arial; } a { margin-top: 1px; display:block; line-height: 25px; border-left: solid 10px #DDDDDD; text-decoration: none; padding-left: 11px; background-color: #EEEEEE; } a:link {} a:visited {} … Continue reading

Posted in CSS | Tagged , | Leave a comment

Free Secondary DNS and Online DNS Tools

These free tools have been designed to validate and check the health of your public DNS servers. Free Secondary DNS for your domains. If your looking for another DNS to put your domain in, this is for you. Providing additional … Continue reading

Posted in Linux, Linux Administration | Tagged , , | 1 Comment

How to Create Database and Add User To It

Here are the SQL commands: create database newdb; grant CREATE,INSERT,DELETE,UPDATE,SELECT on newdb.* to newuser@localhost; SET PASSWORD FOR ‘newuser’@'localhost’ = password(‘newuserpass’); – or – SET PASSWORD FOR ‘newuser’@'localhost’ = old_password(‘newuserpass’); flush privileges;

Posted in Database, MySQL, Programming, SQL | Tagged , | Leave a comment

How to setup a primary nameservers on a dedicated server

Here are the steps: Locate named.conf and go to that folder. Add DNS entries for your nameserver. Edit the pri.yourname.com file for the domain you are adding nameservers for. Add these two lines at the bottom of the file: ns1 … Continue reading

Posted in Linux, Linux Administration | Tagged , , , | Leave a comment

Keeping the Root Hints Current

To keep the root hints file current, use the following command. $ dig @a.root-servers.net . ns > db.cache

Posted in Linux, Linux Administration | Tagged , , | Leave a comment

How to check your DNS configuration and zone files

If you are running BIND 9, you have handy new tools to help maintain your nameserver files: named-checkconf and named-checkzone. These tools reside in /usr/sbin or /usr/local/sbin. named-checkconf checks the configuration file for syntax errors. $ /usr/sbin/named-checkconf zonename db.local zone … Continue reading

Posted in Linux, Linux Administration | Tagged , , | Leave a comment

Installing your own DNS Server

This how-to assumes a Debian-type Linux server.  1)  Install BIND $ sudo apt-get install bind9 2)  Run BIND chrooted.  For security reasons we want to run BIND chrooted so we have to do the following: $ sudo /etc/init.d/bind9 stop Edit … Continue reading

Posted in Linux, Linux Administration | Tagged | Leave a comment

How to check if nameserver is valid (NS1.example.com, NS2.example.com)

A.  How to check if nameserver is valid $ dig ns com ;; ANSWER SECTION: com. 93009 IN NS a.gtld-servers.net. com. 93009 IN NS b.gtld-servers.net. com. 93009 IN NS c.gtld-servers.net. com. 93009 IN NS d.gtld-servers.net. com. 93009 IN NS e.gtld-servers.net. … Continue reading

Posted in Linux, Linux Administration | Tagged , , , | Leave a comment

Create thumbnails from image in one command

In Linux, issue this command $ convert -thumbnail 200 INPUT_FILE.png OUTPUT_FILE.png To convert into another image type, just change the output file extension — as simple as that! $ convert -thumbnail 200 INPUT_FILE.png OUTPUT_FILE.jpg For more information please visit Cyberciti.biz … Continue reading

Posted in Graphics, Linux | Tagged , , | Leave a comment