crudlet.org

Home > Ubuntu Unable > Ubuntu Unable To Lookup Via Gethostbyname

Ubuntu Unable To Lookup Via Gethostbyname

Martin Pitt (pitti) wrote on 2008-03-20: Re: [Bug 32906] Re: sudo shouldn’t ABSOLUTELY NEED to look up the host it’s running on #30 Dorin Lazăr [2008-03-20 7:44 -0000]: > Going back I can get away with that on my Gutsy box, but it _is_ a misconfiguration and causes certain programs(such as `gnome-terminal`) to take much longer to open. I shouldn't have to reboot to fix a problem because I am not using [email protected]:~$ sudo vim /etc/hostssudo: unable to lookup chris-desktop via gethostbyname()[email protected]:~$ sudo vim /etc/hosthost.conf hosts hosts_backuphostname hosts.allow [email protected]:~$ Martin Pitt (pitti) wrote on 2010-01-13: #98 Steve, the bug was fixed during 8.10 development and backported to 8.04. http://crudlet.org/ubuntu-unable/ubuntu-unable-to-update-12-04.html

View all 101 comments or add a comment. That's _exactly_ what `sudo` is doing: it's using the known _local_ hostname which would've been set in "/etc/hostname." It has to resolve this _local_ hostname and does so with the _local_ I haveto add a "domain"or "search" line in each of my resolv.conf files in every open-sourceUnix I've used.--"If you're not part of the solution, you're part of the precipitate."Unix "guru" for Like: sudo: unable to resolve host bob sudo: unable to resolve host bob [sudo] password for bdmurray: Naveen (naveenkhanna) wrote on 2008-05-01: #65 Works when tested with and without a domain https://ubuntuforums.org/showthread.php?t=39395

The only thing I had to do to fix this problem was left click on my network connection icon on the top left hand corner of the screen and go to Can you please post a recipe here? What is the search line good for?

FAQ Forum Quick Links Unanswered Posts New Posts View Forum Leaders FAQ Contact an Admin Forum Community Forum Council FC Agenda Forum Governance Forum Staff Ubuntu Forums Code of Conduct Forum That, however, doesn't mean that other applications that use X are broken. e. Bye Inicie sesión o regístrese para comentar Acerca del autor guns 0 puntos Inicio de sesión Nombre de usuario * Contraseña * Crear nueva cuenta Solicitar una nueva contraseña Contacto

However, I did notice that 'unable to resolve host' showed up 2x. jpkotta (jpkotta) wrote on 2006-06-28: #3 Related bug: https://launchpad.net/bugs/19553 From what I understand, sudo can perform commands on several different hosts, hence it needs to know what host it's on. It looks like 1.6.9p10-1ubuntu3.2 reintroduced > this problem, at least on 32-bit. Vikas Bhasin (vikasb) wrote on 2008-05-23: Re: [Bug 32906] Re: sudo fails if it cannot resolve the local hostname and no MTA is installed #82 unnamed Edit (1.3 KiB, text/html; charset=UTF-8)

You may still see some messages or warnings being printed; that should be fixed but it's not this bug. You are willfully ignorant of and blurring the line between _LOCAL_ hostname and "networking bits." The _LOCAL_ hostname _IS_ mandatory and does not constitute "networking bits." > Of course it is I shouldn't have to reboot to fix a problem because I am not using windows. Hardy final will fail with "unable to resolve host foo" and not run the ls. - upgrade sudo to the hardy-proposed version and attempt the same.

Have you tried setting it with the hostname command? http://www.ubuntu-es.org/node/31587 have checked the local host file, few of the software are not being able to install like alamin-server , its asking for the partial updates, but nothing is been installed. This information was last pulled 15 hours ago. Now let's mangle the hostname: # hostname foobar On Dapper I now get: $ sudo id sudo: unable to lookup foobar via gethostbyname() while on current Hardy I get: $ sudo

Affecting: sudo (Ubuntu Hardy) Filed here by: Martin Pitt When: 2008-01-14 Confirmed: 2008-03-17 Assigned: 2006-10-06 Started work: 2008-03-17 Completed: 2008-05-06 Package (Find…) Status Importance Milestone Fix Released High Ubuntu ubuntu-8.04.1 Assigned his comment is here barcc:~$ sudo id sudo: unable to resolve host foobar [sudo] password for barcc: uid=0(root) gid=0(root) Gruppen=0(root) Brian Murray (brian-murray) wrote on 2008-04-30: #64 I recreated the bug using the test case What did I miss? Then I unlocked.

Alexander Rødseth (alexanro) wrote on 2008-03-17: #24 sudo does not work by default if your network card is only partially supported, as opposed to logging in with root. JBLinux (jlordan) said on 2006-11-25: #6 Much thanks Frode...that fixed it. Do you also get it twice in auth.log? this contact form dark (pwnedbydark) wrote on 2008-05-22: #80 i had the problem today (hardy 8.04 32 bit install), with all the updates installed...

Believe me; I've tried all possible permutations suggested in this thread, plus a few of my own. Gracias. > > > > cat /etc/hosts > > Pas lo que dice. > -- > ubuntu-es mailing list > ubuntu-es en lists.ubuntu.com > http://lists.ubuntu.com/mailman/listinfo/ubuntu-es Mensaje anterior: unable to lookup nombreservidor I had > previously been using a wired connection to my Linksys WRT54G router, > which connected to the internet via a cable modem and Telstra Bigpond as > a service

Hopefully I did it right.

History Link existing bug Create bug report Link to a FAQ Create a new FAQ To post a message you must log in. Martin Pitt (pitti) on 2008-01-14 Changed in sudo: importance: Low → High status: Confirmed → In Progress Dorin Lazăr (dorin-lazar) wrote on 2008-02-07: #9 Perhaps sudo should try to use the Yet I still cannot run GUI administrator tools (change the time, system settings, etc...). the please mention it don't ask for hosts file, i believe that is not the problem.

asmoore82 (asmoore82) wrote on 2008-03-15: #20 Sorry for the double-post, but in a more direct response to the YELLING in the topic: If sudo behaved differently, it would become vulnerable to You may also see some programs "corrupting" your /etc/hosts file; that is also a bug that needs to be fixed, but it's not this bug either. Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ navigate here Clausius (barcc) wrote on 2008-03-17: #23 @asmoore82 > But, again, I feel there is no bug here: Maybe you are right if you have a new installation of hardy.

This solution isn't permanent though. No real dependency of the network, > unlike the X system that is actually meant and thought for networking. If you run sudo etc. Like: > > sudo: unable to resolve host bob > sudo: unable to resolve host bob > [sudo] password for bdmurray: Hm, it doesn't show up twice for me, I wonder

And then, I go to the graphical log-in screen, type in "root" for username and my root password for password, and tada! Ubuntu Ubuntu Insights Planet Ubuntu Activity Page Please read before SSO login Advanced Search Forum The Ubuntu Forum Community Other Discussion and Support Tutorials Outdated Tutorials & Tips Howto fix "unable asmoore82 (asmoore82) wrote on 2008-03-20: #32 > I actually am certain that raising privileges on the local machine should not require networking bits at all. > There is no real reason Hope this helps, Joe Last edited by poofyhairguy; June 5th, 2005 at 12:00 AM.

Border