Sponsored Content
Operating Systems Solaris configure DNS server on solaris Post 302099221 by Tornado on Sunday 10th of December 2006 05:15:40 PM
Old 12-10-2006
I just tried to download it now... It worked fine.
Try to download it again.

Here is the named.conf template file from the download.
Code:
//
//james liu 2/23/96
//revised 3/23/2000
//
//dns configuration file compatible with solaris 2.7 and later. This
//configuration is targeted at primary and secondary dns server setups.
//
//for solaris 2.6 and earlier, do not edit this file, but
//see the "named.boot" file for instructions.
//
//installation instructions:
//
//we assume you've unpacked this distribution.
//
//step 1;
//-------
//edit named.conf, named.local, named.cache, named.mydomain, and
//named.domain.rev and globally change all instances of "myhost" to
//the actual hostname, and "mydomain" to the desired domain name.
//also, change the ip numbers for the domain to match those for your
//network. for the reverse domain, just reverse the numbers for the
//class of address. this template is designed for a single class c.
//
//step 2:
//-------
//to use this, and create a symbolic link to this in /etc filesystem
//link to this file: ie:
//
//# ln -s [path-to-this]/named.conf /etc/named.conf
//
//step 3:
//-------
//start the dns server. /usr/sbin/in.named.
//
//
//
//for secondary domain name servers, use these entries; format is:
//<dns type> <domain> <prim. ip(s)> <filename>
//note, you can spec more than one prim. ip to download from
//in addition, the filename is the name to store the map in. you don't
//have to create this file. the common practice is to assign filenames
//as *.bak for files this server caches as a secondary dns relative to
//some other dns primary.
//
//almost all dns's can use themselves to resolve the local host
//you usually will leave this entry alone
//
//all dns's need to spec top-level cache servers that resolve world internet
//hostnames. there can be one or more entries and are spec'd in the cache
//file.
//
//if you are a subnet as a part of a larger network, (e.g. your domain is
//"mysubnet.mydomain.com", you may want to set forwarding to a higher
//level server (the one that serves names for "mydomain.com". if so,
//uncomment the 'forwarders' line below and edit it for your network
//parameters.
//

//specify the directory prefix where you plan to store the dns map files.
//the default here is /var/named.
options {
 	directory	 "/var/named";
//
//uncomment if you want to send queries outside of the primary to a
//a forwarders server.
//	forwarders       {
//		129.150.254.2;
//	};
};

//choose between primary or being a secondary server. a secondary dns is
//simply a server that downloads the dns maps from some other primary or
//secondary. the default here is to be a primary and have only one
//class c subnet. the dns needs a "forward map" that looks up ip address
//for a given hostname, and a "reverse map" that looks up hostname for
//a given ip address. if you have multiple subnets and domain name spaces,
//you should have multiple forward maps, and/or multiple reverse maps.
//in many networks, there is a single domain name space that spans several
//subnets, in which case, there will be one forward map, and many reverse
//maps.

zone "mydomain.com" in {
	type master;
	file "named.mydomain";
};

add more zones if you have multiple subnets as primary

zone "9.200.129.in-addr.arpa" in {
	type master;
	file "named.mydomain.rev";
};
//
//you can make this a secondary rather than primary by uncommenting
//these lines and commenting out the above primary zones and replacing
//with these below.  The masters IP address(es) are set to whatever your
//masters are.
//zone "mydomain.com" in {
//        type slave;
//        file "named.mydomain.bak";
//        masters { 129.200.9.1; 129.200.9.2 };
//};

//zone "9.200.129.in-addr.arpa" in {
//        type slave;
//        file "named.mydomain.9.bak";
//        masters { 129.200.9.1; 129.200.10.1 };
//};

//zone "10.200.129.in-addr.arpa" in {
//        type slave;
//        file "named.mydomain.10.bak";
//        masters { 129.200.10.1; 129.200.9.1 };
//};

