LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 11-20-2003, 04:50 AM   #1
hvan
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Posts: 4

Rep: Reputation: 0
Why I cannot ping to DNS server


I installed and used Redhat9, Debian, W2K on my laptop. Each of them on one partition.
All I used DHCP. Debian and W2K can access to Internet and work very well but I have a problem with Redhat9 as the following:
Redhat in my laptop detected exactly IP address of gateway and DNS server.
I use DHCP, system assigned IP address 192.16.126.242 to my Laptop.
IP address of gateway 192.16.126.19,
IP address of DNS server 192.16.124.50.

I can ping to gateway computer and all computers that have IP address 192.16.126.*, but I can not ping to DNS server.
I checked /etc/resolv.conf file and it pointed to correct DNS server.
DNS server is no problem because when I switch to W2K or Debian then they run very well.

Can you help me to solve this problem ?
 
Old 11-20-2003, 10:11 AM   #2
jcookeman
Member
 
Registered: Jul 2003
Location: London, UK
Distribution: FreeBSD, OpenSuse, Ubuntu, RHEL
Posts: 417

Rep: Reputation: 33
Have you checked redhat-config-firewall to make sure that you are allowing the traffic through. DNS uses UDP by default and for query packets that are less than 512 bytes.

Try to flush your firewall and see if the problem goes away:
iptables -F
 
Old 11-21-2003, 06:18 AM   #3
hvan
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Posts: 4

Original Poster
Rep: Reputation: 0
I do not install firewall in my Redhat9 Laptop so I cannot check
Redhat-config-firewall as you suggest because it doest exist.
I do not know where is the packet contain Redhat-config-firewall
I only install Redhat and use it as environment to run network simulation (NS-2) and WWW. Now, I can not reach to DNS server so I can not use web when I am working in Redhat environment. It is not convenient!!

Can you suggest me how to do to solve this problem.
 
Old 11-21-2003, 09:23 AM   #4
DirtDart
Member
 
Registered: Nov 2003
Distribution: Mandrake 10.1/Solaris 10 (sparc)
Posts: 96

Rep: Reputation: 16
1) What is the subnet mask of the linux box?

2) What is your gateway (another computer/broadband router/etc)?

3) What error do you get (timeout/ect) when you try to ping the DNS server?
 
Old 11-21-2003, 11:02 AM   #5
hvan
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Posts: 4

Original Poster
Rep: Reputation: 0
Dear DirtDart

Subnet mask is 255.255.255.0
Gateway is 192.16.126.19
I can ping to gateway 192.16.126.19 and all computer in subnet. However I can not ping to DNS server 192.16.124.50. When I ping to DNS server, it no answer for long time.

I am Looking forward the answer from you
 
Old 11-21-2003, 04:22 PM   #6
hvan
LQ Newbie
 
Registered: Nov 2003
Location: Sweden
Posts: 4

Original Poster
Rep: Reputation: 0
Now, my Redhat9 can run very well without any problem.
I remove IP address that Redhat assign automaticly in order to Redhat can provide other IP but it assign the same.
After that I bring my laptop to other room of student house. That room belong to other subnet. Of course Redhat must auto detect and assign other Ip address to my Laptop.
From at that time, Redhat can ping DNS server (DNS server is the same) and access to Internet.
I bring my labtop back at my room. This time Redhat assign other IP address that is different with the first time and Redhat can run OK at my room. Now, I can access to Intrenet without any problem.
I fell very happy now.
 
  


Reply



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
cannot ping linux server by dns gsrichmo Linux - Networking 1 08-25-2005 05:25 PM
Traceroute, Ping, Domain Name Server (DNS) Lookup, WHOIS, and DNS Records Lookup netoknet General 1 05-09-2005 03:43 AM
How to ping gateway and dns server banner Linux - Newbie 3 05-08-2005 05:49 AM
can't ping DNs server crtek Linux - Networking 3 01-14-2005 08:31 AM
DNS server choice: ping vs distance? gundelgauk Linux - Networking 3 09-09-2003 04:59 PM

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

All times are GMT -5. The time now is 05:06 AM.

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