Can I use bind9 to resolve only ONE hostname in a zone?


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Can I use bind9 to resolve only ONE hostname in a zone?
# 1  
Old 04-21-2010
Can I use bind9 to resolve only ONE hostname in a zone?

Hi there,

I have the following problem.
I have a Debian server with bind9.
I can also use my ISP DNS server through the internet box (192.168.1.1).

I would like to fool my client workstation to a local machine when they query for one specific hostname within a domain.
I want to let the ISP DNS do the job for any other request.

For example:
  • If they query mail.google.com, I want to point that to 192.168.1.40.
  • If they query anything else in google.com, I want to let 192.168.1.1 do the resolution.
  • If they query anything else in any other domain, I want to let 192.168.1.1 do the resolution.
So far I setup bind9 on my Debian server.
I created a zone for google.com and I successfully redirected mail.google.com to 192.168.1.40.
But how can instruct bind9 to transmit any other request to the next DNS (192.168.1.1)?

Thanks for your help.

koko

edit by bakunin: removed a typo in the thread title to make it easier to search for it in the archives.

Last edited by bakunin; 04-22-2010 at 08:30 AM..
# 2  
Old 04-21-2010
Create a A record just like google.com to *.google.com now all subdomains also point to same IP.
# 3  
Old 04-21-2010
Wrench

Thanks chakrapani for your post.
I think we're not talking about the same thing.
I do NOT want all query *.google.com to go to my local machine (192.168.1.40).
I want exclusively mail.google.com to go to my local machine and ALL the rest to go wherever the ISP's DNS says to.
# 4  
Old 04-22-2010
I guess I got the question wrong... Could you please confirm if you were looking for this

DNS Spoofing

and you want for only one sub-domain not all the domain.
# 5  
Old 04-22-2010
Exactly!
Now I know that what I'm trying to do is spoofing.
Don't worry, I'm not trying to attack anyone. Here is the deal:

We have a Debian ProFTPd server.
Its local address is 192.168.1.254.
Its WAN address is something like 1.2.3.4 (the company's internet box).
We also have a website hosted at 5.6.7.8 (web hosting provider).

We own mydomain.com and manage it with gandi.net.
The address ftp.mydomain.com points to 1.2.3.4.
The address www.mydomain.com points to 5.6.7.8.

We all have laptops and work both inside and outside the office.
We all have a backup program configured to send files to ftp.mydomain.com.
I would like to configure spoofing in our local network so the address ftp.mydomain.com (and exclusively this one) is resolved to 192.168.1.254. Whatever other name should be resolved according to worlwide DNS servers.

How can I do that?
I already configured a Debian bind9 server in the local network. Is that the answer? What should I write in the zone file?
Is there another solution? Which one?

Thanks for your help
# 6  
Old 04-22-2010
Good spoofing OK Smilie
BAD spoofing -- Grrrr ...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

Bind9 DNSSEC and rollerd

Hi all, I've a litte problem to get rollerd running and signing my zones if the ZSK of my zones are near expiring or expired. rollerd is running but do nothing startet with: /usr/bin/perl /usr/sbin/rollerd -rrfile /etc/bind/all.rollrec -directory /etc/bind -logfile /dev/stdout ... (1 Reply)
Discussion started by: xabbu
1 Replies

2. UNIX for Dummies Questions & Answers

BIND9 CNAME to External Domain

We're moving an app from a server in our domain to a server hosted by the vendor in their domain. This app had it's own domain setup that we're authoritative for. Do I need to create a new zone file? zone-vendor_com and set up the CNAME records in this file? Or if I can just edit the one I... (1 Reply)
Discussion started by: joeaverage
1 Replies

3. UNIX for Advanced & Expert Users

Hostname -f hostname: Unknown host

deleted (0 Replies)
Discussion started by: hce
0 Replies

4. UNIX for Dummies Questions & Answers

Bind9 non existing ip , time of query

how can i set default permission for nslookup, i have in my nslookup timeout = 0 retry = 3 port = 53 but i want to set it to : timeout = 2 retry = 2 port = 53 i'm using bind9 , where can i set the default timeout for it? thanks in advance (0 Replies)
Discussion started by: prpkrk
0 Replies

5. Emergency UNIX and Linux Support

HP UX - ILO Console hostname different than Machine Hostname...

Hi All, So we added a new HP-UX 11.31 machine. Copied OS via Ignite-UX (DVD)over from this machine called machine_a. It was supposed to be named machine_c. And it is when you log in...however when I'm in the ILO console before logging in, it says: It should say: What gives? And how do... (4 Replies)
Discussion started by: zixzix01
4 Replies

6. UNIX and Linux Applications

bind9 with ldap using dlz

Hello guys, can anyone help me with the below error I'm getting from bind9? I'm trying to make bind read all the zone info from openldap, I have already created the schema and I've put some info into the ldap. I have also tried to google the error with no success. I'm aware there is an problem... (1 Reply)
Discussion started by: yered
1 Replies

7. UNIX for Dummies Questions & Answers

Resolve IP to Hostname?

Good day, I would like to resolve IP's to Hostnames using Putty. I'm using Mandriva Linux 2008.0. Is this possible? Perhaps with nmap? (13 Replies)
Discussion started by: McGuywer
13 Replies

8. IP Networking

Conditional Forwarding using BIND9

Hello, I'm a noob when it comes to DNS and BIND9, so forgive me if my description seems pedantic: I connect to my workplace's network using VPN, which sets me up with the workplace DNS servers. Those servers manage the an internal namespace (visible only to users inside the VPN), with a... (5 Replies)
Discussion started by: neked
5 Replies

9. IP Networking

DNS upgrade issues, bind9.5.0_P1

so we had bind 9.3.0... we upgraded to 9.5.0 patch 1 we kept the exact same named.conf now we have a problem that some DMZ server cant do lookups from our DNS slave anymore. in the named.log we see things like this: 22-Jul-2008 16:05:04.694 security: info: client <our DMZ servers... (2 Replies)
Discussion started by: robsonde
2 Replies

10. UNIX for Dummies Questions & Answers

Solaris - unknown hostname - how can I change hostname?

Hello, I am new to Solaris. I am using stand alone Solaris 10.0 for test/study purpose and connecting to internet via an ADSL modem which has DHCP server. My Solaris is working on VMWare within winXP. My WinXP and Solaris connects to internet by the same ADSL modem via its DHCP at the same... (1 Reply)
Discussion started by: XNOR
1 Replies
Login or Register to Ask a Question