These are my training notes from when I transferred into Engineering in 2002 or so. I keep them on the web because I still refer to these now and again… generally for Unix commands I’ve spaced. Heh!

DNS FOR NEW WEB SITES – NEW WAY

cd /usr/local/bin

./add_domain domain.com ipaddress

./add_domain domain.com IP.IP.IP.IP

cd /etc/namedb

vi domext.db

:%s/86400/300/g (‘g’ to change refresh/TTL globally)

/usr/local/bin – ./remove_domain dom.ext (remove and rename to domext.old.db)

DNS FOR NEW WEB SITES – OLD WAY

1. In FM db, locate next In Process record.
2. Check whois to determine if the domain is available.
(a) Use F9 on Madison, and/or
(b) Use whois at OpenSRS or at Network Solutions.
3. Go here and apply for the domain name.
(a) Choose Place Order Manually. Enter the request for the domain name.
(b) Always copy the domain name from the FM record to avoid typos.
(c) Contact email is always admin-at-lisco-dot-com
(d) For renewals:
i. Check on the primary DNS server first, to see that the record is really expired.
1. F9 and domain name
ii. If they want it renewed for more than one year (the default), remember to change it after it’s been approved.
4. Update the FM record with the application info.
(a) Remember to copy the SRS ID number back into FM db.
5. Get the next available IP address.
(a) cd /etc/namedb
(b) vi XXXX.XX-rev.db
(c) add a new record at the bottom of the file:
i. Ctrl-F to page down
ii. o to create a new line and start with insert mode
iii. Copy info on preceding line (or type it in)
(d) Write down the new domain’s IP address.
(e) Update the serial number (page up is Ctrl-U)
(f) 😡 to Save the file.
6. Edit/update all three DNS servers.
(a) vi /etc/named.conf
(b) Find the entry alphabetically preceding the new domain (/domain_name to find) and copy it.
i. Ctrl-F to page down
ii. 5yy (DNS1) or 8yy (DNS2, DNS3) to yank lines
iii. Insert the copy (P to paste).
(c) Update the new entry with the new domain’s info.
i. Delete the old name (dw = delete word)
ii. Shift-Ins the domain name (copied from FM)
iii. Verify the type of domain (ex. .com, .org, .net)
(d) 😡 to Save the updated file.
(e) On DNS1, copy the temp file and make a new db record for the new domain name
i. cp temp.db domain.db
ii. vi domain.db
1. :%s/temp/domain/g
2. If a suffix other than .com:
a. :%s/domain.com/domain.net/g
b. change the “com” on the ORIGIN line to proper suffix.
(f) Change IP by adding the final octet
(g) Change/update serial number
i. r for replace
(h) 😡 to Save the updated file.
(i) After completion, reload all three (F11) on DNS1.
i. dbreload
7. Check log for errors on all three servers.
(a) cat /var/log/daemon.log |grep domain
8. Create the site on web server.
(a) Go to http://webserver_name/admin/ and add a virtual site.
(b) Add a user.
i. Get the requested username and password from the FM record.
ii. Make sure you give this user admin access.
(c) Test the site.
(d) Email welcome.
9. IF the site is to be FrontPage enabled, telnet into web server and enable FrontPage extensions.
(a) Enable FrontPage.
(b) Enable subwebs.
10. Do a whois a day or so later to determine that the application is complete.
(a) F9 then type domain name.
(b) Email welcome domain when the domain is active in whois.
(c) Change status in FM to Active.

EMAIL ONLY

1. Get the next available IP address:
(a) cd /etc/namedb
(b) vi XXXX.XX-rev.db
(c) add a new record at the bottom of the file:
i. Ctrl-F to page down
ii. o to create a new line and start with insert mode
iii. Copy info on preceding line (type it in)
iv. Name the record noweb.domain.com or mail.domain.com
(d) Write down the new domain’s IP address.
(e) Update the serial number (page up is Ctrl-U)
(f) 😡 to Save the file.
2. If we’re not hosting the DNS, skip it and just set up the mail on a Cobalt.

DNS FOR DIRECT (WIRELESS, DSL, PAIRGAIN, TUT) CUSTOMERS

