Koozali.org: home of the SME Server

dnscache templates

Offline hawk2xl

  • *
  • 5
  • +0/-0
dnscache templates
« 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: dnscache templates
« Reply #1 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.

Offline hawk2xl

  • *
  • 5
  • +0/-0
dnscache templates
« Reply #2 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.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
dnscache templates
« Reply #3 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.

Offline hawk2xl

  • *
  • 5
  • +0/-0
dnscache templates
« Reply #4 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.

Offline hawk2xl

  • *
  • 5
  • +0/-0
dnscache templates
« Reply #5 on: July 20, 2006, 12:00:50 AM »
finally resolved with an ugly hack.

Offline singularo

  • 4
  • +0/-0
    • http://www.iseek.biz/
dnscache templates
« Reply #6 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