LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-09-2011, 05:26 AM   #1
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Rep: Reputation: 0
Unhappy CentOS VPS Setup Problems (connections)


Hey all...

I have recently purchased an Unmanaged VPS after reading a few guides at http://howtoforge.com/ and having a basic understanding of linux thinking I would be able to set it all up myself, unfortunately I have run into massive issues with connections

I started by getting errors: Temporary failure in name resolution with wget's
Google'd it and apparently I had problems with my /etc/resolv.conf file so I changed it to:

Code:
search webanyti.me
nameserver 204.12.197.150
with webanyti.me being my domain name and the nameserver ip the ip of the server

When I ping the domain webanyti.me it returns the ip 204.12.197.150 but when I try to run something serverside (ie. ping, dig etc.) I get unknown host or "timed out; no servers could be reached" errors.

If anyone could shed some light on the subject it would be much appreciated

I have tried to include as much information as possible for reference

Thanks in advance!
 
Old 03-09-2011, 07:23 AM   #2
siranjeevi
Member
 
Registered: May 2010
Location: India
Posts: 73

Rep: Reputation: 7
Can you add the name servers 8.8.8.8 and 8.8.4.4 in resolve.conf along with ur ip. These are google's name servers
 
Old 03-09-2011, 07:26 AM   #3
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Remove
Quote:
search webanyti.me
Kind regards
 
Old 03-09-2011, 08:02 AM   #4
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

Quote:
Remove
Quote:
search webanyti.me
Kind regards
Removed so file now reads:

Code:
nameserver 204.12.197.150
Tried a ping and got :

Code:
[root@webanyti /]# ping www.google.com
ping: unknown host www.google.com
Tried a dig and got:

Code:
; <<>> DiG 9.3.4-P1 <<>> www.google.com
;; global options:  printcmd
;; connection timed out; no servers could be reached
Really confused....
 
Old 03-09-2011, 08:08 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Seems to me the dns server is down
Code:
root@cannabis opt]# nslookup
> server 204.12.197.150               
Default server: 204.12.197.150
Address: 204.12.197.150#53
> google.com
;; connection timed out; no servers could be reached
root@cannabis opt]# nslookup
> server 8.8.8.8
Default server: 8.8.8.8
Address: 8.8.8.8#53
> google.com
Server:		8.8.8.8
Address:	8.8.8.8#53

Non-authoritative answer:
Name:	google.com
Address: 74.125.230.82
Name:	google.com
Address: 74.125.230.81
Name:	google.com
Address: 74.125.230.84
Name:	google.com
Address: 74.125.230.83
Name:	google.com
Address: 74.125.230.80
>
try to use 8.8.8.8

Kind regards

Last edited by repo; 03-09-2011 at 08:10 AM.
 
Old 03-09-2011, 08:24 AM   #6
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

Right so ping still sat at unknown host (multiple domains incl. google) for below settings

/etc/resolv.conf

Code:
nameserver 204.12.197.150
nameserver 8.8.8.8
or

Code:
nameserver 204.12.197.150
nameserver 8.8.8.8
nameserver 8.8.8.4
or

Code:
nameserver 8.8.8.8
 
Old 03-09-2011, 08:26 AM   #7
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Any firewall?

Kind regards
 
Old 03-09-2011, 08:33 AM   #8
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I am pretty sure CentOS has an inbuilt firewall but have not installed any myself (is a fresh install) and, to be honest, I don't really know how to check
Am looking up some documentation now

Thanks for the replies by the way
 
Old 03-09-2011, 08:34 AM   #9
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,065
Blog Entries: 1

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
Code:
root@whatever]# nslookup
> server 204.12.197.150               
Default server: 204.12.197.150
> google.com

> server 4.2.2.2               
Default server: 4.2.2.2
> google.com

ping 4.2.2.2

ping 204.12.197.150

telnet 4.2.2.2 53

su -
iptables -L
Try these bold commands and share the output.

Last edited by szboardstretcher; 03-09-2011 at 08:36 AM.
 
Old 03-09-2011, 08:44 AM   #10
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
Code:
[root@webanyti /]# nslookup
> server 204.12.197.150
Default server: 204.12.197.150
Address: 204.12.197.150#53
> google.com
;; connection timed out; no servers could be reached
> server 4.2.2.2
Default server: 4.2.2.2
Address: 4.2.2.2#53
> [root@webanyti /]# ping 4.2.2.2
connect: Network is unreachable
[root@webanyti /]# ping 204.12.197.150
connect: Network is unreachable
[root@webanyti /]# telnet 4.2.2.2 53
Trying 4.2.2.2...
telnet: connect to address 4.2.2.2: Network is unreachable
[root@webanyti /]# su -
[root@webanyti ~]# iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
 
Old 03-09-2011, 08:50 AM   #11
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,497

Rep: Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883Reputation: 883
Do you have a connection?

Kind regards
 
Old 03-09-2011, 08:50 AM   #12
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,065
Blog Entries: 1

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
Right.

how about scrubbed output from:

Code:
ifconfig

route
 
Old 03-09-2011, 08:53 AM   #13
Cub3
LQ Newbie
 
Registered: Mar 2011
Posts: 6

Original Poster
Rep: Reputation: 0
I am connecting to it with SSH and I can ping the ip with return

Code:
[root@webanyti ~]# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:274 errors:0 dropped:0 overruns:0 frame:0
          TX packets:274 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:23016 (22.4 KiB)  TX bytes:23016 (22.4 KiB)

[root@webanyti ~]# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
 
Old 03-09-2011, 08:56 AM   #14
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux, LFS, Slitaz
Posts: 3,065
Blog Entries: 1

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
To me, it looks like you do not have a network connection. There is no IP, no route, and no connectivity between it and anything else.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Securing a Linux Centos VPS MisterTickle Linux - Security 1 02-07-2011 11:42 AM
CentOS 5.3 VPS and RealVNC TheN00B Linux - Server 1 03-11-2010 11:36 AM
CentOS - Desktop & VNC on a VPS CoronVB Linux - Newbie 6 11-21-2009 12:39 PM
Why cron uses old version java in my VPS (centos 5)?? enes1177 Linux - Server 2 07-03-2008 05:49 AM
Xvnc will not start (CentOS vps) WojtekO Linux - Software 1 11-09-2006 05:51 PM


All times are GMT -5. The time now is 03:34 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration