Discussion Locked

foward webpages to 127.0.0.1

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I want to foward webpages to 127.0.0.1 using DNS.. i see some crap in my cashed lookups.. so i want to use DNS to block these webpages from ever leaving the server..

so if www.homestarrunner.com was being used.. i would like to use dns to set that IP to localhost..

thanks

5 replies

by jaqui

it would be easier to use apache's forwarding tp do this.

but, basically, set up a dns entry for each domain that you want to do this with, and specify localhost ( 127.0.0.1 )

include the in arpa settings, everything.
so that the dns says they are local pages only.
or else remove from dns, so the pages have no data and return page not found message.
( would require killing the lookup to higher dns )

by jaqui

using dns, you create a local entry for the domains where the ip is 127.0.0.1
you will have to make the dns server the authorative server for these domains to do this.
or when the server pulls data from other servers it will overwrite these settings.

you would have to concider the problem with doing this.
no-one will be able to view these pages at all, as every other dns server will copy your settings to thier lookup tables.

this is why using the webserver to reditect is better, that will only affect your network, not the entire internet.

by 5jgibbs

so.. in DNS.. what type of entry do i want.. Foward Lookup.. Host (A) ect... thanks

This discussion is closed to new replies.