Solved

resolving whole domains to a single IP with bind

Posted on 2004-03-29
3
246 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now