Solved

resolving whole domains to a single IP with bind

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

785 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