Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

jeroenherczeg's avatar

ping unknown host google.com

I have 4 servers setup with forge, on two i can ping google fine. But on the other two i get: unknown host google.com

both working and not working server look identical

/etc/resolve.conf

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 8.8.8.8
nameserver 8.8.4.4

pinging the ip works on all

Can someone point me in the right direction?

Thank you

0 likes
3 replies
ohffs's avatar

Try dig google.com (you might have to install 'dnsutils' first - not sure). That should try and do a lookup but also show the name of the dns server it tried to use. If it doesn't come back with a sensible result try dig @8.8.8.8 google.com and see what that does (it makes the tool ignore your local dns settings and query 8.8.8.8 direct).

1 like
jeroenherczeg's avatar

dig google.com

gives me

;; Truncated, retrying in TCP mode.

; <<>> DiG 9.9.5-3ubuntu0.8-Ubuntu <<>> google.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 15920
;; flags: qr rd ra; QUERY: 1, ANSWER: 6, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 512
;; QUESTION SECTION:
;google.com.            IN  A

;; ANSWER SECTION:
google.com.     299 IN  A   173.194.65.138
google.com.     299 IN  A   173.194.65.139
google.com.     299 IN  A   173.194.65.102
google.com.     299 IN  A   173.194.65.101
google.com.     299 IN  A   173.194.65.100
google.com.     299 IN  A   173.194.65.113

;; Query time: 7 msec
;; SERVER: 8.8.8.8#53(8.8.8.8)
;; WHEN: Thu Mar 17 19:30:53 CET 2016
;; MSG SIZE  rcvd: 135
jeroenherczeg's avatar
jeroenherczeg
OP
Best Answer
Level 2

Problem is solved, Digital Ocean was experiencing problems.

https://status.digitalocean.com/

AMS DNS Connectivity
Our networking team is still investigating issues with Google DNS in our AMS regions. During this time we recommend changing your droplet to another DNS provider, such as OpenDNS. If you need assistance with this, feel free to open a support ticket. We will provide an update as soon as one is available.

Please or to participate in this conversation.