HOWTO Create a Virtual Web Domain
From SEDSWiki
DNS Update
You'll need to update the domain records for the domain you plan on adding the virtual host for. For example, the SEDS DNS records are in the following file:
/var/named/named.seds.org
1. The first thing that needs to be updated is the "serial" number. This is effectively a timestamp, but if you don't change it, none of the servers on the internet will know that a change has taken place. The convention for the SERIAL # is
YYYYMMDD##
Where YYYY = 2008 MM = 02 DD = 26 and ## = 00 (the first edit I made today).
So its 2008022600
2. Next, make sure that the entry you want to make doesn't already exist. In this case "sf.yurisnight.net" already does. So with the next two steps I'll....
3. Create an "A"ddress record for bayarea.yurisnight.net. I did this by adding the following line: bayarea IN A 67.18.208.54
4. Since sf.yurisnight.net should just point to bayarea, I can simplify this by just pointing it to "bayarea". That way, if the IP address changes, I just need to change it once. I re-wrote the line for sf as follows:
sf IN CNAME bayarea
5. Save the file, and then ask the name server to reload the zone:
rndc reload yurisnight.net
The master name server on SEDS will update the changes, and new requests around the internet will get updated within the new information within the next 15 minutes (a configurable option within the file). My home machine automatically mirrors the SEDS stuff, so this command will automatically update the backup copy.
All of the above needs to be done as "root" or by using the "sudo" command for each step.
There's also the pleasant note that if you screw it up, that all of the yurisnight.net addresses might stop working...
You should check your work by checking out the records you just created. Two available commands are "dig" or "nslookup" Either is fine.
For example, nslookup bayarea.yurisnight.net (done remotely from my laptop):
Macintosh-5:~ clewicki$ nslookup bayarea.yurisnight.net Server: 12.127.16.67 Address: 12.127.16.67#53
Non-authoritative answer: Name: bayarea.yurisnight.net Address: 67.18.208.54
And dig bayarea.yurisnight.net:
- <<>> DiG 9.4.1-P1 <<>> bayarea.yurisnight.net
- global options
- printcmd
- Got answer
- ->>HEADER<<- opcode
- QUERY, status: NOERROR, id: 62187
- flags
- qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
- QUESTION SECTION
- bayarea.yurisnight.net. IN A
- ANSWER SECTION
bayarea.yurisnight.net. 900 IN A 67.18.208.54
- AUTHORITY SECTION
yurisnight.net. 900 IN NS SEDS.org. yurisnight.net. 900 IN NS chris.lewicki.com.
- ADDITIONAL SECTION
chris.lewicki.com. 117593 IN A 66.116.69.160 SEDS.org. 39 IN A 150.135.110.221
- Query time
- 170 msec
- SERVER
- 12.127.16.67#53(12.127.16.67)
- WHEN
- Tue Feb 26 22:36:46 2008
- MSG SIZE rcvd
- 141
If you really want to dive into the details, start on page 37 of http://manuals.info.apple.com/en/Network_Services_v10.4.pdf

