Subject: Re: install/22044: missing domainname in rc.conf
To: None <wsimpson@greendragon.com>
From: Jim Wise <jwise@draga.com>
List: netbsd-bugs
Date: 07/03/2003 12:46:57
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Although not quite obviously so, `domainname' sets or gets the _NIS_
domain name of the current machine, and so is not relevant (and harmful
if set) if NIS is not being used:
domainname (1) - set or print YP domain of current host system
On Thu, 3 Jul 2003 wsimpson@greendragon.com wrote:
>
>>Number: 22044
>>Category: install
>>Synopsis: missing domainname in rc.conf
>>Confidential: no
>>Severity: serious
>>Priority: medium
>>Responsible: install-manager
>>State: open
>>Class: sw-bug
>>Submitter-Id: net
>>Arrival-Date: Thu Jul 03 16:43:00 UTC 2003
>>Closed-Date:
>>Last-Modified:
>>Originator: william allen simpson
>>Release: 1.6U
>>Organization:
>daydreamer
>>Environment:
>NetBSD dreamer 1.6U NetBSD 1.6U (GENERIC) #0: Sat Jun 28 17:36:46 UTC 2003 autobuild@tgm.daemon.org:/autobuild/HEAD/i386/OBJ/autobuild/HEAD/src/sys/arch/i386/compile/GENERIC i386
>
>>Description:
>During installation, sysinst asks for the host and domain names, but only
>inserts the hostname line in rc.conf. The domainname is missing. This
>causes innumerable problems, particularly with sendmail and postfix.
>>How-To-Repeat:
>(1) install NetBSD
>(2) domainname
>>Fix:
>In rc/distrib/utils/sysinst/net.c:
>
>- if ((net_dhcpconf & DHCPCONF_HOST) == 0)
>+ if ((net_dhcpconf & DHCPCONF_HOST) == 0) {
> add_rc_conf("hostname=%s\n", net_host);
>+ add_rc_conf("domainname=%s\n", net_domain);
>+ }
>
>>Release-Note:
>>Audit-Trail:
>>Unformatted:
>
- --
Jim Wise
jwise@draga.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (NetBSD)
iD8DBQE/BF4GlGcH240chEIRAj+AAKDnlHwhBzCWGhoNQFUzYX/Y8TkWBQCgxifJ
dzg/QOPj4kNAiAPeBSONbCg=
=rUfM
-----END PGP SIGNATURE-----