Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: hawk2xl on July 16, 2006, 03:44:09 PM

Title: dnscache templates
Post by: hawk2xl on July 16, 2006, 03:44:09 PM
Hello,

need some pointers on how to create a template for adding entries to
/service/dnscache/root/servers.

have been toying around with
/etc/e-smith/templates-custom/var/service/dnscache/root/servers
without much sucess even after browsing through available docs.
Title: Re: dnscache templates
Post by: CharlieBrady on July 16, 2006, 04:10:04 PM
Quote from: "hawk2xl"

need some pointers on how to create a template for adding entries to
/service/dnscache/root/servers.


Why? The root servers are a standardised set. The Internet is a global network, and all users should use the same name -> IP address mappings.
Title: dnscache templates
Post by: hawk2xl on July 16, 2006, 06:14:26 PM
it's because i need to use a feature of the dnscache prog where i'll
forward queries for domains which are only visible "inside" their
private network.
Title: dnscache templates
Post by: CharlieBrady on July 16, 2006, 07:22:28 PM
Quote from: "hawk2xl"
it's because i need to use a feature of the dnscache prog where i'll
forward queries for domains which are only visible "inside" their
private network.


The root servers list isn't used for such delegation.

The domains panel already allows domains to be forwarded to the corporate name server. I think that is what you want.
Title: dnscache templates
Post by: hawk2xl on July 16, 2006, 08:48:15 PM
sorry charlie, maybe i did not explain clearly.
the domain panel will forward ALL queries, I only need specific ones.

in /service/dnscache/root/servers I would have 3 files

@
c.b.a.in-addr.arpa
domainname.com

@ contains 127.0.0.2
c.b.a would be my private ip's first three octet in reverse containing 127.0.0.1
domain name would be my domain name containing 127.0.0.1

i need to add 2 more files to this directory
/service/dnscache/root/servers
in order to forward specific dns queries to anotherdomainname.com

g.f.e.in-addr.arpa
anotherdomainname.com

the problem is how to do this in templates 'coz if i dont and i issue a "svc -t /service/dnscache" manually added entries will dissappear.
Title: dnscache templates
Post by: hawk2xl on July 20, 2006, 12:00:50 AM
finally resolved with an ugly hack.
Title: dnscache templates
Post by: singularo on May 02, 2007, 04:46:14 AM
Quote from: "hawk2xl"
finally resolved with an ugly hack.


We were using this exact feature in 6.x as well, but it no longer works. Can I ask how you got around it, or what the correct way to achive the same result is?

TIA