1 |
I've apparently got something wrong with the hostnaming process that |
2 |
is causing sendmail to balk. |
3 |
|
4 |
Jan 30 12:41:02 localhost sendmail[10391]: My unqualified host name |
5 |
(localhost) unknown; sleeping for retry |
6 |
|
7 |
Jan 30 12:41:20 localhost sendmail[10445]: My unqualified host name |
8 |
(localhost) unknown; sleeping for retry |
9 |
|
10 |
Other evidence of a problem is that the hostname cmd returns: |
11 |
|
12 |
hostname chub (as expected) |
13 |
but |
14 |
hostname --long localhost |
15 |
(should return chub.local.net0 I think) |
16 |
|
17 |
I've setup the normal files for this like this: |
18 |
|
19 |
# cat /etc/conf.d/hostname |
20 |
|
21 |
# Set to the hostname of this machine |
22 |
HOSTNAME="chub" |
23 |
|
24 |
# cat /etc/conf.d/domainname |
25 |
|
26 |
# When setting up resolv.conf, what should take precedence? |
27 |
# If you wish to always override DHCP/whatever, set this to 1. |
28 |
OVERRIDE=1 |
29 |
|
30 |
# To have a proper FQDN, you need to setup /etc/hosts and /etc/resolv.conf |
31 |
# properly (domain entry in /etc/resolv.conf, and FQDN in /etc/hosts). |
32 |
# |
33 |
DNSDOMAIN="local.net0" |
34 |
|
35 |
# This only set what /bin/hostname returns. If you need to setup NIS, meaning |
36 |
# what /bin/domainname returns, please see: |
37 |
# |
38 |
# http://www.linux-nis.org/nis-howto/HOWTO/ |
39 |
# |
40 |
# NISDOMAIN= |
41 |
|
42 |
# cat /etc/hosts |
43 |
|
44 |
127.0.0.1 localhost chub |
45 |
## ============================ |
46 |
192.168.0.4 chub.local.net0 chub # gentoo |
47 |
#=========================================================== |
48 |
192.168.0.3 mobile2.local.net0 mobile2 # winxp (home) |
49 |
[...] |
50 |
|
51 |
domain local.net0 |
52 |
search local.net0 |
53 |
nameserver 192.168.0.20 |
54 |
|
55 |
|
56 |
-- |
57 |
gentoo-user@g.o mailing list |