Re: one record to be redirected to a specific IP

2010-04-26 Thread Phil Mayers

On 26/04/10 12:44, Torsten wrote:

Am Mon, 26 Apr 2010 11:30:26 +0200
schrieb Sten Carlsen:


I wonder if the following could be done:

- make the zone for www.abcd.com, which would also redirect the
"anything else" part.
- delegate the "anything else" back to its original owner.

like:

www.abcd.com.   soa 
@ IN   A1.2.3.4
*   NS

I am not sure this could work? I am not sure how this redelegation
would be seen by the original servers of the zone?




Bind would refuse to load that zone since a wildcard can't have NS
records.


As I've mentioned, "unbound" can do this. If the OP want's to stick with 
bind, but can tolerate it, he could do something like:


zone "abcd.com" {
  type forward;
  forward only;
  forwarders { 127.0.0.1 port 5300; };
};

...and then run a copy of unbound locally with unbound.conf:

port: 5300
local-data: "www.abcd.com 600 IN A "

...plus other required config of course.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: one record to be redirected to a specific IP

2010-04-26 Thread Torsten
Am Mon, 26 Apr 2010 11:30:26 +0200
schrieb Sten Carlsen :

> I wonder if the following could be done:
> 
> - make the zone for www.abcd.com, which would also redirect the
> "anything else" part.
> - delegate the "anything else" back to its original owner.
> 
> like:
> 
> www.abcd.com.   soa 
> @ IN   A1.2.3.4
> *   NS
> 
> I am not sure this could work? I am not sure how this redelegation
> would be seen by the original servers of the zone?
> 


Bind would refuse to load that zone since a wildcard can't have NS
records.


Ciao
Torsten
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: one record to be redirected to a specific IP

2010-04-26 Thread Sten Carlsen
I wonder if the following could be done:

- make the zone for www.abcd.com, which would also redirect the
"anything else" part.
- delegate the "anything else" back to its original owner.

like:

www.abcd.com.   soa 
@ IN   A1.2.3.4
*   NS

I am not sure this could work? I am not sure how this redelegation would
be seen by the original servers of the zone?

On 26/04/10 10:05, hugo hugoo wrote:
> What I want to do is redirect a site to a specific IP using DNS (this
> kind of request comes from the Justice).
> This specific IP can be an internal website with a warning message for
> example.
>  
> So I need to could redirect www.abcd.com <http://www.abcd.com> for
> example to a specific IP 1.2.3.4 for example.
> This redirection must not have any impact on other ur'ls like
> toto.www.abcd.com or "anything else".www.abcd.com
>  
>  
> I  am also wondering if this is a problem to impact "anything
> else".www.abcd.com, if this kind of URL exists.
>  
> Thanks in advance for your help in this DNS world new to me.
>
>  
> > Date: Sun, 25 Apr 2010 13:36:33 -0700
> > From: do...@dougbarton.us
> > To: hugo...@hotmail.com
> > CC: bind-us...@isc.org
> > Subject: Re: one record to be redirected to a specific IP
> >
> > On 04/25/10 13:19, hugo hugoo wrote:
> > > Yes I need more help on this item.
> > > Your answer seems to indicate thate there is no way to only redirect
> > > www.abcd.com to IP 1.2.3.4
> >
> > That's essentially correct.
> >
> > > toto.www.abcd.com will either be redirected to the same IP (zone file
> > > with * A 1.2.3.4)
> >
> > It doesn't have to be the same IP, it could be a different one. You can
> > even specify some specific host names with certain IP addresses, with or
> > without a wild card for everything else. There are a lot of
> > possibilities, but until you tell us EXACTLY what it is you want to
> > accomplish, it's next to impossible to provide you useful help.
> >
> > > So can we redirect only www.abcd.com without any
> > > impact on toto.www.abcd.com?
> >
> > No. Once you create a zone www.abcd.com it will have an impact on
> > .www.abcd.com.
> >
> >
> > Doug
> >
> > --
> >
> > ... and that's just a little bit of history repeating.
> > -- Propellerheads
> >
> > Improve the effectiveness of your Internet presence with
> > a domain name makeover! http://SupersetSolutions.com/
> >
>
> 
> Important ! Le domaine @hotmail.BE est désormais disponible en
> Belgique. Cliquez ici et créez votre adresse
> <http://85.255.193.198/specials/hotmailbe/fr/+%A0>
>
>
> ___
> bind-users mailing list
> bind-users@lists.isc.org
> https://lists.isc.org/mailman/listinfo/bind-users

-- 
Best regards

Sten Carlsen

No improvements come from shouting:

   "MALE BOVINE MANURE!!!" 

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

RE: one record to be redirected to a specific IP

2010-04-26 Thread hugo hugoo

What I want to do is redirect a site to a specific IP using DNS (this kind of 
request comes from the Justice).

This specific IP can be an internal website with a warning message for example.

 

So I need to could redirect www.abcd.com for example to a specific IP 1.2.3.4 
for example.

This redirection must not have any impact on other ur'ls like toto.www.abcd.com 
or "anything else".www.abcd.com

 

 

I  am also wondering if this is a problem to impact "anything 
else".www.abcd.com, if this kind of URL exists.

 

