Re: Unexpected unset of domainname
justin joseph wrote:
> On 7/24/09, James Brown <jbrownfirst@gmail.com> wrote:
>
>
>> There is my hostname in my "/etc/hostname", it was not unset.
>> I don't understand why my system doesn't determine my domain name from the
>> hostname accordinly with the man of "resolv.conf"?
>> How can I to restore my settings?!
>>
>
> to use hosts file to specify domain name(examples form "man hosts"):
>
>
> 127.0.0.1 localhost
> 192.168.1.10 foo.mydomain.org foo
> 192.168.1.13 bar.mydomain.org bar
> 146.82.138.7 master.debian.org master
>
>
> specify your domain name in /etc/hosts file accordingly.
>
This file contains the bellow:
127.0.0.1 localhost
127.0.1.1 JAMES.JMS JAMES
# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
I think it's OK with this file, don't it?
> test with dnsdomainname
>
>
$ dnsdomainname
JMS
Is it quite right?
>> --
>> To UNSUBSCRIBE, email to debian-laptop-REQUEST@lists.debian.org
>> with a subject of "unsubscribe". Trouble? Contact
>> listmaster@lists.debian.org
>>
>>
>>
>
>
Reply to: