Brad Campbell wrote: >John Joseph wrote: > > >>Hi Chris >> Thanks for the mail , my purpose is not to >>black list any hosts or domain , my plan is to have >>like this any clients giving any request gets directed >>to a url ( where my portal is there , from there they >>will be given direction how to use Internet ( may be >>by only logging to portal for Internet use which uses >>squid ) >> For this purpose , I need to >>configure , DNS server >> >> > >May I suggest that futzing with dns like this is a bad way to go about what >you require? >As it seems you are only really concerned about web traffic (url) then perhaps >a better way is to do >a dynamic redirect on outbound port 80 to a local web-server. So anything that >is attempted >(http://xxx) will be directed straight to your local web page with >instructions on it. (A far neater >way than having a static IP response to any possible DNS lookup). > >iptables -t nat -A PREROUTING -p tcp -d ! 192.168.0.0/24 --dport 80 -j >REDIRECT --to-port 8081 >
Yeah, this would be a cleaner way to do the forwarding part. Anyway he would need the dynamic updates part, since he does not want to have any configuration on the client. (That's where the config's for bind and named that i sent earlier fits in) The bind configuration can use this router's IP address, to be advertised through DHCP. Hope that solves it completely. Manu ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/KIlPFB/vlQLAA/TtwFAA/0XFolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/dubailug/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
