home *** CD-ROM | disk | FTP | other *** search
- Name server needs named.bt (boot file) in \\etc directory.
- There are different ways you can set up your name server.
- I am providing three different scenarios.
-
- ============================================================================
- | scenario 1 |
- ============================================================================
- Set up name server and test
- (1)Following is the steps which is described how to set up name server:
-
- (a) The machine which is built as a Name server needs two files in the ..\\tcpip\\etc
- directory. One is named.bt , the other is prim1. The following is contents of the
- these two files.
-
- (i) In named.bt file, the domain name here is ralburg.ibm.com. The etc
- directory here is f:\\tcpip\\etc.
-
- named.bt contents:
- domain ralburg.ibm.com
- primary ralburg.ibm.com f:\\tcpip \\etc\\prim1
-
-
- (ii) Prim1 contents are:
- @ IN SOA host.domain-name. user. host. domain-name. (
- 30 ; serial
- 10800 ; refresh
- 3600 ; retry
- 3600000 ; expire
- 86400 ) ; minimum
- ;
- @ IN NS host
- host 23525 in a IP-address( host)
- ;
- ; database records follow
- user1 9999999 in a IP-address(user1)
- user2 9999999 in a IP-address(user2)
- user3 9999999 in a IP-address(user3)
- user4 9999999 in a IP-address(user4)
-
- The following is an example of the Prim1 file:
- For example, the host is li, the user is nan, the domain-name is
- ralburg.ibm.com, Prim1 is showing below:
-
- @ IN SOA li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
- 30 ; serial
- 10800 ; refresh
- 3600 ; retry
- 3600000 ; expire
- 86400 ) ; minimum
- ;
- @ IN NS li
- li 23525 in a 9.99.99.92
- ;
- ; database records follow
- pat 9999999 in a 9.99.99.90
- nan 9999999 in a 9.99.99.92
- hamer 9999999 in a 9.99.99.90
- rabi 9999999 in a 9.99.99.49
-
-
- (b) In name server host ( here is host li) , execute NAMED in the
- ..\\tcpip\\samples\\named directory.
-
-
-
- (2)Test the name server
-
- The following must be down in a machine chosen from the list of
- machines in the database records in the Prim1 file. ( I use hamer here):
-
- (a) Change the resolv file in ..\\ tcpip\\etc directory. In the resolv file, the
- domain name is same as in named.bt, IP address of nameserver is
- same as the host IP address in Prim1. In prim1 showing above,
- the host is li, its IP address is 9.99.99.92, therefore, the IP address of
- nameserver in resolv is also 9.99.99.92.
-
- Resolv file contents:
- domain ralburg.ibm.com
- nameserver 9.99.99.92
-
- (b) rename host file in the etc directory if it exist ,
-
- (c) type " ARP -f" to remove the message from the ARP buffer.
-
- (d) type "ping pat", where pat is the one of users listed in database in
- the Prim1 file. Name server is work if ping is successful.
-
-
- ============================================================================
- | scenario 2 |
- ============================================================================
- Here we point to another name server. That means we run two different name
- servers at same time. One is primary name server and the other is secondary
- name server. The primary name server will be caching responses from the
- secondery name server. In this scenario we can run the name server on the
- same machine as our applications for speed.
-
- (1)Following is the steps which is described how to set up name server .
-
- (a) The machine which is built as a Primary Name server needs two files in
- the ..\\tcpip\\etc directory. One is named.bt , the other is prim1. The following
- is ontents of the these two files. (here I use nan as a primary name
- server).
-
- (i) In named.bt file, the domain name here is ralburg.ibm.com. The etc
- directory here is f:\\tcpip\\etc.
-
- named.bt contents:
- domain ralburg.ibm.com
- primary ralburg.ibm.com f:\\tcpip \\etc\\prim1
-
-
- (ii) Prim1 contents are:
- For example, the host is li, the user is nan, the domain-name is
- ralburg.ibm.com, Prim1 is showing below:
-
- @ IN SOA li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
- 30 ; serial
- 10800 ; refresh
- 3600 ; retry
- 3600000 ; expire
- 86400 ) ; minimum
- ;
- @ IN NS li
- li 23525 in a 9.99.99.92
- ;
- ; database records follow
- pat 9999999 in a 9.99.99.90
- nan 9999999 in a 9.99.99.92
- hamer 9999999 in a 9.99.99.90
- rabi 9999999 in a 9.99.99.49
-
- (b) In Primary name server host, execute the NAMED in the
- ..\\tcpip\\samples\\named directory.
-
- (c) Select a host from the list in the database records in the Prim1 file from the
- primary name server. The chosen host is the secondary name server. (here
- I chose hamer as secondary name server).
-
- (d) In secondary name server, create named.bt and named.ca files. The
- following are examples of named.bt and named.ca files.
-
- (i) named.bt contents:
- domain ralburg.ibm.com
- chche . ..\\tcpip\\etc\\named.ca
-
- (ii) named.ca contents:
- . 9999999 in ns li.ralburg.ibm.com
- ralburg.ibm.com 9999999 in ns li.ralburg.ibm.com
- li.ralburg.ibm.com 9999999 in a 9.99.99.92
-
- (iii) execute NAMED in the ..\\tcpip\\samples\\named directory.
-
- (e) In a host from the list in database records in the Prim1 file from the
- primary name server, other than secondary name server. ( I chose lucy
- here). The following steps must be down.
-
- (i) Change the resolv file in ..\\tcpip\\etc directory. In the resolv file, the
- domain name is same as in named.bt, IP address of nameserver is
- same as the host IP address in Prim1 from secondary name server.
- IP-address of secondary name server (here is hamer) is 9.99.99.90.
- Therefore, the IP address of nameserver in resolv file is 9.99.99.90.
-
- Resolv file contents:
- domain ralburg.ibm.com
- nameserver 9.99.99.90
-
- (ii) rename host file in the etc directory if it exist ,
-
- (iii) type " ARP -f" to remove the message from the ARP buffer.
-
- (iv) type "ping pat", where pat is the one of users listed in database in
- the Prim1 file. Name server is work if ping is successful.
-
-
- ============================================================================
- | scenario 3 |
- ============================================================================
- In this scenario, primary name server is responsible for domain
- ralburg.ibm.com, and uses secondary server name hamer.ralburg.ibm.com
- for queries on domain lucy.ralburg.ibm.com
-
- (1)Following is the steps which is described how to set up name server .
-
- (a) The machine which is built as a Primary Name server needs two files in
- the ..\\tcpip\\etc directory. One is named.bt , the other is prim1. The following
- is ontents of the these two files. (here I use nan as a primary name server).
-
- (i) In named.bt file, the domain name here is ralburg.ibm.com. The etc
- directory here is f:\\tcpip\\etc.
-
- named.bt contents:
- domain ralburg.ibm.com
- primary ralburg.ibm.com f:\\tcpip \\etc\\prim1
-
- (ii) named.ca contents:
- . 9999999 in ns hamer.ralburg.ibm.com
- lucy.ralburg.ibm.com in ns hamer.ralburg.ibm.com
- hamer.ralburg.ibm.com 9999999 in a 9.99.99.90
-
-
-
- (iii) Prim1 contents are:
- For example, the host is li, the user is nan, the domain-name is
- ralburg.ibm.com, Prim1 is showing below:
-
- @ IN SOA li.ralburg.ibm.com. nan.li.ralburg.ibm.com. (
- 30 ; serial
- 10800 ; refresh
- 3600 ; retry
- 3600000 ; expire
- 86400 ) ; minimum
- ;
- @ IN NS li
- li 23525 in a 9.99.99.92
- ;
- ; database records follow
- pat 9999999 in a 9.99.99.90
- nan 9999999 in a 9.99.99.92
- rabi 9999999 in a 9.99.99.49
-
- (b) In Primary name server host, execute the NAMED in the
- ..\\tcpip\\samples\\named directory.
-
- (c) Select a host as secondary name server which is not listed in the database
- records in Prim1 file from primary name server. The chosen host is the
- secondary name server. (here I chose hamer as secondary name server,
- note that hamer is not list ed in prim1).
-
- (d) In secondary name server, create named.bt and named.ca files. The
- following are examples of named.bt and named1.ca files.
-
- (i) named.bt contents:
- domain ralburg.ibm.com
- chche . e:\\tcpip\\etc\\named.ca
-
- (ii) named1.ca contents:
- . 9999999 in ns li.ralburg.ibm.com
- ralburg.ibm.com 9999999 in ns li.ralburg.ibm.com
- li.ralburg.ibm.com 9999999 in a 9.99.99.92