Re: How do I set a domain name?
That edit to /etc/hosts did the trick. Many thanks!
Will
--- Richard Cobbe <cobbe@airmail.net> wrote:
>Lo, on Tuesday, November 13, Williasm Dowling did write:
> ^
>
>Minor nit, but it looks like you've got a typo in your MUA configuration.
>
>> I am having trouble installing exim; when it fails it says:
>> hostname: Unknown host
>> hostname --fqdn gave non-zero exit code 256
>>
>> I do not have a registered domain name; I suppose I need to set something
>> fake like home.net.
>I have a similar situation at work and puzzled through this a while
>back. The fix is to edit /etc/hosts, but you're right, this is not
>entirely clear from the manpages.
>
>> ====== /etc/hosts =============
>> 127.0.0.1 localhost
>> # The following lines are desirable for IPv6 capable hosts
>> # (added automatically by netbase upgrade)
>> ::1 ip6-localhost ip6-loopback
>> fe00::0 ip6-localnet
>> ff00::0 ip6-mcastprefix
>> ff02::1 ip6-allnodes
>> ff02::2 ip6-allrouters
>> ff02::3 ip6-allhosts
>
>Since you use DHCP for an address, change the first line to read
>
>127.0.0.1 <FQDN> <HOSTNAME> localhost
>
>where <FQDN> is your fully-qualified domain name (with the fake domain)
>and <HOSTNAME> is the machine's hostname, as printed by `uname -n' and
>stored in /etc/hostname. In the language of the hosts(5) manpage, the
>FQDN is your canonical_hostname, so it has to be the first name after
>the IP address; the order of the other names is not significant.
>
>If you had a static IP, you'd put your FQDN and HOSTNAME on the line
>with your statically assigned IP instead.
>
>Then, edit /etc/host.conf and /etc/nsswitch.conf to make sure that you
>search /etc/hosts for hostnames at some point in the process. Usually,
>you want it to search there first, but this is probably not necessary.
>
>That should get you going.
>
>HTH,
>
>Richard
>
>
_____________________________________________________________
Get your own FREE e-mail account at http://www.volcanomail.com
Reply to: