Re: sudo - unable to lookup host via gethostbyname()
On 24 Oct 2002, Shawn Lamson wrote:
> Hi all -
>
> I changed my hostname from callerio to callerio.piscat.nj and now when
> i
> invoke "sudo" i get the followin message:
> slamson@callerio:~$ sudo -v
> sudo: unable to lookup callerio.piscat.nj via gethostbyname()
>
> this follows across reboots, if however i echo "callerio" back into
> /proc/sys/kernel/hostname
> I no longer get that message... after giving that message sudo
> continues to function normally, whatever hostname is set to. Any idea
> what causes this?
>
> Shawn
Have you made the necessary change in /etc/hosts?
I've been caught in this way in the past.
AC
--
ac@acampbell.org.uk || http://www.acampbell.org.uk
using Linux GNU/Debian || for book reviews, electronic
Windows-free zone || books and skeptical articles
Reply to: