Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
djbdns - tinydns and dnscache not working well together....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
lord
n00b
n00b


Joined: 16 Oct 2002
Posts: 73
Location: Linköping, Sweden

PostPosted: Mon Mar 24, 2003 4:47 pm    Post subject: djbdns - tinydns and dnscache not working well together.... Reply with quote

I've got a few domains, and therefore want to run my own dns server. I chose djbdns and have installed it.

I setup tinydns to my external ip, and dnscache to 127.0.0.1.

Now my problem is that if resolv.conf says "nameserver 127.0.0.1" i can everything except my own domains, and if its set to my external ip I can only resolv my own domains and no nothing else.

I've also tried a resolv.conf like this:
Code:
nameserver <external ip>
nameserver 127.0.0.1


It works and now I can resolv everything, but it doesnt feel right and its also _really_ slow since it has to fail first and then try the second server.

What am I doing wrong? :)
Back to top
View user's profile Send private message
miez
n00b
n00b


Joined: 30 Jun 2002
Posts: 14
Location: Hamburg, Germany

PostPosted: Mon Mar 24, 2003 7:26 pm    Post subject: djbdns - tinydns and dnscache not working well together.... Reply with quote

Hi lord,
the solution is documented badly in a patch for djbdns-1.05-r7. Unfortunately the corresponding readme isn't installed by the ebuild file.
If you have tinydns setup authoritative for first.dom using 10.0.1.0 and second.dom using 10.0.2.0 on <your external ip>, and your external ip is e.g. 10.0.1.3,

Code:

echo "10.0.1.3" > /service/dnscache/root/servers/first.dom
echo "10.0.1.3" > /service/dnscache/root/servers/1.0.10.in-addr.arpa
echo "10.0.1.3" > /service/dnscache/root/servers/second.dom
echo "10.0.1.3" > /service/dnscache/root/servers/2.0.10.in-addr.arpa
svc -t /service/dnscache


then you only need the 127.0.0.1 entry in /etc/resolv.conf.

regards, miez
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum