I can't use git clone or even apt-get install because I get a cannot resolve host error. They were working before, but I have no idea what changed that broke the DNS resolve. I can't find any information about what's going on. Ping:ping google.comping: unknown host google.comTelnet:telnet google.comtelnet: could not resolve google.com/telnet: Name or service not knownNSLookup:nslookup google.comServer:         8.8.8.8Address:        8.8.8.8#53Non-authoritative answer:Name:   google.comAddress: 74.125.239.40Name:   google.comAddress: 74.125.239.46Name:   google.comAddress: 74.125.239.36Name:   google.comAddress: 74.125.239.39Name:   google.comAddress: 74.125.239.33Name:   google.comAddress: 74.125.239.41Name:   google.comAddress: 74.125.239.38Name:   google.comAddress: 74.125.239.32Name:   google.comAddress: 74.125.239.35Name:   google.comAddress: 74.125.239.34Name:   google.comAddress: 74.125.239.37Host:host google.comgoogle.com has address 74.125.239.38google.com has address 74.125.239.36google.com has address 74.125.239.39google.com has address 74.125.239.35google.com has address 74.125.239.32google.com has address 74.125.239.33google.com has address 74.125.239.40google.com has address 74.125.239.41google.com has address 74.125.239.34google.com has address 74.125.239.46google.com has address 74.125.239.37google.com has IPv6 address 2607:f8b0:4010:801::1009google.com mail is handled by 50 alt4.aspmx.l.google.comgoogle.com mail is handled by 10 aspmx.l.google.comgoogle.com mail is handled by 20 alt1.l.google.comgoogle.com mail is handled by 40 alt3.l.google.comgoogle.com mail is handled by 30 alt2.l.google.comnetstat -rnKernel IP routing tableDestination     Gateway        Genmask        Flags MSS Window irtt Iface0.0.0.0         162.243.147.1  0.0.0.0        UG      0 0         0 eth0162.243.147.0   0.0.0.0        255.255.255.0  U       0 0         0 eth0/etc/nsswitch.conf:# /etc/nsswitch.conf## Example configuration of GNU Name Service Switch functionality.# If you have the `glibc-doc-reference' and `info' packages installed, try:# `info libc Name Service Switch' for information about this file.passwd:         compatgroup:          compatshadow:         compathosts:          files dns wins [NOTFOUND=return]networks:       filesprotocols:      db filesservices:       db filesethers:         db filesrpc:            db filesnetgroup:       nisServer: Ubuntu 14.04 trusty, Nginx, HHVM FastCGI/etc/resolv.conf used to have the Google IPs (8.8.8.8 and 8.8.4.4) while it wasn't working. I say used to because I saw someone's solution was to reinstall resolvconf, but since I can't resolve any hostnames, it just deleted it.I reinstalled resolv.conf and it looks normal now, but DNS is still not resolving./etc/resolv.conf:nameserver 2001:4860:4860::8844nameserver 2001:4860:4860::8888nameserver 8.8.8.8/etc/hosts127.0.1.1 my-domain.tld my-domain.tld127.0.0.1 localhost::1 ip6-localhost 1p6-loopbackfe00::0 ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allroutersff02::3 ip6-allhostsNote: I'm kind of new to Linux, but hopefully I'm not missing something obvious. This is the first time I couldn't figure out a solution to a problem by searching online.
Why `host` and `nslookup` on Ubuntu resolve hostnames while `ping` and `telnet` do not?
debian;ubuntu;ssh;dns;nginx