##
##  swhoisd.conf -- Simple WHOIS Daemon Configuration
##

##
##  ==== RECORD DEFINITIONS ====
##
##  This server supports 4 records:
##  - hr Host Record:     Information on a host (usually a name server)
##  - dr Domain Record:   Information on a domain name
##  - pr Person Record:   Information on a person (usually a contact)
##  - nr Network Record:  Information on a network (usually a BGP AS)
##  Each record has one or more fields. If the field name is preceeded
##  with a "!" it means the field is searchable with this WHOIS daemon.
##  (See also: WHOIS RFC 1834)
##

#   Host Record
<handle> hr {
    !name   <name>
    !fqdn   <fqdn>
    !ip     <ip>
    os      <os>
    arch    <arch>
    cname   <cname>
    mx      <mx>
    country <country>
    admin   <handle>
    tech    <handle>
    created <date>
    updated <date>
}

#   Domain Record
<handle> dr {
    !name   <name>
    !domain <domain>
    ns1     <ns1>
    ns1ip   <ns1ip>
    ns2     <ns2>
    ns2ip   <ns2ip>
    ns3     <ns2>
    ns3ip   <ns2ip>
    ns4     <ns2>
    ns4ip   <ns2ip>
    ns5     <ns2>
    ns5ip   <ns2ip>
    ns6     <ns2>
    ns6ip   <ns2ip>
    ns7     <ns2>
    ns7ip   <ns2ip>
    ns8     <ns2>
    ns8ip   <ns2ip>
    ns9     <ns2>
    ns9ip   <ns2ip>
    country <country>
    contact <handle>
    admin   <handle>
    tech    <handle>
    created <date>
    updated <date>
}

#   Person Record
<handle> pr {
    !name   <name>
    !org    <organization>
    email   <email>
    address <address>
    country <country>
    phone   <phone>
    fax     <fax>
    created <date>
    updated <date>
}

#   Network Record
<handle> nr {
    !name   <name>
    !net    <net>
    admin   <handle>
    tech    <handle>
    as      <as>
    created <date>
    updated <date>
}

##
##  ==== RECORD DATA ====
##

EXAMPLE-DOM dr {
    !name   Example, Inc.
    !domain example.com
    ns1     ns1.example.com
    ns1ip   192.168.0.1
    ns2     ns2.example.com
    ns2ip   192.168.0.2
    country XY
    admin   JD1-EXAMPLE
    tech    JD1-EXAMPLE
    created Sat Jun 23 01:57:22 PDT 2001
    updated Sat Jun 23 01:57:22 PDT 2001
}

EXAMPLE1-HOST hr {
    !fqdn   ns1.example.com
    !ip     192.168.0.1
    country XY
    admin   JD1-EXAMPLE
    created Sat Jun 23 01:57:22 PDT 2001
    updated Sat Jun 23 01:57:22 PDT 2001
}

EXAMPLE2-HOST hr {
    !fqdn   ns2.example.com
    !ip     192.168.0.2
    country XY
    admin   JD1-EXAMPLE
    created Sat Jun 23 01:57:22 PDT 2001
    updated Sat Jun 23 01:57:22 PDT 2001
}

JD1-EXAMPLE pr {
    !name   John Doe
    email   john.doe@example.com
    address 666 Example Ave., Example City
    country XY
    phone   555-555-1234
    fax     555-555-5678
    created Sat Jun 23 01:57:22 PDT 2001
    updated Sat Jun 23 01:57:22 PDT 2001
}

