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 12-26-2002, 02:31 PM   #1
jose_bravo
LQ Newbie
 
Registered: Dec 2002
Location: HP, CA, US
Distribution: Red Hat
Posts: 7

Rep: Reputation: 0
Question DNS Server having issues...


Hello all,
I have 2 machines running RH 7.0, one is the web server and the other the DNS server. I finally have the dns working and I am able to access the websites I have on the webserver through their url name. My problem that the host names and urls resolve on all the machines except the DNS server itself, in a way. I used host and nslookup on the server and it does resolve the names to ip address and vice versa, but when I try to ping the host name or tyr to access the sites on the other machine, the machine can not find the host. All the other machines can resolve names and can ping and access the web server except the DNS server. WHat's going on with my DNS server? Any suggestions are well appreciated.
 
Old 12-26-2002, 03:04 PM   #2
reader
Member
 
Registered: Apr 2001
Location: Gulf of Biscay
Posts: 32

Rep: Reputation: 15
How is your resolv.conf file?
man resolv.conf

Bye
reader
 
Old 12-26-2002, 06:38 PM   #3
jose_bravo
LQ Newbie
 
Registered: Dec 2002
Location: HP, CA, US
Distribution: Red Hat
Posts: 7

Original Poster
Rep: Reputation: 0
The domain to the network is bravonline.com so I modified the resolv.conf as the following (which was the way it should be done according to various sources):

search bravonline.com
nameserver 127.0.0.1

If there something wrong with this setup, or is there something else I need to add? Any help would be greatful

Last edited by jose_bravo; 12-26-2002 at 06:48 PM.
 
Old 12-26-2002, 07:14 PM   #4
Miky
Member
 
Registered: Dec 2002
Location: London / Paris
Distribution: Debian / OpenBsd
Posts: 74

Rep: Reputation: 15
1. Try to ping the webserver with its ip (are they well connected ?)
2. restart your dns server
3. Look at your syslogs if bind didn't create any error logs
4. try to ping the web server but use fqdn (ping webserver.mydomain.com) if it works add search mydomain.com in /etc/resolv.conf
5. check a file called something like /etc/host or /etc/hosts i don't remember, it specify if it has to use a local host file first or the dns server.

...to me your dns configuration has a problem. (in your zone file)

Bye
 
Old 12-26-2002, 08:06 PM   #5
jose_bravo
LQ Newbie
 
Registered: Dec 2002
Location: HP, CA, US
Distribution: Red Hat
Posts: 7

Original Poster
Rep: Reputation: 0
After doing some more searching for the answer to this elusive problem, I checked dig against a couple of other names that I guess I haven't tried before. Using the host program, everything works fine, either with hostname to ip or ip to hostname. When I use dig, dig will only work if I type in the full name of the machine I am checking (dino.bravonline.com), but will give me the SERVFAIL message if I type in just the hostname (dino). Like I said before, I can ping to every machine from any machine on the dns network except from the dns server. The DNS server can reolve the names and ip addresses, but can not ping to the FQDN or host name of any machine on the network? What is dig trying to tell me? Any help would be well-received.
 
Old 12-26-2002, 08:17 PM   #6
Miky
Member
 
Registered: Dec 2002
Location: London / Paris
Distribution: Debian / OpenBsd
Posts: 74

Rep: Reputation: 15
ok dig is the same as nslookup but a more modern tool.

as i said add search bravonline.com in /etc/resolv.conf and ping dino wil work because it will add .bravonline.com to dino

You didn't told me how did the log look like, is your dns start smoothly ???

So ok i repeat
Can you ping your webserver using its IP @ not its name ?

If you really can't make it work properly try to change 127.0.0.1 in the_ip_adress_of_the_dns_server in /etc/resolv.conf

See ya
 
Old 12-26-2002, 08:40 PM   #7
jose_bravo
LQ Newbie
 
Registered: Dec 2002
Location: HP, CA, US
Distribution: Red Hat
Posts: 7

Original Poster
Rep: Reputation: 0
Miky,
I can ping the webserver and all the other machines by ip address. The named daemon does start smoothly at startup. I have added search bravonline.com to the resolv.conf file and the localhost ipaddress of the server 127.0.0.1. Still no avail. Dig still gives a SERVFAIL when looking up just the host name. Is there any other thing that may cause this typr of problem? Thanks for everything.
 
Old 12-27-2002, 03:42 AM   #8
reader
Member
 
Registered: Apr 2001
Location: Gulf of Biscay
Posts: 32

Rep: Reputation: 15
Hy jose_bravo:
I think that all is ok. If we read dig manual:
Code:
+[no]search
              Use [do not use] the search list defined by the searchlist or domain directive  in  resolv.conf  (if  any).   The
              search list is not used by default.
we see that the search list is not being used. If you execute, par example:
Code:
  dig +search www
you will see a correct answer.

Bye
reader
 
  


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
help needed to setup a DNS server can anyone say how to configure a DNS server subha Linux - Networking 4 04-27-2012 11:50 PM
How the DNS-server is connected to work of a web-server and a mail-server? ukrainet Linux - Newbie 2 01-10-2005 09:18 PM
Do I leave primary and seconday DNS blank for a DNS Server? imsam Linux - Networking 3 10-25-2004 01:48 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

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

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