// don't usually need to mess with this entry. You may need to edit
// the map file, named.local, however.
zone "0.0.127.in-addr.arpa" in {
	type master;
	file "named.local";
};

// nothing to do here.
zone "." in {
	type hint;
	file "named.cache";
};

//---------------end named.conf------------------

Tornado
 

9 More Discussions You Might Find Interesting

1. IP Networking

trying to configure DNS address in Solaris

hi to all. I'm trying to use the sendmail command to generate some reports and I cant use it. The mails i try to send simply won't go out, instead I receive a response from the system sayng that the host is unknown. I think the problem is in the DNS configuration (or the IMAP/SMTP servers). ... (3 Replies)
Discussion started by: ldrojasm
3 Replies

2. UNIX for Advanced & Expert Users

How to configure DNS

My OS is sun solaris7,(sun sparc),i want connect inernet and my computer in my company intranet.After i configure proxy server,i still can't conncet internet.I guess whether the DNS is configured correctly. who can help me???Thank you very much!!! (6 Replies)
Discussion started by: q30
6 Replies

3. UNIX for Dummies Questions & Answers

Add DNS server in Solaris

I am new to UNIX and have been trying to add DNS servers so I can access the internet under Solaris 9. I am using a static IP and have the subnet and gateway configured but cannot figure out to add DNS servers. Does anyone know how to do this? Thank you very much for any help. (1 Reply)
Discussion started by: jmy113437
1 Replies

4. Solaris

Solaris DNS Client For Microsoft DNS Server

hey guys, how to add soalris box as a microsoft DNS Client ? and how to register in the microsoft DNS ?? i managed to query from the DNS server after adding /etc/resolve.conf and editing /etc/nsswitch.conf but i need to register the soalris server (dns Client) into Microsoft DNS automatically.... (3 Replies)
Discussion started by: mduweik
3 Replies

5. IP Networking

Configure DNS

I am running Solaris 2.6 Server on a Sparc 10 and I was wondering how I can manually specify a DNS server to resolve hostnames. Any help will be greatly appreciated. And also I have created a file in the /etc dir named defaultrouter and added th IP address of my router, but when I ping another... (15 Replies)
Discussion started by: jskillet
15 Replies

6. Solaris

How to configure Proxy Server in Solaris 10 (X86)

Hi , I have installed solaris 10 on x 86 architecture. Now i want to configure this system as Proxy Server. I am new to the solaris. Please help me how can i configure this. Which packages or patches are needed ? or Which files have to be modify ? Please help me to resolve. Thanks and... (0 Replies)
Discussion started by: raviraj001
0 Replies

7. Solaris

BIND DNS Server issue on Solaris 10

Hi all, I have some sort of problem with BIND DNS server my environment as follows. bash-3.00# cat /etc/release Solaris 10 6/06 s10s_u2wos_09a SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is subject to... (3 Replies)
Discussion started by: h@foorsa.biz
3 Replies

8. Solaris

checking Solaris 10 DNS server for IPv6

hi, i have a Solaris 10 DNS server, how do you check whether it can support IPv6 networking ? (0 Replies)
Discussion started by: Exposure
0 Replies

9. Solaris

How to add new Solaris client IP into Solaris 10 DNS server?

Hi, We just built a new Solaris 10 zone. And would like to add it to our DNS server. Its also Solaris 10. Please let me know how can I get the IP resolved using this DNS server. I added entry into zone config file but not working. I did restarted the DNS services. And also added nameserver name... (5 Replies)
Discussion started by: snchaudhari2
5 Replies
bind_intro(7)						 Miscellaneous Information Manual					     bind_intro(7)

