Re: [GIT PATCH] I2C and W1 bugfixes for 2.6.12-rc2
From: Martin Schlemmer <hidden>
Date: 2016-06-15 22:41:53
Attachments
- signature.asc [application/pgp-signature] 189 bytes
From: Martin Schlemmer <hidden>
Date: 2016-06-15 22:41:53
On Tue, 2005-04-19 at 15:00 -0700, Linus Torvalds wrote:
On Tue, 19 Apr 2005, Greg KH wrote:quoted
It looks like your domain name isn't set up properly for your box (which is why it worked for you, but not me before, causing that patch).No, I think it's a bug in your domainname changes. I don't think you should do the domainname at all if the hostname has a dot in it. Most machines I have access to (and that includes machines that are professionally maintained, not just my own cruddy setup) says "(none)" to domainname and have the full hostname in hostname. And even the ones that use domainname tend to not have a fully qualified DNS domain there. You need to use dnsdomainname to get that, and I don't even know how to do it with standard libc.
Correct me if I am wrong, but the right way to do this is to set the hostname to just that - the hostname, and add 'domain foo.com' to /etc/resolv.conf. Then you should get something like (for say www1.foo.com): $ hostname www1 $ dnsdomainname foo.com $ hostname -f www1.foo.com I know for some buggy software the workaround was to set the hostname to the FQDN, but that is really just a kludge, and the software should rather be fixed (had to patch postfix some time back for instance). -- Martin Schlemmer