Re: how to setup a local root nameserver?
see my comments below ... On Tue, Feb 2, 2010 at 8:18 AM, Joseph S D Yao j...@tux.org wrote: On Tue, Feb 02, 2010 at 12:50:56AM +0100, fddi wrote: Hello, I need to setup a local named configuration so that ANY request will be resolved to a specific single IP only. I mean any kind of DNS resolutin request www.luth.se www.isc.org www.anything.tld should be resolved in 172.16.30.30 for example zone . { type master; file zone.root; }; zone.root: @ SOA ... NS localhost localhost A 127.0.0.1 * A 172.16.30.30 NOTE: this does exactly what you asked. And may have unexpected consequences [as in, be careful what you ask for; you may get it]. For instance, this had better be the name server, as well! NO OTHER IP ADDRESS IN THE ENTIRE WORLD will be resolved. Unless you add domains on this same name server. Correct .. but as you say you just add domains on the same name server. Simple make the NS the localhost and assign localhost the A record of 127.0.0.1. Or lets say the name server is at 172.16.30.31 then you can do as follows NS any.domain.name any.domain.name A 172.16.30.31 * A 172.16.30.30 That will work too. regards joe baptista ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: how to setup a local root nameserver?
On Tue, Feb 02, 2010 at 05:05:12PM +0100, fddi wrote: thank you for the precious suggestion I just missed the * hint :) so my configuration was almost done. here is the final configuration and it works... thanks to all I'm amazed that this works. Oh, I see why - it thinks that the IP address is a domain NAME! You MUST have a name to the right of your NS record. But in this case, you have the host name 172 in the subdomain 16.30.30. Normally, to make this work, you must add 172.16.30.30. IN A172.16.30.30 and have a separate zone for the domain 16.30.30. [which is QUITE DIFFERENT from the domain 30.30.16.in-addr.arpa.]. If you don't understand this, think about it for a while - and about the fact that what is to the right of the NS record is NEVER interpreted as an IP address, it is ALWAYS interpreted as a name. Thank you for the amusing anecdote. ;-) $TTL86400 $ORIGIN . @ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ); minimum 1D IN NS172.16.30.30 * IN A172.16.30.30 -- /*\ ** ** Joe Yao j...@tux.org - Joseph S. D. Yao ** \*/ ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: how to setup a local root nameserver?
On Tue, Feb 02, 2010 at 10:03:32AM -0500, Joe Baptista wrote: ... instance, this had better be the name server, as well! NO OTHER IP ... You know, when I wrote this I was thinking of the recommended separate resolving name server from authoritative name server. But in the case our friend from Italy was describing, usually they are the same. If the resolving name server to which all the workstations or kiosks are pointing has a different IP address from the uiniversal IP address, it really doesn't matter! ;-) -- /*\ ** ** Joe Yao j...@tux.org - Joseph S. D. Yao ** \*/ ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users
Re: how to setup a local root nameserver?
Thats the baptista vortex. I've used it to clean up root servers of traffic. Where every name resolves to the same IP address. I don't know if it still works under bind. You can try. You simply setup a root zone file with a wildcard pointing to the A record. Or you can build a server to do that. regards joe baptista If you need help get back to me privately. On Mon, Feb 1, 2010 at 6:50 PM, fddi f...@gmx.it wrote: Hello, I need to setup a local named configuration so that ANY request will be resolved to a specific single IP only. I mean any kind of DNS resolutin request www.luth.se www.isc.org www.anything.tld should be resolved in 172.16.30.30 for example I need this because I need to redirect users to a local web portal authentication page and I need to do it using DNS. is there any kind of named configuration which can allow me to achieve this result ? I tryed hard but without any success for example I tryed this: in named.conf: zone . IN { type master; file named.root; }; then in named.root: $TTL86400 $ORIGIN . @ 1D IN SOA @ root ( 42 ; serial (d. adams) 3H ; refresh 15M ; retry 1W ; expiry 1D ); minimum 1D IN NS@ 1D IN A 172.16.30.30 but it works only for . and not recursively for anydomain issued in the request. thank you Rick ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users ___ bind-users mailing list bind-users@lists.isc.org https://lists.isc.org/mailman/listinfo/bind-users