[Server-devel] adding custom dns entries on XS

2009-03-17 Thread Daniel Drake
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

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Jerry Vonau
On Tue, 2009-03-17 at 09:40 -0400, Daniel Drake wrote: 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

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Martin Langhoff
On Wed, Mar 18, 2009 at 9:04 AM, Daniel Drake d...@laptop.org wrote: dnsmasq can certainly help. With dnsmasq you just have to add an entry in /etc/hosts on the server, and then dnsmasq automatically picks it up. Well, then we'd have to have a conf.d for /etc/hosts... this part of the problem

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Daniel Drake
2009/3/17 Martin Langhoff martin.langh...@gmail.com: On Wed, Mar 18, 2009 at 9:04 AM, Daniel Drake d...@laptop.org wrote: dnsmasq can certainly help. With dnsmasq you just have to add an entry in /etc/hosts on the server, and then dnsmasq automatically picks it up. Well, then we'd have to

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Martin Langhoff
On Wed, Mar 18, 2009 at 10:09 AM, Daniel Drake d...@laptop.org wrote: Martin 2 - dnsmasq 1 dsd 10 - dnsmasq 10 - martin 2 the sample conffile also shows: # Include a another lot of configuration options. #conf-file=/etc/dnsmasq.more.conf #conf-dir=/etc/dnsmasq.d This is all good news. We are

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Michael Stone
On Tue, Mar 17, 2009 at 04:04:06PM -0400, Daniel Drake wrote: 2009/3/17 Martin Langhoff martin.langh...@gmail.com: It's in my plans to have a means to do what you're doing. I was wondering about  - a conf.d approach  - a pre-processor for the .in files that handles ifdef-style blocks  -

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Daniel Drake
2009/3/17 Daniel Drake d...@laptop.org: But the iptables idea is a good one, thanks! ...but unfortunately the redirect is done by IP, which results in all services/sites that might be running on the same system as activation.laptop.org being unaccessible, and also breaks as soon as the upstream

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Martin Langhoff
On Wed, Mar 18, 2009 at 4:21 AM, Daniel Drake d...@laptop.org wrote: The changes to .in will be overwritten when xs-configs gets updated. But the iptables idea is a good one, thanks! It's in my plans to have a means to do what you're doing. I was wondering about - a conf.d approach - a

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Daniel Drake
2009/3/17 Martin Langhoff martin.langh...@gmail.com: It's in my plans to have a means to do what you're doing. I was wondering about  - a conf.d approach  - a pre-processor for the .in files that handles ifdef-style blocks  - whether dnsmasq or djbdns can help us here I sure hope BIND

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Jerry Vonau
On Tue, 2009-03-17 at 12:00 -0400, Daniel Drake wrote: 2009/3/17 Daniel Drake d...@laptop.org: But the iptables idea is a good one, thanks! ...but unfortunately the redirect is done by IP, which results in all services/sites that might be running on the same system as activation.laptop.org

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Jerry Vonau
On Tue, 2009-03-17 at 16:04 -0400, Daniel Drake wrote: 2009/3/17 Martin Langhoff martin.langh...@gmail.com: It's in my plans to have a means to do what you're doing. I was wondering about - a conf.d approach - a pre-processor for the .in files that handles ifdef-style blocks -

Re: [Server-devel] adding custom dns entries on XS

2009-03-17 Thread Daniel Drake
2009/3/17 Jerry Vonau jvo...@shaw.ca: The dns hijack would suffer from an ip change also, would it not? No. If the real antitheft.laptop.org changes IP, our hijack still works. Daniel ___ Server-devel mailing list Server-devel@lists.laptop.org