with or without the included X GUI.


SYNOPSIS

       fourcdns options


DESCRIPTION

       fourcdns Purpose:

       The fourcdns DNS server is a very simple DNS server designed to work in
       concert with other Four Calorie Series programs.

       Simple operation ...

       Sample: As root run ./fourcdns  or use the included X GUI to strart the
       daemon.

       Welcome  to  the Four Calorie DNS Server for FreeBSD 6.0 (i386), (four-
       cdns - beta test version) This program was developed as a companion  to
       the "Four Calorie Web" server application, another of our programs that
       is available on the Internet. Older versions  may  be  referred  to  as
       "Zero  Calorie DNS". The user may substitute the term "four" for "zero"
       (and vice versa) in the documentation  and  license.txt  files.  Please
       read the license file (License.txt)

       This  is  the  maiden  voyage  for this beta test version, so please be
       informed that the user accepts all risks involved with the usage of the
       software,  or  the  inability to use the software. This version is very
       preliminary, and should not be used on  the  public  Internet  (techni-
       cally, it is capable of DNS service on an Internet or an intranet).

       Basic configuration

       The  server may be bound to any legal address and any legal port (valid
       ports are 1 thru 65535). The  default  port  is  53,  and  the  default
       address   is   127.0.0.1,   as  specified  in  the  configuration  file
       /usr/local/zerocaloriedns/zerocaloriedns.set which can be found in  the
       /usr/local/zerocaloriedns  directory.  The  configuration file is named
       "zerocaloriedns.set" in both the "zero" calorie and "four" calorie dis-
       tributions.  The  application  directory is named "/usr/local/zerocalo-
       riedns" in both distributions. Note that the configuration  file  is  a
       simple  text file. (The user may edit it with vi or gedit if you wish.)
       The configuration file may contain four lines, as follows:

       ServerAddress
       Port
       DomainName
       DomainAddress

       Only the information is supplied, without tags, and it must be  in  the
       correct  order.  The  following  example  displays  the contents of the
       default configuration file  that  is  supplied  with  the  installation
       media:
       of the machine that the server is running on) will be used as a binding
       hint, but the server may bind to other addresses that  it  is  able  to
       find  on  the  machine.  Errors in the configuration file may cause the
       server to immediately exit it's process when it is executed.

       Changes made to the configuration file(s) are not effective  until  the
       server  is  stopped  and restarted. Re-executing the fourcdns file will
       not stop the server. Therefore, the user should execute a kill  command
       first.  Assuming  that  there are no other unrelated fourcdns processes
       running, the user could restart the server by executing:

       killall fourcdns
       fourcdns

       The Windows version sports a nice utility for  DNS  Server  management/
       monitoring.  It  is  ZeroCDNSManager.exe,  and is one of the start menu
       items. The FreeBSD 6.0 X Windows GUI for DNS server management is four-
       cdnsmgr6: ./fourcdnsmgr6

       A Little Background ...

       This  server  was  developed  as  a companion to the "Four-Calorie-Web"
       server program, which is an HTTP web server. A web server without a DNS
       server  is  not very useful, unless the visitors have a good memory for
       Internet addresses! This is the preliminary beta  version  of  the  DNS
       server,  and should be used only for purposes that are not important or
       that are tolerant of failure. (See license.txt) There  seems  to  be  a
       dearth of DNS server applications for the Windows, Solaris, and FreeBSD
       platforms. Hopefully, this program will (when it eventually passes  the
       hurdle  of  the  beta-testing  period)  alleviate  the DNS-application-
       scarcity problem. This particular server was designed to have only  the
       functionality  needed to power the companion "Four- Calorie-Web-Server"
       application.

       The server resolves only the user's domain IP address, and  no  others.
       It  cannot  run  as a general purpose public DNS server in it's current
       configuration. This is an artificial constraint, but it  allows  us  to
       concentrate  our efforts toward our specific goal (towards powering the
       "Four-Calorie-Web" Server). The server currently responds only  to  UDP
       requests,  although  TCP backup functionality will be considered in the
       future. The server implements minimum functionality in other ways.  For
       instance,  the  header flags recursive bit is not set (recursion is not
       available). Some things are "hardwired" this way to allow  for  maximum
       simplicity. A user should be able to set-up the Four Calorie DNS server
       in a few minutes (If there are any other DNS servers that can be set-up
       in two or three minutes, I am not aware of them).

       The  server  auto-resolves  all  "server-type mnemonic" requests to the
       same one-and-only IP address that is supplied by the user in  the  con-
       figuration  file  (So  long as the primary domain is correct). In other
       words,  www.yourdomain.com  and  mail.yourdomain.com  and   ftp.yourdo-
       main.com,  and  ns111.yourdomain.com  all  resolve  to  the  domain  IP

       The  authoritative  server flag is always set. The server does not cur-
       rently support a zone transfer, but version 1.0.5 now responds  to  SOA
       (Start  of  authority), NS (Nameserver), A (Address record), MX and PTR
       (Reverse) requests.

       The serial number is auto-incremented, and changes only once  per  day,
       even  when  the  server  is  restarted.  Since  zone  transfers are not
       allowed, this may or may not be an issue, since the  serial  number  is
       mostly  used  to  determine zone transfer update requirements.  The NS,
       ARECORD and PTR requests served by **this** server will be accurate "up
       to  the minute", so long as the server was restarted after the configu-
       ration file change. If one day serial updates are an issue, then  don't
       use  this  server  for  your application. The expiration is fixed (hard
       coded) to two weeks.

       For the serial updates to work correctly, your machine must have a cor-
       rect CMOS date (Your battery should be working). The domain administra-
       tor's email is hard coded to de@somedomain.com, where somedomain.com is
       the  content of the third line of the configuration file. The MX record
       is hard coded to mail.somedomain.com, where somedomain.com  is  defined
       in the third line of the configuration file.

       Four Calorie DNS Server Tour Installation and De-installation Notes

       Installation

       The  installation  has  been  changed  to use the FreeBSD ports system.
       Instead  of   extracting   the   tarball,   simply   copy   the   four-
       cdns-1.0.8.tar.gz  file  to  the  /usr/ports/distfiles directory. Then,
       while the current directory is still the  directory  that  the  outside
       tarball was extracted into (fourcdnsTempInstall) :

       type: make install

       Reboot.  Upon  restart,  you should be able to type the name of the GUI
       manager in an X windows terminal (fourcdnsmgr6) to start the  GUI  man-
       ager. You should be able to start the DNS server manually by typing:

       killall fourcdns
       fourcdns

       You should be able to see the manual pages by typing man fourcdns. Note
       that the configuration file should reside in the following directory:

       /usr/local/zerocaloriedns

       The server will display a banner unless the -silent switch is used. The
       banner  will not indicate whether or not the server was able to bind to
       the configured address. You must check the server status with sockstat,
       top, and nslookup or dig:

       good tool for DNS testing, and is  supplied  with  the  wonderful  MSys
       package.  (See  the  plug in the next section) Alternatively, if a Unix
       machine is available, the user may use the DIG utility to obtain a nice
       summary output from the DNS server.

       Ethereal utility

       Ethereal  is  a  utility  that is available for Windows and for various
       unix variants. The use of this utility is a great way to view the  more
       arcane detail of the output of the "Four Calorie DNS Server". Note that
       on windows, the Ethereal utility requires the "PCAP for Windows"  soft-
       ware to be pre-installed. The PCAP packet capture software is available
       as a freeware (beta version) download.

       Single IP Setups



       Easy DNS - HTTP setup ... all on one machine!

       We stipulate that this beta version cannot be used on the public Inter-
       net,  however; the following list describes what would be the relation-
       ship between the HTTP server and the DNS server in  any  future  public
       deployment of the HTTP and DNS servers:

       The  domain  name  registry  record  at Register.com (or wherever it is
       maintained) contains the address of the name server (Four  Calorie  DNS
       server, in our case) for the somedomain.com domain

       1. The DNS configuration file of the DNS server contains the address of
       the domain (which in a one server setup, will also be  the  address  of
       the HTTP server. (Four Calorie Web Server, in our case)

       2.  The  web  server  is  bound  to  port 80 on a machine that has been
       assigned the aforementioned address. (Everything is on one machine,  in
       our  case,  and  all  three  configuration  file addresses are the same
       domain address)

       3. A random user  browses  the  Internet,  and  finds  a  link  to  our
       www.somedomain.com  site.  The  random user clicks on the browser link.
       The browser uses what is known as a "resolver" to  query  the  client's
       assigned  DNS  address, which at some point will query the root servers
       (or some other server) for our nameserver address as it is recorded  by
       the registrar record.

       4.  The  browser  then  knows  where our nameserver is, and queries our
       nameserver for the resolution  of  www.somedomain.com.  Our  nameserver
       (Four Calorie DNS Server) returns a result to the browser (which is the
       same domain IP address as the web http server in our  one-machine  con-
       figuration.)

       5.  The  browser,  with our web server's address in hand, transfers our

       Note that this program is still in the development and testing process,
       so perfect function is not assured
        - don't use it for anything important!

       Email  suggestions  to:  rleesBSD@gmail.com,  with  subject line /Attn:
       RScheckelhoff /REF: (Datazygte) Four Calorie DNS Server



OPTIONS

       -silent disables banner


SEE ALSO

       fourcdns.pdf



SERVER                                DNS                        FOUR(CALORIE)

Man(1) output converted with man2html