Sambar Server Documentation

DNS Server/Proxy
Pro Server Only


Functionality
A DNS server holds authoritative information about host names and IP addresses from its local site (known as the zone of authority). The Sambar DNS Server uses a simple hosts file as its database. It acts as a stand-alone DNS server, unless configured to forward unknown requests to your ISPs DNS server (proxy mode). The DNS server simplifies the maintenance of IP addresses of your intranet by eliminating the task of copying hosts files between machines. As you add or remove machines from your network, you can modify the hosts entries via browser-based System Administrator forms.

Many applications require DNS in order to work. Among them are Java applets, chat programs and the SOCKS4 protocol. The SOCKS protocol is becoming an increasingly popular choice among programmers when adding proxy support to applications. ICQ, Instant Messager and a number of other applications utilize the SOCKS protocol for proxy support.

The Sambar DNS Server is a partial DNS implementation, the server does not respond to requests for NS-Records (used by other DNS servers) or CNAME-Records (aliases). The server is designed to service UDP requests for host addresses (A-Record requests) and mail servers (MX-Record requests). All other other requests are forwarded (along with unknown A-Record and MX-Record requests) to your ISPs DNS server. In a future release, the Sambar DNS server will provide caching of proxied A-Record and MX-Record requests to enhance DNS lookup performance.

Hosts File
The hosts file used by the Sambar DNS Server can reside anywhere on the machine. On Windows NT, the default location for the file is %ServerRoot%\System32\Drivers\Etc. On Windows 95, the default location for the file is %ServerRoot%. The Sambar Server assumes the file is in the config directory where the Sambar Server is installed. You may wish to change the DNS configuration to point to the Operating System's hosts file.

The format of the file is the same as the format of the UNIX /etc/hosts file; each line consists of an IP Address in dotted-octet notation (i.e. 209.157.142.114), followed by whitespace and the name(s) of the host (i.e. www.sambar.com www). Note: The canonical name of the host should appear first, followed by any aliases.

MXHosts File
The mxhosts file used by the Sambar DNS Server can reside anywhere on the machine. The Sambar Server assumes the file is in the config directory where the Sambar Server is installed (there is no equivalent for the mxhosts file on Windows NT machines). MX records are used exclusively for mail routing. This service is largely provided by your ISP; the functionality is included in the Sambar Server for testing mail configurations and local distribution of mail (behind a firewall).

The format of the file consists of an mail server hostname (i.e. smtp.sambar.com) followed by whitespace and the name(s) of the mail domains:

smtp.sambar.com sambar.com sambar.net

DNS Overview
Not many users know the IP address for Sambar Technologies, but it is fairly easy to remember www.sambar.com. The Domain Name Server acts like the white pages of a telephone directory. It maintains a list of network names and their corresponding IP addresses. So the entry for www.sambar.com would look something like:

209.157.142.114 www.sambar.com

DNS databases are distributed in a hierarchical manner. The "root" DNS servers maintain the locations of other name servers with are authoritative for their domains. Each network must maintain a DNS server for the IP addresses that can be reached via that network; this task usually falls to your ISP. So a DNS search proceeds from the "root" name servers downward getting progressively closer to the name server that actually knows the name and IP address of the destination in question.

When given www.sambar.com as a destination, your web browser requests the IP address from a Domain Name Server. The DNS daemon looks in its database for the name and returns the IP address, or forwards the request to the appropriate server. Your browser then sends its request to the resolved IP address.

There are usually two name servers for a particular domain. The primary name server is consulted first by the resolver on a host machine in order to obtain DNS information. If the primary does not respond, the resolver will attempt to obtain the information from the secondary. If neither name server responds, you will typically see a The Server does not have a DNS entry error message in your application.

DNS Forwarding
DNS forwarding is useful for a protocol like SOCKS4, where is is necessary to perform name resolution in order to contact internet hosts. If DNS forwarding is enabled, the Sambar Server will forward all DNS requests that can't be resolved locally to the specified DNS server (typically your ISPs) and return the response to the client.

Internet DNS
The Sambar DNS server is NOT appropriate to act as a primary or secondary DNS server for an internet domain. Please do not send mail to Sambar Technologies asking how you can setup www.mysite.com. If you need to ask this question, the answer is always: Contact your ISP.

The Sambar DNS server is designed for intranet use (and internet-proxying) only. For all other DNS needs, you will likely need to run bind.

Configuring DNS Clients
In order to use the DNS Server for your local network, each client machine must be configured to use the Sambar DNS Server:

  • Bring up the Network dialog box (Control Panel) and select the TCP/IP protocol line.
  • Click the DNS Configuration Tab and then Enable DNS. Under Host, enter the name of your machine.
  • Under the Domain, enter the domain name used on the Sambar Server machine.
  • In the DNS Server Search Order box, enter the IP address of the Sambar Server machine.
  • Click OK to complete the configuration changes.

To verify your Sambar DNS Server is properly configured, you can use the ping utility. Open an MS-DOS Command window and use ping with the name of a machine configured in the Sambar Server hosts file setup with the DNS Server. You should see the DNS request being made to the Sambar Server (via the GUI) and responded to.

© 1999 Sambar Technologies. All rights reserved. Terms of Use.