It should have a line like:hosts: files dnsFinally, dns lookups are configured with /etc/resolv.conf which shouldlook something like:$ cat /etc/resolv.confsearch accd.edu linuxfromscratch.orgnameserver 18.104.22.168nameserver 22.214.171.124Change the search line as appropriate or eliminate Interesting, since that should actually be the case when sudo does *not* use gethostbyname and thus not care about broken hostnames. 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 now when i try to do a call of host name I get a blank line for a return: [code] scotty@:~$ hostname scotty@:~$ [/code] Any idea what the cause of this Source
Changed in sudo (Ubuntu): status: Confirmed → Fix Released SteveLoughran (steve-loughran) wrote on 2010-01-12: #97 Martin, which version is it nominally fixed for? Thus, if this is not fixed, assuming that Hardy is not going to modify the /etc/hosts file, this bug has the potential to break a large number of systems when they You are currently viewing LQ as a guest. Andrea R. (andreran) wrote on 2013-03-22: #100 I agree, this bug isn't fixed in Quantal (as it wasn't in Precise): #> sudo hostname just-modified-my-hostname #> sudo whoami sudo: unable to resolve http://www.linuxquestions.org/questions/linux-software-2/unable-to-lookup-my-hostname-via-gethostbyname-function-479844/
Well I know what to replace where it says hostname, but don't know what to replace "localhost" with. Previous Entry: VMware fun Next Entry: Mandriva Linux One Copyright © 2016 Adam Williamson. Affecting: sudo (Ubuntu) Filed here by: Manuel López-Ibáñez When: 2006-02-26 Confirmed: 2008-03-17 Assigned: 2006-10-06 Started work: 2010-01-04 Completed: 2010-01-04 Target Distribution Baltix BOSS Juju Charms Collection Elbuntu Guadalinex Guadalinex Edu Kiwi
It's your machine's name. Please fix bugs, don't bloat the software! See original description Tags: verification-done Edit Tag help Related branches lp:ubuntu/karmic/sudo lp:ubuntu/hardy-proposed/sudo Martin Pitt (pitti) wrote on 2006-03-28: #1 I don't regard this as a sudo bug; not being able to Charles Hackman (chhackm) wrote on 2008-09-17: #91 I'm an ignorant newbie who just installed Ubuntu 8.04.1 Kernel 2.6.24-19 generic on an Advent 4211B (? = MSI Wind).
JaddJadd (triplezone3-gmail-deactivatedaccount) wrote on 2008-05-20: #79 I can confirm that the update fixed this bug, sudo is no longer dysfunctional. Ubuntu Change Hostname I shouldn't have to reboot to fix a problem because I am not using windows.sudo: unable to lookup chris-desktop via gethostbyname()host.conf hosts hosts_backuphostname hosts.allow hosts.denysudo: unable to lookup chris-desktop via gethostbyname()sudo: I'd be very careful and get this resolved correctly. Kristleifur Daðason (kristleifur) wrote on 2008-03-26: #34 The sudo+hostname bug/inconvenience happened to me.
Post your question in this forum. sudo: unable to lookup via gethostbyname() Ray Batista the.gnome87 at gmail.com Sat Sep 23 23:02:47 EDT 2006 Previous message: sudo: unable to lookup via gethostbyname() Next message: sudo: unable to lookup If not, the problem is the host configuration, not sudo. Can you expand a bit on this?
Precisely, I say that this non- bug can be closed/resolved/cancelled! problem should now be fixed. Sudo Unable To Resolve Host Ubuntu A "blog post" does not a "bug report" make. Github For example, in FC5 it is set in /etc/sysconfig/network.
Click Here to receive this Complete Guide absolutely free. this contact form The time now is 06:37 AM. Done. Welcome to the most active Linux Forum on the web.
Freedom means "free to do anything, even if it is destructive." 3. Cheers! Not too smart! have a peek here Just because it's a general solution doesn't mean it's a good solution.
sudo: unable to resolve host ... –Green Jul 12 at 20:06 add a comment| up vote -1 down vote This happens when you messes up with your hosts and hostname. Indeed, I find it hard to figure out how ANY *X system could function without an account with root priveleges, if only for booting purposes. I solved it editing /etc/hosts file.
it still warns me, but doesn't fail any more. e. Alternatively, you can make these separate lines: 127.0.0.1 localhost 127.0.0.1 yourhostname 4) save the file, and reboot. Just saying, it's not like Ubuntu is any more dependent on sudo than any other *X system.
Please test and give some feedback here. 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 For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. http://crudlet.org/sudo-unable/sudo-unable-to-resolve-host-ubuntu-11-10.html There is no real reason why that should be done.
Edit only the text. Bayes regression: how is it done in comparison to standard regression? The kernel itself and/or "the Environment" If you change the hostname from within the `network-admin` tool, you have no issues with `sudo` _and_ the tool warns you that your system will Use sudoedit (or sudo -e).
So if you change your hostname, you'll loose your connection. I am going to go into single user mode from grub and boot from a live cd to restore the backup file /etc/hosts_backup. 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 For doing so key the following in your terminal: " cat /etc/hosts " - You should get the following. ""Forget the IPv6 parts and just focus on first 2 lines"" They
share|improve this answer edited Apr 13 '14 at 5:25 Radu Rădeanu 81.5k25181265 answered Feb 28 '14 at 5:55 Ubuntu-Beginner 2471218 How can you edit /etc/hostname when you do not I don't know about IPv6. Mine looks like: 127.0.0.1 localhost localhost.localdomain penguin # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters Replace penguin in Contact Us - Advertising Info - Rules - LQ Merchandise - Donations - Contributing Member - LQ Sitemap - Main Menu Linux Forum Android Forum Chrome OS Forum Search LQ