Thanks in advance for your help in this DNS world new to me.


 
> Date: Sun, 25 Apr 2010 13:36:33 -0700
> From: do...@dougbarton.us
> To: hugo...@hotmail.com
> CC: bind-us...@isc.org
> Subject: Re: one record to be redirected to a specific IP
> 
> On 04/25/10 13:19, hugo hugoo wrote:
> > Yes I need more help on this item.
> > Your answer seems to indicate thate there is no way to only redirect
> > www.abcd.com to IP 1.2.3.4
> 
> That's essentially correct.
> 
> > toto.www.abcd.com will either be redirected to the same IP (zone file
> > with * A 1.2.3.4)
> 
> It doesn't have to be the same IP, it could be a different one. You can
> even specify some specific host names with certain IP addresses, with or
> without a wild card for everything else. There are a lot of
> possibilities, but until you tell us EXACTLY what it is you want to
> accomplish, it's next to impossible to provide you useful help.
> 
> > So can we redirect only www.abcd.com without any
> > impact on toto.www.abcd.com?
> 
> No. Once you create a zone www.abcd.com it will have an impact on
> .www.abcd.com.
> 
> 
> Doug
> 
> -- 
> 
> ... and that's just a little bit of history repeating.
> -- Propellerheads
> 
> Improve the effectiveness of your Internet presence with
> a domain name makeover! http://SupersetSolutions.com/
> 
  
_
Nouveau Windows 7 : Simplifiez votre quotidien
http://windows.microsoft.com/fr-BE/windows7/products/home?os=win7___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: one record to be redirected to a specific IP

2010-04-25 Thread Phil Mayers

On Sun, Apr 25, 2010 at 09:19:18PM +0100, hugo hugoo wrote:

Yes I need more help on this item.
Your answer seems to indicate thate there is no way to only redirect 
www.abcd.com to IP 1.2.3.4
toto.www.abcd.com will either be redirected to the same IP (zone file with * A 
1.2.3.4) or answered with NX record (zonz file with 
www.abcd.com A 1.2.3.4)

So can we redirect only www.abcd.com without any impact on 
toto.www.abcd.com?



Not in bind. unbound can do this.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: one record to be redirected to a specific IP

2010-04-25 Thread Doug Barton
On 04/25/10 13:19, hugo hugoo wrote:
> Yes I need more help on this item.
> Your answer seems to indicate thate there is no way to only redirect
> www.abcd.com to IP 1.2.3.4

That's essentially correct.

> toto.www.abcd.com will either be redirected to the same IP (zone file
> with * A 1.2.3.4)

It doesn't have to be the same IP, it could be a different one. You can
even specify some specific host names with certain IP addresses, with or
without a wild card for everything else. There are a lot of
possibilities, but until you tell us EXACTLY what it is you want to
accomplish, it's next to impossible to provide you useful help.

> So can we redirect only www.abcd.com without any
> impact on toto.www.abcd.com?

No. Once you create a zone www.abcd.com it will have an impact on
.www.abcd.com.


Doug

-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: one record to be redirected to a specific IP

2010-04-25 Thread hugo hugoo

Yes I need more help on this item.

Your answer seems to indicate thate there is no way to only redirect 
www.abcd.com to IP 1.2.3.4

toto.www.abcd.com will either be redirected to the same IP (zone file with * A 
1.2.3.4) or answered with NX record (zonz file with www.abcd.com A 1.2.3.4)

 

So can we redirect only www.abcd.com without any impact on toto.www.abcd.com?
 
> Date: Sat, 24 Apr 2010 15:49:39 -0700
> From: do...@dougbarton.us
> To: hugo...@hotmail.com
> Subject: Re: one record to be redirected to a specific IP
> 
> On 04/24/10 15:09, hugo hugoo wrote:
> > Hello,
> > 
> > thanks for your reaction...but...
> > 
> > if a zone www.abcd.com <http://www.abcd.com/> is configured with the
> > record www.abcd.com <http://www.abcd.com/>, what will happen if the
> > query is
> > toto.www.abcd.com ?
> > 
> > ==> wiil the zone be used and no answer given to the client?
> 
> No, because that's not what you asked for. :) You should be able to
> solve that problem by adding the following to the zone file I suggested:
> 
> * A 1.2.3.4
> 
> If you need more help, please include the list in the reply.
> 
> 
> hth,
> 
> Doug
> 
> -- 
> 
> ... and that's just a little bit of history repeating.
> -- Propellerheads
> 
> Improve the effectiveness of your Internet presence with
> a domain name makeover! http://SupersetSolutions.com/
> 
  
_
Internet Explorer 8: même plus de sécurité avec la nouvelle version.
http://www.microsoft.com/belux/fr/windows/internet-explorer/___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: one record to be redirected to a specific IP

2010-04-23 Thread Doug Barton
On 04/23/10 08:15, hugo hugoo wrote:
> Hello all,
>  
> I plan to use BIND as caching DNS.
> But I need to could redirect a specific record to a specific IP.
>  
> How can I do this?
>  
> This redirection must only be applied for one record.
>  
> Ex:   a query for www.ABCD.com  must be answered by
> the IP I have choosen.
>  
> The redirection must not be applied on all the domain ABCD.COM
>  
>  
> Can you help?
> Can you give an example of config file to do this?

You need to create a zone for just that record.

In named.conf:
zone "www.abcd.com" {
type master;
file "/etc/namedb/master/www.abcd.com";
};

For the file line above replace the path to indicate where your actual
zone files are stored.

In the zone file, you would do this:
$TTL 3h
www.abcd.com. SOA localhost. nobody.localhost. 42 1d 12h 1w 10m
; Serial, Refresh, Retry, Expire, Neg. cache TTL

NS  localhost.
A   1.2.3.4


Hope this helps,

Doug


-- 

... and that's just a little bit of history repeating.
-- Propellerheads

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/

___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users