LinuxQuestions.org
Visit Jeremy's Blog.
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-16-2006, 03:37 PM   #1
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Rep: Reputation: 60
A better DNS Understanding


I have setup BIND 9 as a CACHE server on a SUSE 10 box. I think that I have it setup right. My question is as such:

If my DNS box is setup right, then all I have to do is just edit the resolv.conf on the linux clients and add the DNS server ip address and on the windows boxes just add it to my TCPIP setting and BAM It should be able to ping all the host in my network or is there additional stuff that I need to add to my linux/windows boxes? I have read a little on the /etc/hosts file. Is that an additional file that I need to add hostname and ip address to it. If I have to di that then what good is my BIND server then.I guess I have to populate the zone files with the correct name to ip address statements. Please Clarify!

Last edited by metallica1973; 12-16-2006 at 03:40 PM.
 
Old 12-16-2006, 04:20 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/etc/hosts is a file for local declarations of hostname and ip address mappings. it's only used for situations where the names are local to the box itself (e.g. localhost) or DNS is not available / suitable. if you can successfully complete a dig against the DNS server (dig google.com @12.34.56.78) then it should work fine when entered as a record in /etc/resolv.conf
 
Old 12-16-2006, 11:45 PM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Caching-only nameservers are used so that you local machines can resolve names on the Internet without having to make potentially long queries across the Internet. The idea is the caching nameserver does that work for you and keeps the results so the next time a client asks for the answer, it can reply right away and save time.

What a caching-only nameserver does not do is give out answers about your local network names. You would need to perform a "normal" configuration of BIND with zone files and define each hosts' name and IP address in forward and reverse lookup zones.
 
Old 12-16-2006, 11:49 PM   #4
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
one more question:

I have created zone.Domain.Name with only one subnet (192.168.4.0) and my revp.192.168.4 reverse pointer file for only that subnet. If I have multiple subnets would I just add them to the zone.Domain.Name file and just create another revp.192.168.3.0 reverse pointer file for each subnet?
 
Old 12-17-2006, 12:02 AM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Quote:
Originally Posted by metallica1973
one more question:

I have created zone.Domain.Name with only one subnet (192.168.4.0) and my revp.192.168.4 reverse pointer file for only that subnet. If I have multiple subnets would I just add them to the zone.Domain.Name file and just create another revp.192.168.3.0 reverse pointer file for each subnet?
That's correct.
 
Old 12-17-2006, 12:17 AM   #6
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I restart NAMED (everything started up ok) and all of my client machines and when I try and ping from another workstation my DNS server by name or any other machine that I have specified in my zones it cannot translate anything by name. I have the ip address of the servers in the /etc/resolv.conf and in the windows TCPIP stack and still nothing. Any suggestions. In other words in doesnt work. Is there things that I should check?

Last edited by metallica1973; 12-17-2006 at 12:36 AM.
 
Old 12-17-2006, 12:39 AM   #7
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I restart NAMED (everything started up ok) and all of my client machines and when I try and ping from another workstation my DNS server by name or any other machine that I have specified in my zones it cannot translate anything by name. I have the ip address of the servers in the /etc/resolv.conf and in the windows TCPIP stack and still nothing. Any suggestions. In other words in doesnt work. Is there things that I should check?
 
Old 12-17-2006, 12:46 AM   #8
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Try using dig to get more information. Suppose one of your machines is "box.domain.org", then do:
Code:
$ dig @127.0.0.1 box.domain.org.
This is assuming that you're logged into your DNS server. If you do this from another machine, substitute the IP address of your DNS server for 127.0.0.1. Also, post the contents of your named.conf file.
 
Old 12-17-2006, 01:04 AM   #9
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
here is my output:

PHP Code:
; <<>> DiG 9.3.2 <<>> @192.168.3.1 vicidious.calexica.com
; (1 server found)
;; global 
options:  printcmd
;; connection timed outno servers could be reached 
192.168.3.1 is my RADIUS server. I get that on all of my hosts.
 
Old 12-17-2006, 01:07 AM   #10
metallica1973
Senior Member
 
Registered: Feb 2003
Location: Washington D.C
Posts: 2,190

Original Poster
Rep: Reputation: 60
I get this when I ping from a client to the DNS server

PHP Code:
; <<>> DiG 9.3.2 <<>> @192.168.2.1 darcidious.calexica.com
; (1 server found)
;; global 
options:  printcmd
;; Got answer:
;; ->>
HEADER<<- opcodeQUERYstatusSERVFAILid3265
;; flagsqr rd raQUERY1ANSWER0AUTHORITY0ADDITIONAL0

;; QUESTION SECTION:
;
darcidious.calexica.com.    IN    A

;; Query time1 msec
;; SERVER192.168.2.1#53(192.168.2.1)
;; WHENSun Dec 17 02:05:59 2006
;; MSG SIZE  rcvd41 
Darcidious being my DNS server and when I just do a regular ping I get ping unknown host darcidious

Last edited by metallica1973; 12-17-2006 at 01:09 AM.
 
  


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
help understanding ln dr_zayus69 Linux - General 3 01-14-2005 08:33 PM
A better understanding! nny0000 Slackware 1 04-14-2004 12:01 PM
Understanding X?? ++ bdp Linux - General 2 02-25-2004 05:47 PM
Understanding X?? nny0000 Linux - General 2 02-25-2004 02:07 AM
Understanding df -k itsjustme Linux - General 6 10-28-2003 12:08 PM

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

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