LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 10-28-2008, 09:32 AM   #1
jaynphx
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Rep: Reputation: 0
host is not resolving


try to run yum also autoinstall plesk and the same error host is not resolving

here is some of the info i have maybe someone can see what i'm doing wrong

[root@pr1inc ~]# cat /etc/redhat-release
CentOS release 5.2 (Final)

[root@pr1inc ~]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
200.105.87.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 200.105.87.1 0.0.0.0 UG 0 0

[root@pr1inc ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 pr1inc.com pr1inc localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
200.105.87.26 (my url)pr1inc.net
200.105.87.27 (my url)pr1inc.net

[root@pr1inc ~]# grep dns /etc/nsswitch.conf
# dns Use DNS (Domain Name Service)
#hosts: db files nisplus nis dns
hosts: files dns

[root@pr1inc ~]# cat /etc/host.conf
order hosts,bind


[root@pr1inc ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:76:00:4E
inet addr:200.105.87.26 Bcast:200.105.87.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe76:4e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:98413 errors:0 dropped:0 overruns:0 frame:0
TX packets:3691 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:7394766 (7.0 MiB) TX bytes:332314 (324.5 KiB)
Base address:0xb800 Memory:f2800000-f2820000

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:16198 errors:0 dropped:0 overruns:0 frame:0
TX packets:16198 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:20557095 (19.6 MiB) TX bytes:20557095 (19.6 MiB)
 
Old 10-28-2008, 09:45 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
lots of info, but you missed the useful stuff ;-) is your dns working? can you ping other sites? what does /etc/resolv.conf say? does the site you're trying to get to actually exist - it's possible it could have died.
 
Old 10-28-2008, 10:35 AM   #3
jaynphx
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
search pr1inc.net
nameserver 200.105.87.26
nameserver 200.105.87.27


can not ping sites

[root@pr1inc ~]# dig yahoo.com

; <<>> DiG 9.3.4-P1 <<>> yahoo.com
;; global options: printcmd
;; connection timed out; no servers could be reached


plesk autoinstaller is working
 
Old 10-28-2008, 10:44 AM   #4
DotHQ
Member
 
Registered: Mar 2006
Location: Ohio, USA
Distribution: Red Hat, Fedora, Knoppix,
Posts: 542

Rep: Reputation: 33
Your networking is not working.

Try an ifconfig
and post the output.
 
Old 10-28-2008, 11:04 AM   #5
jaynphx
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
ifconfig

eth0 Link encap:Ethernet HWaddr 00:30:48:76:00:4E
inet addr:200.105.87.26 Bcast:200.105.87.255 Mask:255.255.255.0
inet6 addr: fe80::230:48ff:fe76:4e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:116365 errors:0 dropped:0 overruns:0 frame:0
TX packets:1889 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:8617126 (8.2 MiB) TX bytes:153574 (149.9 KiB)
Base address:0xb800 Memory:f2800000-f2820000

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:3244 errors:0 dropped:0 overruns:0 frame:0
TX packets:3244 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3650977 (3.4 MiB) TX bytes:3650977 (3.4 MiB)
 
Old 10-28-2008, 11:38 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
DotHQ, that's really not useful is it? He's already given an ifconfig in the first post, so don't see why you're asking again. and we can see that his network isn't working.

anyway... you have an issue that's well outside of yum. at the minimum you have no ip connectivity to your dns servers, which probably means the internet as a whole, as they are presumably internet based IP's. where did you get that data from? should you be using an internal dns server instead?
 
Old 10-28-2008, 12:20 PM   #7
jaynphx
LQ Newbie
 
Registered: Oct 2008
Posts: 6

Original Poster
Rep: Reputation: 0
where did you get that data from? from my colocation. yes the are internet base IP's

i can ssh into the server. i cant update. i cant autoinstall plesk or dig.

should you be using an internal dns server instead? i'm a newbee and have no ideal.
 
Old 10-28-2008, 04:49 PM   #8
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,318

Rep: Reputation: 124Reputation: 124
Quote:
nameserver 200.105.87.26
nameserver 200.105.87.27
Quote:
eth0 Link encap:Ethernet HWaddr 00:30:48:76:00:4E
inet addr:200.105.87.26
If this is correct it means your computer is being used as dns-server. I believe you don't know what that means: In short, people use names computers use numbers. Every url you enter (like "/www.linuxquestions.org/") must be "translated" to an ip-adress. It's a bit like telephoning - to call Charles you need his number. Dns-servers are like big telephone books for internet.

Your internet-provider should have valid dns-servers for you, should be assigned automatically. It seems the computer is directly connected to internet, no home-router in between?
On cheap home-routers dns-forwarding often fails.
(I tried using 200.105.87.26 as dns-server, nothing resolved. It is not a dns server.)
Try this:
Ping www.yahoo.se - doesn't work, right?
In /etc/resolv.conf add as first line:
nameserver 195.178.165.68
Now ping again. Does it work?
* If yes, you should be fine with that as your dns-server. However it's best to check with your isp what servers you are supposed to use.
* If not, reply back, with an exakt description of your network, how you connect to internet.
 
Old 10-28-2008, 11:31 PM   #9
r0x0rj00b0x0r
LQ Newbie
 
Registered: Sep 2008
Distribution: Gentoo, Slackware at Home & RHEL and AIX at work.
Posts: 17

Rep: Reputation: 0
Can you ping your gateway? Can you ping localhost?

If you can ping the gateway that would mean your nameservers wont/cant resolve names, your router isnt forwarding packets or your firewall wont allow outbound traffic on port 53.

GL :-)

Last edited by r0x0rj00b0x0r; 10-28-2008 at 11:34 PM.
 
Old 10-29-2008, 07:01 AM   #10
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,415

Rep: Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968Reputation: 1968
heh, nice catch pingu. mwaapp mwappp
 
Old 10-29-2008, 11:56 AM   #11
r0x0rj00b0x0r
LQ Newbie
 
Registered: Sep 2008
Distribution: Gentoo, Slackware at Home & RHEL and AIX at work.
Posts: 17

Rep: Reputation: 0
Quote:
Originally Posted by acid_kewpie View Post
heh, nice catch pingu. mwaapp mwappp
I don't understand this.
 
  


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
Host resolving to local ip Ar0n Linux - Networking 5 11-17-2006 04:58 AM
Resolving <www.some remote host>.... failed: Host not found. koodoo Linux - Newbie 2 06-27-2005 09:48 AM
more resolving host problems rmindell Mandriva 0 03-13-2005 02:24 PM
resolving host problem scorpion777 Mandriva 0 05-17-2004 01:23 AM
resolving host... soko Linux - Newbie 10 07-07-2002 11:50 AM


All times are GMT -5. The time now is 06:04 PM.

Main Menu
Advertisement
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