Sunday, December 28, 2025
Home Blog Page 386

DNS/BIND: set TTL for individual resource records

BIND resource records allow an explict TTL value that will override the zone file’s TTL for that specific resource record. One use for this is to prevent non-authoritative servers from caching these records, perhaps in prelude to changing a server’s IP address.

DNS/BIND resource record: PTR reverse lookup record

The PTR (pointer) record maps an IP address to a hostname and fully qualified domain name. Many applications use reverse lookups to identify the domain from which a TCP/IP connection is formed. Best practice for DNS is to create a PTR record for every A record.

Add static host name mappings to a Cisco router

Adding static host name to IP address mappings in a router (like a UNIX /etc/hosts file) can make life easier. These can override DNS entries for the host when needed, and can make easy references to other systems or devices that are not appropriate for DNS entries.

Word 2003: Translate Text to Different Languages

Word 2003 now includes the ability to easily translate text to different languages.

PHP syntax: sort an associative array by value with asort

To sort an associative array by the array values, use asort.

PHP syntax: sort an associative array by index keys

To sort an associative array by index values (or keys), use ksort.

PHP syntax: create an associative array

An associative array can use non-numeric index values and are useful because they can be iterated over sequentially and values can be extracted individually by index. Database select results can be returned as associative arrays in which the column names become indicies.

Rewrite domain.com to www.domain.com using htaccess in Apache

You may want all visitors to your site using www in front of your domain name (www.yourdomain.com) instead of just your domain name (yourdomain.com). By implementing a simple .htaccess RewriteRule, visitors to yourdomain.com will see the URL change in their browser as they are redirected to the correct URL.

Latest Articles

Latest Reviews

Latest Comments

error: Content is protected !!