Category Archives: Linux

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

How to remove .svn folder

Windows: Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd).  After that issue the command, eg., C:\www>cleansvn for /f “tokens=* delims=” %%i in (‘dir /s /b /a:d *svn’) do ( rd /s /q … Continue reading

Posted in Freelancing, Linux, Programming | Tagged | Leave a comment

How To Copy a DVD/VCD Using Mplayer/Mencoder

Here’s the command: mencoder dvd://4 -oac copy -avc copy mencoder is the executable program dvd:// is the name of the input device 4 means the fourth track. You can omit this information to copy the whole disc. -oac copy means … Continue reading

Posted in Linux, Music | Leave a comment

Vi is misbehaving with my arrow keys!

(Note: The following blog entry is for Linux users and may not be of any use to Windows users.  No discrimination intended.) In my earlier days, I always use nano as my editor of choice whenever I’m on a Linux … Continue reading

Posted in Editor, Freelancing, Linux, Workplace | Tagged , , | Leave a comment