Hi,

We'd like to add a custom DNS entry on the XS to override
updates.laptop.org to point it at another address (where we'll serve
antitheft/lease data for paraguay).
I have got it working as follows:

I modified /etc/named-xs.conf and I added this section inside the
"internal" view:

zone "updates.laptop.org" {
  type master;
  file "ulo.db";
};

/var/named-xs/ulo.db contains

@ IN SOA 172.18.0.1. admin.paraguayeduca.org. (
                        200903171       ; serial, todays date + todays serial #
                        8H              ; refresh, seconds
                        2H              ; retry, seconds
                        4W              ; expire, seconds
                        1D )            ; minimum, seconds
  IN NS 172.18.0.1.
  IN A 1.2.3.4

where 1.2.3.4 is the IP that it will redirect too.

This is working, but it's ugly. Changes will be lost next time the XS
configs are updated/regenerated. Can anyone suggest a better way to do
this?

Thanks,
Daniel
_______________________________________________
Server-devel mailing list
server-de...@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel

Reply via email to