Bug 144630

Summary: [patch] domainname(1) manpage contains old information
Product: Documentation Reporter: stadtkind2
Component: Books & ArticlesAssignee: Joel Dahl <joel>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.dat none

Description stadtkind2 2010-03-10 15:20:05 UTC
domainname(1) still reads (on 7.x and 8.x at least, haven't checked 6.x)

"The super-user can set the domain name by supplying an argument; this is usually done in the network initialization script /etc/rc.network, normally run at boot time."

as /etc/rc.network doesn't exist anymore, it seems that this statement was obsoleted by the rc.d framework and should rather point to rc.conf's nisdomainname="..." now IMHO

How-To-Repeat: man domainname
Comment 1 Alt 2010-07-01 12:20:10 UTC
This is a patch for this PR

> svn diff
Index: domainname.1
===================================================================
--- domainname.1        (revision 209623)
+++ domainname.1        (working copy)
@@ -43,11 +43,11 @@
 .Nm
 utility prints the name of the current YP/NIS domain.
 The super-user can
-set the domain name by supplying an argument; this is usually done in the
-network initialization script
-.Pa /etc/rc.network ,
-normally run at boot
-time.
+set the domain name by supplying an argument; this is usually done with variable
+.Pa nisdomainname
+in the initialization script
+.Pa /etc/rc.conf ,
+normally run at boot time.
 .Sh NOTES
 The YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons)
 domain name does not necessarily have anything to do with the Domain
Comment 2 Joel Dahl freebsd_committer freebsd_triage 2013-04-22 12:01:21 UTC
Responsible Changed
From-To: freebsd-doc->joel

Take.
Comment 3 dfilter service freebsd_committer freebsd_triage 2013-04-22 18:55:20 UTC
Author: joel (doc committer)
Date: Mon Apr 22 17:55:12 2013
New Revision: 249769
URL: http://svnweb.freebsd.org/changeset/base/249769

Log:
  Point users towards nisdomainname and rc.conf.
  
  PR:		144630
  Submitted by:	Stefan Krueger <stadtkind2@gmx.de>,
  		Fel <wtfcrap@mail.ru>

Modified:
  head/bin/domainname/domainname.1

Modified: head/bin/domainname/domainname.1
==============================================================================
--- head/bin/domainname/domainname.1	Mon Apr 22 17:38:26 2013	(r249768)
+++ head/bin/domainname/domainname.1	Mon Apr 22 17:55:12 2013	(r249769)
@@ -29,7 +29,7 @@
 .\"	From: @(#)hostname.1	8.1 (Berkeley) 5/31/93
 .\" $FreeBSD$
 .\"
-.Dd September 18, 1994
+.Dd April 22, 2013
 .Dt DOMAINNAME 1
 .Os
 .Sh NAME
@@ -43,10 +43,11 @@ The
 .Nm
 utility prints the name of the current YP/NIS domain.
 The super-user can
-set the domain name by supplying an argument; this is usually done in the
-network initialization script
-.Pa /etc/rc.network ,
-normally run at boot
+set the domain name by supplying an argument; this is usually done with the
+.Va nisdomainname
+variable in the
+.Pa /etc/rc.conf
+file, normally run at boot
 time.
 .Sh NOTES
 The YP/NIS (formerly ``Yellow Pages'' but renamed for legal reasons)
@@ -54,7 +55,8 @@ domain name does not necessarily have an
 Name System domain name, although they are often set equal for administrative
 convenience.
 .Sh SEE ALSO
-.Xr getdomainname 3
+.Xr getdomainname 3 ,
+.Xr rc.conf 5
 .Sh HISTORY
 The
 .Nm
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
Comment 4 Joel Dahl freebsd_committer freebsd_triage 2013-04-22 18:55:33 UTC
State Changed
From-To: open->closed

Patch committed with some modifications. Thanks.
Comment 5 9367273213 2013-12-06 23:55:15 UTC
Help