sudo: unable to resolve host (FQDN)

61 views
Skip to first unread message

thufir

unread,
Mar 24, 2012, 3:24:27 PM3/24/12
to ubuntu...@lists.ubuntu.com
After looking over the man page and the google, it's less clear than when
I started.

In any event, I'm trying to setup an FQDN as so:

https://gist.github.com/2186508


what I'm getting is that inn2 won't install correctly and that sudo gives
an error (warning?) sudo: unable to resolve host dur.


My reading of man pages was to change the hostname in /etc/hosts and
reboot, but obviously that's incorrect. Aside from using the hostname
command, what's required here?

thanks,

Thufir


--
ubuntu-users mailing list
ubuntu...@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Avi Greenbury

unread,
Mar 24, 2012, 4:46:14 PM3/24/12
to ubuntu...@lists.ubuntu.com
thufir wrote:

> After looking over the man page and the google, it's less clear than
> when I started.
>
> In any event, I'm trying to setup an FQDN as so:
>
> https://gist.github.com/2186508
>
>
> what I'm getting is that inn2 won't install correctly and that sudo
> gives an error (warning?) sudo: unable to resolve host dur.
>
>
> My reading of man pages was to change the hostname in /etc/hosts and
> reboot, but obviously that's incorrect. Aside from using the
> hostname command, what's required here?

To make Sudo stop complaining, your hostname *and* FQDN should be listed
in /etc/hosts:

127.0.1.1 dur.bounceme.net dur

I don't know inn2 well enough to know what it's trying to do, but that
may help (though I see this is how it was configured before). Sudo will
only be warning; it'll carry on even if it can't resolve its hostname.

--
Avi

Ric Moore

unread,
Mar 24, 2012, 5:28:30 PM3/24/12
to Ubuntu user technical support, not for general discussions
On 03/24/2012 04:46 PM, Avi Greenbury wrote:
> thufir wrote:
>
>> After looking over the man page and the google, it's less clear than
>> when I started.
>>
>> In any event, I'm trying to setup an FQDN as so:
>>
>> https://gist.github.com/2186508
>>
>>
>> what I'm getting is that inn2 won't install correctly and that sudo
>> gives an error (warning?) sudo: unable to resolve host dur.
>>
>>
>> My reading of man pages was to change the hostname in /etc/hosts and
>> reboot, but obviously that's incorrect. Aside from using the
>> hostname command, what's required here?
>
> To make Sudo stop complaining, your hostname *and* FQDN should be listed
> in /etc/hosts:
>
> 127.0.1.1 dur.bounceme.net dur
>
> I don't know inn2 well enough to know what it's trying to do, but that
> may help (though I see this is how it was configured before). Sudo will
> only be warning; it'll carry on even if it can't resolve its hostname.

Look in /etc as you ALSO have the hostname file to check as well. I miss
the good ole days.

wayward4now@iam:/etc$ more hostname
iam
wayward4now@iam:/etc$ hostname
iam
wayward4now@iam:/etc$ hostname -f
iam.wayward4now.net
wayward4now@iam:/etc$

:) Ric

--
My father, Victor Moore (Vic) used to say:
"There are two Great Sins in the world...
..the Sin of Ignorance, and the Sin of Stupidity.
Only the former may be overcome." R.I.P. Dad.
http://linuxcounter.net/user/44256.html

Thufir

unread,
Mar 25, 2012, 12:14:36 AM3/25/12
to ubuntu...@lists.ubuntu.com
On Sat, 24 Mar 2012 17:28:30 -0400, Ric Moore wrote:

> Look in /etc as you ALSO have the hostname file to check as well. I miss
> the good ole days.

Ah, yeah, I did that and rebooted, seems to to work. thanks!

Reply all
Reply to author
Forward
0 new messages