Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have Ubuntu downloaded and installed. I input my http(s)_proxy information into my /etc/bash.bashrc as well as my apt/apt.conf and that got me past the first hurdle, but now I'm clueless on how to get past the second.

I have successfully pinged internal machines and that works just fine.

I try to do a ping on "www.google.com" and i get "unknown host www.google.com"

when i execute add-apt-repository ppa: command, i get past the first part and press enter, then I get

requesting key 4C9D234C from hkp server keyserver.ubuntu.com
?: keyserver.ubuntu.com: Host not found

can anyone help me around this hurdle?

share|improve this question

migrated from stackoverflow.com Jun 4 '13 at 6:03

This question came from our site for professional and enthusiast programmers.

    
This would be more appropriate on AskUbuntu. –  Esoteric Screen Name Jun 3 '13 at 18:10

1 Answer 1

It looks like your system lacks properly defined DNS server. Take a look at the etc/resolv.conf file, is there a name server defined? If it is, make sure it's reacheble itself by simple ping command. If not, you may always add it with a simple notation like

nameserver 8.8.8.8

Additional diagnostics may be performed with the Dig tool

share|improve this answer
    
I have 3 nameservers with one of them being localhost (127.0.0.1). my connection-specific DNS that I have on my windows machine is listed under a "search" instead of a nameserver. I also have a warning to not edit the file by hand as my changes will be overwritten –  Matt Westlake Jun 3 '13 at 18:57
    
So i used the Dig tool and the 3 nameservers returned status of NXDOMAIN and the "search" address returned "noerror" so how do I get my search address to be my DNS service? –  Matt Westlake Jun 3 '13 at 19:06
    
That means you're using 12.04, where DNS lookup configuration has been changed significantly. Localhost record is pointing to local dns server, so we'd better configure it instead, not to get our changes overwritten. Try adding server=your_search_address to your /run/nm-dns-dnsmasq.conf and then restart dnsmasq with sudo /etc/init.d/dnsmasq restart –  Jk1 Jun 4 '13 at 4:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.