Geek Stuff > Programs > Cygnus/X QOTD Server

Cygnus/X QOTD Server


Quote of the day (QOTD) is a protocol in the IP suite defined by RFC 865.

From Wikipedia:

A host may connect to a server that supports the RFC 865 QOTD protocol, on either TCP or UDP port 17. In order to keep the quotes at a reasonable length, RFC 865 specified a maximum length of 512 characters for the quote.

qd is a basic QOTD server written in Java for Linux. It is intended to be executed on boot and even logs connections. To see how it works, use the Telnet client on your computer to connect to port 17 on Cygnus/X as follows:

telnet 17

On a Unix-compatible machine, you'll see output similar to

Connected to
Escape character is '^]'.

"Our greatest weakness lies in giving up. The most certain way 
to succeed is always to try just one more time."

- Thomas Alva Edison
Connection closed by foreign host.

The Cygnus/X QOTD daemon (qd) is written in Java and intended to run on newer Linux machines which have removed this functionality from inetd. By default, qd runs on port 17 as per the standard but may be instructed to run on any port. Quotes are read from /etc/qd/qotd and a log is written to /etc/qd/qd.log

More content coming soon...

Questions? Comments? Click here to drop me a line. I'm open to criticism and happy to help you troubleshoot.