본문 바로가기
5. NeXTSTEP

3.1 DNS - How to setup on NS3.3/OS4.2 in a Mixed Non-NeXT Network?

by soosun 2009. 5. 18.

The following was taken from the following 1998.12.11 post by Marc J. Driftmeyer @ mdrift@psca.com

1. Login as or su to root
2. Create/Edit the file /etc/resolv.conf

Example for blowme.edu
kimba:4# more /etc/resolv.conf
#insert local nameservers here
#
hostresorder local bind
#The above line tells nslookup to first consult /etc/hosts, netinfo, then use one of the
#nameservers below for name-IP address translation.
domain blowme.edu
#The above line just tells the machine what domain it is within for various purposes. 
nameserver 192.157.42.1
nameserver 192.157.42.2
nameserver 192.157.42.3
#Only 3 of these are used but they are the order the nameservers are consulted when name-IP
#address translation is requested.  If the first times out the second is attempted, then the third
#If your first nameserver is timing out then your machine may feel very sluggish because name lookups
#are timing out and causing delays.
#These numbers should be provided by your ISP (the IP's of the nameservers U should be consulting)
3. Save the above file in ascii format
4. Launch HostManager.app
a. If your not logged in as root, a panel appears asking you to log in as the superuser. Enter the root password, then click Login

b. Choose Local from the main menu. The Following Local Configuration window appears.

c. Under NetInfo Bindings
1. Select Use local domain only
2. Check off Readable only by local net
d. Under Hostname
1. Select radio button and give it a hostname (e.g. blowman which will give the machine the following 'potentially fully qualified hostname' blowman.blowme.edu)
e. Under NIS Domain Name
1. Leave it alone as None
f. Under Internet Address
1. Select a radio button and fill in the ip_address of your System
g. Under NetMask
1. Select radio button and fill in the netmask (looks like IP address - e.g. 255.255.255.0) your Sys Admin or ISP gave you
h. Under Router
1. Select radio button and fill in the ip_address your System Administrator or ISP gave you to use for your router.
i. Under Time Standard
1. Select radio button for Ignore Network Time (non-Netinfo domain)
j. Under Broadcast Address
1. Your Broadcast addresss is found by (ip||not(netmask)) = broadcast
1. Try 192.72.142.1 with netmask of 255.255.255.240
2. 192.72.142.1||Not(255.255.255.240)
3. 192.72.142.1||0.0.0.15 = 192.72.142.15

1. Try 192.72.142.153 with netmask of 255.255.255.0
2. 192.72.142.1||Not(255.255.255.0)
3. 192.72.142.1||0.0.0.255 = 192.72.142.255
k. Hit Set

l. A panel will pop up warning you that you are switching to a Non-Netinfo Domain/Configuration/Network

m. Hit Ok

n. Logout and Restart the System

o. At the boot prompt type -v or hit the spacebar twice to see verbose output

p. Your ip_address and hostname should be in the verbose messages

q. Login as root and launch a shell (Terminal.app)

5. Check that dns is working by typing
kimba:5# nslookup
Default Server:  nameserver1.blowme.edu (the actual name will be different)
Address:  192.42.172.1                  (the IP will be what U set)

> www.apple.com.
Server:  nameserver1.blowme.com
Address:  192.42.172.1

Name:    www.apple.com
Address:  17.254.0.91
>
6. If you get the IP address above then dns should be working. Start OmniWeb and surf away.

7. As for Mail.app, please do not ask, just go to Peak and check out the latest Sendmail.pkg installer. It does the work for you. I believe it is the latest Sendmail 8.8.8. Enjoy

댓글