LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-08-2005, 08:10 AM   #1
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Rep: Reputation: 15
can't ping domain name, but can ping ip address


hi all

just having an issue with our development server on our private network
it used to be able to ping web addresses
but recently for some reason, it gets this error message when trying to ping or ssh a server using the domain name rather than the ip address

Code:
ssh root@example.com
ssh: example.com: Temporary failure in name resolution
i don't think we have changed anything
i think this is also affecting the php installation, which cannot use fgets, etc to send requests to our web server
causing us to get can't locate network address errors

does anyone know what our problem is here
and how to fix it?

thanks
dave
 
Old 06-08-2005, 08:20 AM   #2
akilles
Member
 
Registered: Sep 2004
Location: Vestfold, Norway
Distribution: Slackware
Posts: 139

Rep: Reputation: 15
while logged in on that server, what does nslookup <domainname> say??
if that can't get IP from name, there's a problem with your DNS server.
could be that bind doesn't run.. (if you run your own DNS server)

have a look in: /etc/resolv.conf
(look for the line:

nameserver

what does that say?

-Geir
 
Old 06-08-2005, 10:38 PM   #3
dtra
Member
 
Registered: Nov 2004
Distribution: fc4
Posts: 104

Original Poster
Rep: Reputation: 15
/etc/resolv.conf says
nameserver 192.168.1.1
nslookup, host, just say ;; connection timed out; no servers could be reached

don't know much about DNS, so don't know if bind is running or not

thanks for your reply
 
Old 04-03-2013, 02:32 AM   #4
tux21
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 1
add entry

nameserver 8.8.8.8
nameserver 8.8.4.4

to /etc/resolv.conf
 
1 members found this post helpful.
Old 04-03-2013, 06:02 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,184

Rep: Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648Reputation: 3648
dns is a way to convert names to ip addresses. Other ways exist and other issues may stop it. If dig and nslookup fail and a browser fail then we assume some issue with dns globally.

192.168.1.1 suggests to me that your router/gateway was at one time the dhcp server as well as dns for your lan. One can use it and use others usually. Your ISP should provide you with correct IP addresses. In some cases, you can use open ip addresses for dns such as the 8.8.8.8 example or from other sources.

In some cases you have to log into the router and change it to allow dns.

Last edited by jefro; 04-03-2013 at 06:04 PM.
 
  


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
Strange Ping Issue - Can't ping localhost but can ping others on LAN code_slinger Linux - Networking 15 03-30-2015 03:39 PM
Can ping by IP address but not by name moonmoth Linux - Newbie 11 07-23-2005 02:34 PM
can't ping my IP address ust Linux - Distributions 5 04-20-2005 05:55 AM
PPP establish can ping the gateway router but unable to ping the host deepalalla Linux - Networking 0 11-18-2004 10:10 AM
windows 98 m/c ping to ip address of red hat server but fails to ping hostname ravilohot Linux - Networking 2 09-07-2004 05:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:17 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
Open Source Consulting | Domain Registration