[SCM] GNU Inetutils branch, master, updated. inetutils-1_9_1-60-ga6524c6

Simon Josefsson <[email protected]>
Newsgroups gmane.comp.gnu.inetutils.cvs
Message-ID <[email protected]>
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Inetutils ".

The branch, master has been updated
       via  a6524c63b5f0d529ab3fffb189c9c8513dcd2405 (commit)
      from  cf0173f1eaf518dda83adeb0efd80f249fa17264 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/inetutils.git/commit/?id=a6524c63b5f0d529ab3fffb189c9c8513dcd2405


commit a6524c63b5f0d529ab3fffb189c9c8513dcd2405
Author: Simon Josefsson <[email protected]>
Date:   Thu Mar 15 10:33:36 2012 +0100

    dnsdomainname: Doc fixes.

diff --git a/ChangeLog b/ChangeLog
index c858b45..be4d4c6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-03-15  Simon Josefsson  <[email protected]>
 
+	* doc/inetutils.texi (dnsdomainname invocation): Doc fix.
+	* man/dnsdomainname.h2m: Likewise.
+	* src/dnsdomainname.c (doc): Likewise.
+
 	* src/dnsdomainname.c (dnsdomainname): Don't error when canonical
 	name does not have domain name component (compatibility with
 	Debian dnsdomainname).  Suggested by Mats Erik Andersson
diff --git a/doc/inetutils.texi b/doc/inetutils.texi
index 892fb15..1078256 100644
--- a/doc/inetutils.texi
+++ b/doc/inetutils.texi
@@ -292,6 +292,12 @@ system's fully qualified domain name.  For example, if the FQDN of the
 system is @code{name.example.org} the command will show
 @code{example.org}.
 
+The tool uses gethostname to get the host name of the system and
+getaddrinfo to resolve it into a canonical name.  The part after the
+first period (@code{.}) of the canonical name is shown.
+
+The output is not necessarily related to the NIS/YP domain name.
+
 @example
 dnsdomainname [@var{option}@dots{}]
 @end example
diff --git a/man/dnsdomainname.h2m b/man/dnsdomainname.h2m
index afcf637..f4e2d51 100644
--- a/man/dnsdomainname.h2m
+++ b/man/dnsdomainname.h2m
@@ -1,2 +1,5 @@
 [NAME]
 dnsdomainname \- show DNS domain name
+
+[SEE ALSO]
+gethostname(2), getaddrinfo(3)
diff --git a/src/dnsdomainname.c b/src/dnsdomainname.c
index 25e5359..554eef3 100644
--- a/src/dnsdomainname.c
+++ b/src/dnsdomainname.c
@@ -30,7 +30,11 @@
 #include "xgethostname.h"
 
 const char doc[] =
-  "Show domain part of the system's fully qualified domain name.";
+  "Show domain part of the system's fully qualified host name.\n\
+\n\
+The tool uses gethostname to get the host name of the system\n\
+and getaddrinfo to resolve it into a canonical name.  The part\n\
+after the first period ('.') of the canonical name is shown.";
 const char *program_authors[] = {
   "Simon Josefsson",
   NULL

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog             |    4 ++++
 doc/inetutils.texi    |    6 ++++++
 man/dnsdomainname.h2m |    3 +++
 src/dnsdomainname.c   |    6 +++++-
 4 files changed, 18 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
GNU Inetutils
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.