Cant configure DNS properly on centos
Posted
by
Nuker
on Server Fault
See other posts from Server Fault
or by Nuker
Published on 2014-05-31T07:19:09Z
Indexed on
2014/05/31
9:30 UTC
Read the original article
Hit count: 214
I am on a VPS i must manage my own. I have network problems because in the last days many of my users report they cant enter my site from my domain and seems like Google and Facebook cant either (this never happened before).
However i can enter my site without problems and so many other people as well. So i tested by making a php include like this
<?php
include 'http://mysite.com/somepage.php';
?>
and i get this error:
Warning: include(): php_network_getaddresses: getaddrinfo failed: Name or service not known in
I even tried by including content from yahoo.com or facebook and didnt work either. However the includes will work if i use IPs instead of domains. Do i have a DNS problem or something? What can i do to fix it?
Im on a Linux 2.6.32-431.11.2.el6.x86_64 on x86_64 CentOS Linux 6.5
I have this on my resolv.conf
# Generated by NetworkManager
# No nameservers found; try putting DNS servers into your
# ifcfg files in /etc/sysconfig/network-scripts like so:
#
# DNS1=xxx.xxx.xxx.xxx
# DNS2=xxx.xxx.xxx.xxx
# DOMAIN=lab.foo.com bar.foo.com
nameserver 8.8.8.8 nameserver 8.8.4.4
Thank you.
© Server Fault or respective owner