DNS
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationDNS

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old May 21st, 2003, 10:13 AM
bnorton916 bnorton916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 52 bnorton916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m
Reputation Power: 6
Question dnscache tinydns

I would like to run by my set-up to see if there is any obvious mistakes or flaws in my understanding of dns and djbdns(or networking in general):

My setup(typical, i think):

Gateway: Multihomed freebsd box with static ip from isp 11.22.33.44 and running natd to internal network 192.168.1.1 I also would run tinydns on the machine to host my domain name

internal freebsd machine: 192.168.1.11 would run dnscache for the other internal machines to use.
/etc/resolv.conf would just point to itself?

another internal freebsd machine: 192.168.1.12: work machine, /etc/resolv.conf would point to 192.168.1.11

internal win2000: 192.168.1.101 wife's laptop, in
tcp/ip settings nameserver would point to 192.168.1.11


Apologies if this type of question has been answered many times(i did do a quick search). Thank you for your time.

Bill

Reply With Quote
  #2  
Old June 7th, 2003, 08:34 PM
alexgreg's Avatar
alexgreg alexgreg is offline
Full Access
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jun 2000
Location: London, UK
Posts: 2,019 alexgreg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 sec
Reputation Power: 11
Quote:
Gateway: Multihomed freebsd box with static ip from isp 11.22.33.44 and running natd to internal network 192.168.1.1 I also would run tinydns on the machine to host my domain name

You need two DNS servers to provide authorative data for a domain name. Your IP from the ISP can run one of the servers, but you need a secondary server somewhere else. Some places do free secondary DNS - check google for this.

Quote:
internal freebsd machine: 192.168.1.11 would run dnscache for the other internal machines to use.
/etc/resolv.conf would just point to itself?

/etc/resolv.conf would need to point to your ISP's name servers, else it isn't going to be able to resolve any names to cache.

Everything else looks fine.
__________________
Alex
(http://www.alex-greg.com)

Last edited by alexgreg : June 7th, 2003 at 08:37 PM.

Reply With Quote
  #3  
Old June 7th, 2003, 09:54 PM
bnorton916 bnorton916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 52 bnorton916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m
Reputation Power: 6
No problem got the secondary server hosted by a friend.

Why do I need to use my isp's dns servers?

Wouldn't my dns cache know about the root servers, query them and then cache the information as it comes?

Thanks for your time, btw you need to update your website :-)

Bill

Reply With Quote
  #4  
Old June 7th, 2003, 10:37 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is offline
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,430 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 4 Weeks 1 Day 21 h 41 m 55 sec
Reputation Power: 784
>> /etc/resolv.conf would need to point to your ISP's name servers, else it isn't going to be able to resolve any names to cache.

Heck no, you CAN point it to yourself. I run dnscache just fine on my openbsd box at 192.168.1.80 and that is the only entry on my /etc/resolv.conf. It works just fine.

bnorton916 -- My setup is similar to what you described, and it works just fine. The only thing to note is that you have to set up dnscache to respond to the other IPs (or do what I did and make it respond to all IPs in 192.168.1 range). If you don't do this, dnscache won't respond to lookup requests.

Last edited by Scorpions4ever : June 7th, 2003 at 10:40 PM.

Reply With Quote
  #5  
Old June 8th, 2003, 08:11 AM
bnorton916 bnorton916 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 52 bnorton916 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 55 m
Reputation Power: 6
OK, so I _can_ set-up dnscache to answer queries for all my computers.

I am just using hosts file for 192.168.1 queries.

Just making sure I understood my comment.

btw: To any one else reading this I found tinydns/dnscache much much easier to understand than BIND.

Reply With Quote
  #6  
Old July 1st, 2003, 11:50 PM
kfickert's Avatar
kfickert kfickert is offline
Capt'n
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2001
Posts: 539 kfickert User rank is Lance Corporal (50 - 100 Reputation Level)kfickert User rank is Lance Corporal (50 - 100 Reputation Level)kfickert User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 4 h 25 m 4 sec
Reputation Power: 8
Same here. I asked if there were any better solutions, and the DJBDNS package works well (it used tinyDNS/dnscache.

I ran into a similar problem since I only have 1 IP, so I have my register's service as secondary for the domain, which is register.com. Seems to work just fine now.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > dnscache tinydns


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway