Solved

resolving whole domains to a single IP with bind

Posted on 2004-03-29
3
268 Views
Last Modified: 2010-04-20
hi,

I'm looking to map every possible hostname in a domain to a single IP address eg:

i have a domain name sdf.com and i want any host within this domain to resolve to 12.12.12.12 so,
nslookup fsdf.sdf.com returns 12.12.12.12

as would sdfasdf.sdf.com or d3.sd.sdf.com

does anyone know how to accomplish this with bind?

Cheers,
Andrew.

ajonesatjigsawdotnetdotau
0
Comment
Question by:jonesy2k
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 125 total points
ID: 10710290
I think having only:

*    IN A    12.12.12.12

in your zone file will do it. Out of curiosity why would you want to do this?
0
 
LVL 4

Author Comment

by:jonesy2k
ID: 10710409
I want to redirect people going to sites like kazaa.com and *.gator.com etc to a page I will create.

Thanks.
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10710943
Okay... That will work as long as they only use your DNS server. A knowlegeable user can simply set their machine to use a DNS server on the Internet and bypass your restriction. Or, even if you block DNS at a firewall so they have to use your DNS server they can create a hosts file record for the site.

That presumes that the ultimate goal is to block folks from using kazaa, gator, or other P2P clients. A better approach, if you want to work off the IP's is to block access to those IP's at a firewall or router. That solution only works for IP's that you know about or TCP/UDP ports that you know. A more complete solution, that works on the content of packets, is somthing like Packeteer or P2P WatchDog (http://www.p2pwatchdog.com/home.html).
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question