1. On DNS1: cd /etc/namedb
2. vi xxxx.xx-rev.db (the number of the network)
a. add the gateway IP and all of the IP pool
b. update the serial number
3. vi lisconet.db (or fairfieldnet.db or their own domain.db file)
a. add the gateway IP and all of the IP pool
b. update the serial number
4. F11 and dbreload
5. Test using nslookup and reverse lookup.
6. Test using cat /var/log/daemon.log |grep IP.IP.in-addr.arpa. (where xxx.xxx.in-addr.arpa. is copied from the name of the db file edited).
7. cat /var/log/daemon.log |grep domain

FINDING IP RANGE FOR DIRECT CUSTOMERS

To get number of IPs in a subnet:

256 – subnet = number of IPs – 1 for network number – 1 for broadcast IP

BITS TABLE:
255.255.255.0 bits 24 256 IPs
255.255.255.128 bits 25 128 IPs
255.255.255.192 bits 26 64 IPs
255.255.255.224 bits 27 32 IPs
255.255.255.240 bits 28 16 IPs
255.255.255.248 bits 29 8 IPs
255.255.255.252 bits 30 4 IPs

Example:

Customer is assigned network number 192.32.104.48/28. This translates into a subnet of 255.255.255.240.

To determine how many IPs this customer is alloted, subtract the subnet, 240, from 256:

256 – 240 = 16

This customer gets 16 IP addresses total. Subtract 2 for the network number (the first IP) and the broadcast address (the last IP).

16 – 2 = 14

The network number for this example is 192.32.104.48, and the broadcast IP is 192.32.104.63. The useable IPs are .49 (usually used as the gateway) through .62.

There’s a subnetting calculator available here.

VIEW LIST OF WEBSITES ON A SERVER

1. login as su-
2. cd /home/sites
3. ls (to list)

CHANGE OWNERSHIP OF FILES IN A SITE

1. cd /home/sites
2. cd nameofdirectory
3. chown usr * (if using FTP)
4. chown httpd * (if using FrontPage)

REPOINT A DOMAIN

5. cd etc/namedb
6. vi domain.db
7. ; in front of the current www record
8. create a new www record with the new IP address
9. 😡 to Save

SEE WHO OWNS AN IP

1. madison# whois -h whois.arin.net xx.xx.xx.xx

REMOVE DNS

1. On DNS1, remove the db file.
a. vi /etc/named.conf
b. /domain to find the record
c. 5dd to remove the record
d. 😡 to Save the file
2. On Lincoln, remove the db file.
3. On Carter, remove the db file.
4. On Franklin, remove the db file.
5. On Jackson, remove the db file.
a. vi /etc/named.boot
b. find line
c. dd
d. 😡 to Save
6. On Madison, move the db file to old
a. mv domain.db domain.old
7. Check the domain relay file:
a. /etc/mail/relay-domains
i. madison, carter, Lincoln
b. remove reference to domain
8. Comment out the IP in the xxxxxx.xxx-rev.db files
9. Reload all the boot files
a. F11
b. dbreload
10. Do nslookup to see where the file is pointing.
11. Do a reverse lookup using the IP.
12. Do a ping using the domain name.
13. Delete the site from Cobalt
a. Back up the site.
b. Delete the site.
14. Check to see if they’re in relay-domains:
(a) vi /etc/mail/relay-domains
i. on Madison, carter, Lincoln, Franklin

ADD/REMOVE SITES FROM JACKSON (www.lisco.com/username), COURTESY OF MRSAM33

1. Log into Jackson.
2. Remove Alias that points to home directory
a. cd /www/docs
b. rm nameofsite
i. to add one you can run this command: ln -s /usr/home/sam/www testing (ln -s /usr/home// ) The alias would go at the end of lisco.com so my website would be http://www.lisco.com/testing, you can make this anything.
3. Remove user
4. rmuser nameofsite (BE CAREFUL! NO TYPOS, Their Files Will Be Deleted)
5. Remove home directory (BE CAREFUL! NO TYPOS, Their Files Will Be Deleted)
a. rm -r /usr/home/nameofsite
6. Sit back and marvel at your accomplishment.

 

Comments are closed.