NAME
bind_intro - Introduction to the Berkeley Internet Name Domain (BIND) service DESCRIPTION
The Berkeley Internet Name Domain (BIND) service is a host name and address lookup service for the Internet network. The BIND service is based on the client-server model. It allows client systems to obtain host names and addresses from BIND servers. In the Tru64 UNIX system, BIND is used to distribute only the hosts database. Note Depending on which naming services your Local Area Network (LAN) is running, the hosts file can be located in the /etc, /var/yp/src, or /etc/namedb/src directory. You can use the BIND service to replace or supplement the host table mapping provided by the local /etc/hosts file or Network Information Service (NIS). The BIND service is composed of a software interface (called the resolver) and a server. The software interface consists of a group of routines that reside in the /usr/lib/libc.a C library. The resolver exchanges query packets with a BIND server. All BIND servers run a name server daemon, named, which services queries on a given network port. The standard port for User Datagram Pro- tocol (UDP) and Transmission Control Protocol (TCP) is specified in the /etc/services file. To understand how the BIND service works, you must be familiar with Internet Protocol (IP) addressing. The BIND service divides the Internet into a hierarchy of domains, similar to a tree structure. Each domain is given a label. The name of the domain is the concatenation of all the labels of the domains, from the root to the current domain, listed from right to left and sepa- rated by periods (.). For example, xyz.abc.com. A label must be unique within its domain. The entire BIND Internet hierarchy is partitioned into several zones, each starting at a domain and extending down to the leaf domains (individual host names), or to domains where other zones start. A zone is a subdivision of a domain and is a discrete, nonoverlapping entity. Each zone is an area of authority for which a master server is responsible. (See the section on Master Servers for a discussion of master servers.) Zones usually represent an administrative boundary. The BIND hierarchy in the United States contains eight top-level domains shown in the following table: ---------------------------------------------------------------------- Domain Description ---------------------------------------------------------------------- arpa The Arpanet (gradually being phased out) com Commercial institutions edu Educational institutions gov U.S. government int International (Treaty) Organizations. This domain currently holds the IPv6 subdomain (ip6.int) for reverse AAAA IPv6 records. mil Military organizations net Network-type organizations, such as network centers centers, consortia, and information centers org Miscellaneous organizations, such as professional societies and similar nonprofit organizations ---------------------------------------------------------------------- In addition to these, there are several top-level domains for individual countries. Contact the American Registry for Internet Numbers (ARIN) for more information about them. See Network Administration for information on contacting ARIN. Assuming a host name in the domain cities.dec.com is chicago, the following is the fully qualified domain name for that host: chicago.cities.dec.com. In this example, com is the top level domain, cities.dec.com is a subdomain of com, and chicago is a host name. The zone, dec.com, has one primary server and consists of multiple domains. The period (.) at the end of the domain name indicates that the domain name is fully qualified and is absolute. No further BIND extensions are to be appended to the name. BIND Servers A BIND server is a system running the named daemon. BIND servers perform the following functions: Store information locally Process requests that cannot be satisfied locally Forward queries about top-level domains Servers maintain databases containing information about host names and addresses. When client systems need information they do not have, they ask the servers for it. The BIND service has the following types of servers: Master Slave Stub Caching-only Forward-only Note Documentation for BIND prior to Version 8.1.1 referred to the master server as a primary server and the slave server as a secondary server. Though the terminology has changed, master and slave servers are still referred to as having primary and secondary authority, respectively, for zones. Master Servers A master server is the authority for a zone, and maintains the zone's BIND databases. A zone can include one or more domains. A master server loads its database from a file on disk. This server can also delegate to other servers in its zone the authority to answer queries for its domain space. One type of master server is a root server, which knows about all the top-level domains on the Internet network. From these top-level domains, information is gathered about hosts on subdomains. The root servers, for example, do not necessarily know about the subdomain. But they do know which server to contact for the information. If a client requests information about a host in a domain other than its own, any server (other than a forward-only server) can pass along the request to a root server. The list of root servers changes periodically, and you should periodically update the root servers from ARIN. See Network Administration for information on contacting ARIN. Slave Servers A slave server receives its authority and its database from the master server. When a slave server boots, it loads the data for the zone from a backup file, if possible (assuming you configured your BIND service this way). It then consults a master server to check that the database is still up to date. Once the slave server is running, it waits for the master server to indicate that the database files have been updated. When a change occurs, the slave server updates its local database files appropriately. A server can be the master server for some domains and a slave server for others. It is recommended that each BIND domain have at least one master and one or more slave servers. The slave servers act as backup servers in the event that the master server fails, is over- loaded, or is down. Stub Servers A stub server is like a slave server, except that it does not retain any information in its configuration files about the machines in a specified subzone. It is implemented to allow the administrator for a given subzone to change the configuration of the subzone without affecting the configuration file on the master server. The master server becomes a stub server for the subzone by delegating authority for it to a server local to the subzone. Instead of searching the master DNS database, the master server queries the local server for information about machines in the subzone. Caching-only Servers All servers cache the information they receive for use until the data expires. However, caching-only servers have no authority for any zone, so they have no databases to maintain. These servers service BIND queries by asking other servers who have authority, such as a mas- ter server, for the information. Caching-only servers store the information until it expires. The expiration is based on a time-to-live (ttl) field, which is attached to the data when the caching server receives it. Forward-only Servers Forward-only servers do not have access to the Internet, so they cannot interact directly with root servers to get information that is not in their local cache. Instead, they use forwarders, which can be either master or slave servers, to resolve their queries. These for- warders are able to obtain information not held in their local caches from servers in other zones, including root servers. A forward-only server forwards queries to the list of forwarders specified in its configuration (boot) file, until the list is exhausted or the query is satisfied. As forward-only servers request new information from forwarders, they accumulate it in their cache. Forward-only servers do not receive complete zones from master servers, like slave servers do; they accumulate data per request. Because forwarders receive many requests from forward-only servers, they tend to have a larger local cache than forward-only servers. All the hosts on the domain benefit from this larger cache, which reduces the total number of queries from that site to servers outside the domain. For this reason, a LAN is typically set up so all systems forward their requests to a caching server. BIND Clients A BIND client is any system that uses the BIND service to resolve host names and addresses. BIND clients make queries, but they never resolve them locally. Instead, BIND servers resolve the clients' requests. BIND clients do not run the named daemon. Instead, BIND clients have a resolver file, /etc/resolv.conf, which tells the resolver the IP address of the BIND servers that can service the client's BIND requests. The following is an example of a /etc/resolv.conf file: domain dec.com nameserver 128.11.22.33 nameserver 128.11.22.44 Resolving Queries The following steps describe how a BIND query is resolved. In this case, an application on a slave server generates a query for a host name and address. The process is similar for other servers. An application requests host name resolution and uses the gethostbyname library routine. The gethostbyname library routine looks at the /etc/svc.conf file to determine which service to use to resolve the query. If the routine has local BIND, it looks at the /etc/hosts file first. If the request cannot be answered, the routine calls the BIND resolver code, which checks the /etc/resolv.conf file for the name of a server. In this case, it is localhost. The library routine con- tacts the forward-only server and asks for the host name and address. The forward-only server receives a query for a host name resolution and checks its own cache to see if it can answer the query. If it cannot, it forwards the query to the servers listed as forwarders in its BIND configuration file (the default is named.conf) one at a time, until the query is resolved or the list is exhausted. The server returns the result to the forward-only server, even if the result shows the resolution was unsuccessful. If the result is successful, the slave server adds the information to its local cache. The forward-only server passes the result back to the gethostbyname library routine. The gethostbyname library routine passes the result back to the application. RELATED INFORMATION
Commands: bindconfig(8), named(8), nslookup(8), svcsetup(8). Files: named.conf(4), resolv.conf(4), svc.conf(4). Network Administration delim off bind_intro(7)
All times are GMT -4. The time now is 08:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy