The software that handles DNS domains and subdomains is called BIND. There will be a configuration file on your server called named.conf and a directory that holds BIND's files (/etc/namedb/ perhaps?). Here's an example with a domain acme.com and a subdomain of sub.acme.com In named.conf you'll put an entry that looks like this:
Code:
zone "sub.acme.com" {
type master;
file "sub.acme.com.dns";
};
Then you'll create a file called sub.acme.com.dns that has the same format as the file for acme.com. Here's a sample file:
Code:
$TTL 3600
@ IN SOA acme.com. username.acme.com. (
2010101401 ; Serial
3600 ; Refresh
300 ; Retry
3600000 ; Expire
3600 ) ; Minimum
IN NS server.acme.com
@ IN A 1.2.3.4
www IN A 5.6.7.8
If you have more questions please mention DNS or BIND so that people know what you're asking about.