Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

BIND: Overriding DNS for certain Servers

Status
Not open for further replies.

tumichaelf

IS-IT--Management
May 17, 2011
33
US
Hello,

I have RHEL 5.7 running BIND in my environment and I need assistance in configuring a new change.

Currently "domain.com" is us, and our IP Schema is 10.28.140.x. I have been asked to override a few servers that belong to "otherdomain.com" and use the IP Schema 10.96.13.x.

Our netmask's on all of our servers are 255.255.255.0 as we only use a class c subnet. I am also new to BIND and am having issues getting a good start on this.

I read " and found some useful hints, and I tried getting dnsmasq to start but I got the following error
Code:
[root@host named]# service dnsmasq restart

Starting dnsmasq: 
dnsmasq: failed to create listening socket: Address already in use
[FAILED]
..

Any ideas on how to get it going with just BIND or how to resolve the dnsmasq issue?
 
By "over ride", what are you trying to do? Reroute queries to your own servers for a different domain? You can create a zone for the other domain in your server and have it read from whatever zone data you put in place. BIND doesn't care what IP scheme you use. If it's formatted correctly, it will work.

As for dnsmasq. I've used it before but I didn't like it. I much prefer to stick with BIND. But there are probably cases where dnsmasq might be better. If you want to run it, kill named first. They both listen on port 53 so they wont work together (going back to that address already in use error). At least on the same server.
 
To rephrase this question.

I have control over domain: m.ichael.com. My friend Joe has domain j.oe.com. I am hosting some data for joe in my environment and I want to set my DNS to override the public DNS systems (my DNS only works for internal traffic) so that if I go to 'ssh server@j.oe.com' it goes to server@m.ichael.com.

Does this make more sense? I am happy to stick with BIND, I was just looking at dnsmasq from some posts I read.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top