|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
What does 'ls -ld /var/service/*' say?
__________________
FreeBSD Admin Tips Tricks and Scripts |
|
#3
|
|||
|
|||
|
Quote:
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... |
|
#4
|
|||
|
|||
|
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:
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 |
|
#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.... |
|
#6
|
|||
|
|||
|
Everything works and dnscache is doing it's thing on 192.168.0.53. Next step: tinydns on 192.168.0.1
. |
|
#7
|
||||
|
||||
|
Good to hear :P
|
|
#8
|
||||
|
||||
|
* 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 |
![]() |
| Viewing: Dev Shed Forums > System Administration > DNS > Problem running dnscache |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|