Solved

resolving whole domains to a single IP with bind

Posted on 2004-03-29
3
284 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

690 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