LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2007, 07:48 AM   #1
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Rep: Reputation: 15
unable to ping my dns server!


hiii

i am using Advance server,, and was trying to conigure dns on it,,,
1.I made my ip static
2.configured DHCP
3.and then went to make dns,,
named.conf
reverse
forward

my domain name is server.redhat.com in etc/sysconfig/network

4.found no errors in forward and reverse file
5.i can dig server.redhat.com but cant ping it
6.when i do

host server.redhat.com

it doesnt show me any ip address

same in when i do the opposite

host 192.168.1.254(should show me the server name)
but not showing ,, saying server cant be reached,,,

i need to make this working ,,, appreciate ur help

thanks cheers
simran
 
Old 03-23-2007, 08:48 AM   #2
nadroj
Senior Member
 
Registered: Jan 2005
Location: Canada
Distribution: ubuntu
Posts: 2,539

Rep: Reputation: 60
can you ping the ip address?
 
Old 03-23-2007, 09:26 AM   #3
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Original Poster
Rep: Reputation: 15
yes i can ping the ip address of my server's machine
 
Old 03-23-2007, 10:29 AM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by justsimran
yes i can ping the ip address of my server's machine
Are you actually using the DNS servers IP addresses in your /etc/resolv.conf?
 
Old 03-23-2007, 10:54 AM   #5
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by trickykid
Are you actually using the DNS servers IP addresses in your /etc/resolv.conf?
Do i need to ? Doesnt it automatically resolves the dns name server in /etc/resolv.conf.. i guess thts the beauty of dns tht we dnt need to touch /etc/resolv.conf...
 
Old 03-23-2007, 11:05 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57

Yes you need to!

1)Your machine wants to resolve a name
2)It will ask your DNS server
3)If the DNS server is defined with its name, goto 2

"endless loop"
 
Old 03-23-2007, 11:10 AM   #7
justsimran
Member
 
Registered: Mar 2007
Location: Aus
Distribution: RHEL-4,5,UBUNTU,SUSE,FEDORA-6,7
Posts: 109

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000

Yes you need to!

1)Your machine wants to resolve a name
2)It will ask your DNS server
3)If the DNS server is defined with its name, goto 2

"endless loop"
which means my entries will be somewhat like tht on my server,,

nameserver 202.56.16.5 <---- DNS IP
search server.redhat.com

is tht right?
 
Old 03-23-2007, 11:50 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by justsimran
which means my entries will be somewhat like tht on my server,,

nameserver 202.56.16.5 <---- DNS IP
search server.redhat.com

is tht right?
Yes

About the search line:
your dns is only private I guess? (202.56.16.5 doesnt look like private space, prefer 192.168.x.x)
or are you the admin of redhat.com? Hello then ! =)
check
man resolv.conf
to be sure of the following (it's a long time since I didn't play the DNS admin)

Imagine you are on machine1.domain.com
If you do
ping machine2
it will first try to do a ping machine2.<domain.com>
if the dns resolution doesn't work, it will try
machine2.server.redhat.com and then
machine2.redhat.com

If you are authoritive (hum not sure this is english) of redhat.com it will answer.
Otherwise, it will go to redhat.com dns server! <-- not exactly true but that's the idea..

Last edited by nx5000; 03-23-2007 at 12:04 PM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ping without DNS server in linux masudur_iiu General 5 11-17-2006 02:13 AM
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
Why I cannot ping to DNS server hvan Linux - Networking 5 11-21-2003 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:53 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