[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: cannot resolve hostname



On Sat, May 7, 2011 at 11:40 AM, AG <computing.account@googlemail.com> wrote:
> On 07/05/11 16:31, Tom H wrote:
>> On Sat, May 7, 2011 at 9:14 AM, AG<computing.account@googlemail.com>
>>  wrote:
>>>
>>> In what seems to be a string of related issues having to do with
>>> networking,
>>> I now find that not only has my IP address been changed from 192.168.1.40
>>> to
>>> 192.168.1.64 but also that my machine's name (valhalla) cannot be
>>> resolved.
>>>
>>> This is the output of ifconfig:
>>> $ sudo ifconfig
>>> sudo: unable to resolve host valhalla
>>> eth0      Link encap:Ethernet  HWaddr 00:90:47:05:a3:07
>>>          inet addr:192.168.1.64  Bcast:192.168.1.255  Mask:255.255.255.0
>>>          inet6 addr: fe80::290:47ff:fe05:a307/64 Scope:Link
>>>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>>>          RX packets:47117 errors:0 dropped:0 overruns:0 frame:0
>>>          TX packets:46335 errors:0 dropped:0 overruns:0 carrier:0
>>>          collisions:0 txqueuelen:1000
>>>          RX bytes:38194090 (36.4 MiB)  TX bytes:6237238 (5.9 MiB)
>>>          Interrupt:18 Base address:0xec00
>>>
>>> lo        Link encap:Local Loopback
>>>          inet addr:127.0.0.1  Mask:255.0.0.0
>>>          inet6 addr: ::1/128 Scope:Host
>>>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>>>          RX packets:7309 errors:0 dropped:0 overruns:0 frame:0
>>>          TX packets:7309 errors:0 dropped:0 overruns:0 carrier:0
>>>          collisions:0 txqueuelen:0
>>>          RX bytes:2964856 (2.8 MiB)  TX bytes:2964856 (2.8 MiB)
>>
>> sudo: What's the output of "cat /etc/hostname" and "cat /etc/hosts"?
>
> $ cat /etc/hostname
> valhalla
>
> $ cat /etc/hosts
> 127.0.0.1 localhost
> #192.168.1.64 valhalla.org
> 192.168.1.40 valhalla.org

Set "valhalla" as an alias of "valhalla.org" on the "192.168.1.40
valhalla.org" line to stop the "sudo: unable to resolve host valhalla"
messages.


Reply to: