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 March 22nd, 2004, 01:33 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Problem running dnscache

According to the instructions at http://ezine.daemonnews.org/200210/ezdjbdns.html and http://forums.devshed.com/showpost....629&postcount=6 I did the following:

Code:
charles@web[0]~$ sudo mkdir /var/djb
charles@web[0]~$ sudo dnscache-conf dnscache dnslog /var/djb/dnscache 192.168.0.53
charles@web[0]~$ sudo touch /var/djb/dnscache/root/ip/192.168.0
charles@web[0]~$ sudo ln -s /var/djb/dnscache /var/service
charles@web[0]~$ sudo svc -t /var/service/dnscache
svc: warning: unable to control /var/service/dnscache: file does not exist


Why do I get that error message?
__________________
Regards, Charles.

Reply With Quote
  #2  
Old March 22nd, 2004, 01:49 PM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
What does 'ls -ld /var/service/*' say?

Reply With Quote
  #3  
Old March 22nd, 2004, 01:57 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Quote:
Originally Posted by munkfish
What does 'ls -ld /var/service/*' say?


Code:
charles@web[0]/var/djb/dnscache/root/ip$ ls -ld /var/service/*
0 lrwxr-xr-x  1 root  wheel  17 Mar 22 20:29 /var/service/dnscache@ -> /var/djb/dnscache


According to freebsd's instructions on http://forums.devshed.com/showpost....62&postcount=11 I also tried this:

Code:
charles@web[0]/var/djb/dnscache/root/ip$ sudo svc -d /var/service/dnscache/log
svc: warning: unable to control /var/service/dnscache/log: file does not exist


Driving me nuts...

Reply With Quote
  #4  
Old March 22nd, 2004, 02:09 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
For completeness' sake

Code:
charles@web[0]/var/djb$ ll -R
total 6
2 drwxr-xr-x   3 root  wheel  512 Mar 22 20:28 ./
2 drwxr-xr-x  24 root  wheel  512 Mar 22 20:27 ../
2 drwxr-sr-t   5 root  wheel  512 Mar 22 20:28 dnscache/

./dnscache:
total 14
2 drwxr-sr-t  5 root  wheel  512 Mar 22 20:28 ./
2 drwxr-xr-x  3 root  wheel  512 Mar 22 20:28 ../
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:28 env/
2 drwxr-sr-x  3 root  wheel  512 Mar 22 20:28 log/
2 drwxr-sr-x  4 root  wheel  512 Mar 22 20:28 root/
2 -rwxr-xr-x  1 root  wheel  141 Mar 22 20:28 run*
2 -rw-------  1 root  wheel  128 Mar 22 20:28 seed

./dnscache/env:
total 14
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:28 ./
2 drwxr-sr-t  5 root  wheel  512 Mar 22 20:28 ../
2 -rw-r--r--  1 root  wheel    8 Mar 22 20:28 CACHESIZE
2 -rw-r--r--  1 root  wheel    8 Mar 22 20:28 DATALIMIT
2 -rw-r--r--  1 root  wheel   13 Mar 22 20:28 IP
2 -rw-r--r--  1 root  wheel    8 Mar 22 20:28 IPSEND
2 -rw-r--r--  1 root  wheel   23 Mar 22 20:28 ROOT

./dnscache/log:
total 8
2 drwxr-sr-x  3 root    wheel    512 Mar 22 20:28 ./
2 drwxr-sr-t  5 root    wheel    512 Mar 22 20:28 ../
2 drwxr-sr-x  2 dnslog  nofiles  512 Mar 22 20:28 main/
2 -rwxr-xr-x  1 root    wheel     50 Mar 22 20:28 run*
0 -rw-r--r--  1 dnslog  nofiles    0 Mar 22 20:28 status

./dnscache/log/main:
total 4
2 drwxr-sr-x  2 dnslog  nofiles  512 Mar 22 20:28 ./
2 drwxr-sr-x  3 root    wheel    512 Mar 22 20:28 ../

./dnscache/root:
total 8
2 drwxr-sr-x  4 root  wheel  512 Mar 22 20:28 ./
2 drwxr-sr-t  5 root  wheel  512 Mar 22 20:28 ../
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:50 ip/
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:28 servers/

./dnscache/root/ip:
total 4
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:50 ./
2 drwxr-sr-x  4 root  wheel  512 Mar 22 20:28 ../
0 -rw-------  1 root  wheel    0 Mar 22 20:28 127.0.0.1

./dnscache/root/servers:
total 6
2 drwxr-sr-x  2 root  wheel  512 Mar 22 20:28 ./
2 drwxr-sr-x  4 root  wheel  512 Mar 22 20:28 ../
2 -rw-r--r--  1 root  wheel  169 Mar 22 20:28 @


And the content of @ is as per freebsd's suggestion (didn't have to change it).

He also said that dnscache/root/ip should contain exactly the one file, while the instructions on http://cr.yp.to/djbdns/run-cache-x.html say:

Quote:
6. As root, create entries in /etc/dnscache/root/ip showing which client IP addresses are authorized to use this cache. For example,

touch /etc/dnscache/root/ip/10

authorizes all clients with IP address 10.* to use this cache. You can add or remove addresses later.


You know why he advised otherwise? Maybe the other person didn't need the cache to be able to be accessed by his private network?

Last edited by nednieuws : March 22nd, 2004 at 02:31 PM. Reason: Output of ls -R was flaky

Reply With Quote
  #5  
Old March 22nd, 2004, 04:31 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
It's working!

svscan wasn't running. Found this at http://ezine.daemonnews.org/200210/...s.html#appendix

Had a hard time figuring out how to start /usr/local/etc/rc.d/svscan.sh, but figured it out. I tried running ./svscan.sh from it's directory, but that didn't work. I had to start it with it's full path like so: /usr/local/etc/rc.d/svcscan.sh. This way, the regex in the file can determine the PREFIX.

Now, let's see if dnscache works as expected....

Reply With Quote
  #6  
Old March 22nd, 2004, 08:35 PM
nednieuws nednieuws is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2003
Posts: 70 nednieuws User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 58 sec
Reputation Power: 5
Everything works and dnscache is doing it's thing on 192.168.0.53. Next step: tinydns on 192.168.0.1 .

Reply With Quote
  #7  
Old March 23rd, 2004, 05:42 AM
munkfish's Avatar
munkfish munkfish is offline
funky munky
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2001
Location: UK
Posts: 1,446 munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level)munkfish User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 Days 18 h 33 m
Reputation Power: 10
Good to hear :P

Reply With Quote
  #8  
Old March 23rd, 2004, 09:33 AM
SilentRage's Avatar
SilentRage SilentRage is offline
DNS/BIND Guru
Dev Shed Specialist (4000 - 4499 posts)
 
Join Date: Jun 2003
Location: OH, USA
Posts: 4,193 SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level)SilentRage User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 1 Week 5 Days 14 h 27 m 56 sec
Reputation Power: 77
* SilentRage vaguely approves the use of dnscache but grinds his teeth over tinydns

__________________
Send me a private message if you would like me to setup your DNS for you for a price of your choosing. This is the preferred method if your DNS needs to be fixed/setup fast and you don't have the time to bounce messages back and forth on a forum. Also, check out these links:

Whois Direct | DNS Crawler | NS Trace | Compare Free DNS Hosts

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationDNS > Problem running dnscache


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 5 hosted by Hostway