My server can't resolve domains?


 
Thread Tools Search this Thread
Operating Systems Linux My server can't resolve domains?
# 1  
Old 05-31-2014
Wrench My server can't resolve domains?

I am on a VPS that is pretty much unmanaged so it means im on my own. I did my best to configure it so i can host my own site for other people to see it online but seems like 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).



Its weird because i can enter my site without problems and so many other people as well. But then i tried to make a php include and i get this error:
HTML Code:
Warning: include(): php_network_getaddresses: getaddrinfo failed: Name or service not known in
I was told that seems like my server cant resolve domains. The includes work if i use IPs instead of domains. So it means 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 resolve.conf
HTML Code:
# 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.
# 2  
Old 05-31-2014
You can't resolve hostname, may be dns problem (may be using old cached DNS records), host may be unreachable, try to use ip instead of hostname. also try to add hostname in /etc/hosts file
Code:
192.x.x.x example.com

# 3  
Old 05-31-2014
Thanks for your answer. I figured out its a dns problem but howcan i fix it? Is it something physical or something i can fix by editing files? What IP should i put there? What instead of example.com? my own domain?
# 4  
Old 05-31-2014
do entry of your server ip and server name on your local server's hosts file, since you said "cant enter my site from my domain", your resolve.conf looks fine to me as you are using google's public DNS servers
# 5  
Old 05-31-2014
The IP is the local IP of the machine or the public one? Thank you.
# 6  
Old 05-31-2014
Public
Same IP you would if you do http://IP in your browser
# 7  
Old 05-31-2014
Thanks. And what about server name? Its the name of the machine?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

VLANs and their domains

Hey everyone. I work in a data center, and I'm working on getting my CCNA. Now when I read articles on the idea of VLAN's it makes sense. Especially if you have multiple switches daisy chained in multiple locations. My two main questions though are that most of these examples use PC's as examples... (2 Replies)
Discussion started by: Lost in Cyberia
2 Replies

2. Red Hat

Name resolution is only working from server side. Clients cannot resolve host names.

Hi Folks, Could anyone please point me to the right direction as I have spent so much time on this without luck. :wall: I have installed Bind on my CentOS 5 server for internal network. The name resolution is working from the server itself only but not from the clients. --------------... (7 Replies)
Discussion started by: dbadmin100
7 Replies

3. Solaris

How to resolve duplicated MAC address on Solaris server?

Hi folks, I found out the following: provadm@BKP_LIV_NPPGW_02:home/provadm%/usr/sbin/arp -a Net to Media Table: IPv4 Device IP Address Mask Flags Phys Addr ------ -------------------- --------------- -------- -------------------- ce5 BKP_OnM_NPPGW_02 255.255.255.255 SPLA 00:14:4f:44:e0:86... (1 Reply)
Discussion started by: kimurayuki
1 Replies

4. Shell Programming and Scripting

Retrieve all DNS zones (domains) from local server

Hello, I am trying to retrieve all DNS zones from the local bind server without parsing the /var/named folder, removing .db from the zone file names and the special zones files. I am looking for some kind of named, dig etc command that would retrieve all domains from the server eventually with... (2 Replies)
Discussion started by: AndyB78
2 Replies

5. Linux

resolve one IP on DNS server

Hi! I have a dns server (bind) with 2 zones forward and reverse and i need to resolve one ip completely different. I have add to /etc/hosts and i can ping but i can't do nslookup. I've tried to add the dns server responsible to resolve that ip on /etc/resolv.conf without success. So how can i... (2 Replies)
Discussion started by: BufferExploder
2 Replies

6. UNIX for Dummies Questions & Answers

Please resolve it

#!/bin/sh# 'clear'for i in $(seq -w 15 37)doecho $iecho The content in ZZ=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.co.../test/test.jsp`echo $ZA="Connection timed out."echo The content in Aecho $Aexpr "$A" : '..\(...\)'echo $Adone Hi,Please see the above program. The above... (9 Replies)
Discussion started by: veerumahanthi41
9 Replies

7. UNIX for Dummies Questions & Answers

Telnet Server FTP warning messages 500 'AUTH GSSAPI' how to resolve??

These are the warning messages I am getting but the FTP works fine.How do I get rid of these? 220 FTP server (SunOS 5.8) ready. 500 'AUTH GSSAPI': command not understood. 500 'AUTH KERBEROS_V4': command not understood. KERBEROS_V4 rejected as an authentication type (0 Replies)
Discussion started by: csviking
0 Replies

8. UNIX for Dummies Questions & Answers

how do u resolve this????

Please help me on how to resolve: 1-unresponsive terminals 2-unresponsive applications 3-how to interrupt processe p.s unix/linux OS (1 Reply)
Discussion started by: zizu
1 Replies

9. UNIX for Dummies Questions & Answers

creating domains

ok i am setting up dns or going to do it with solaris 9 once u setup the domain what file can u look @ to see if it setup or not (4 Replies)
Discussion started by: rmuhammad
4 Replies

10. UNIX for Dummies Questions & Answers

multiple domains

Hello, I have 3 domains virtually hosted "name based" the first one "domain1.com" has its ServerName entered as domain1.com. this domain will load in a browser by www.domain1.com or simply domain1.com. the next two domains "domain2.com" and "domain3.com" ServerNames are listed as domain2.com and... (2 Replies)
Discussion started by: ericg
2 Replies
Login or Register to Ask a Question