Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm not that familiar with DNS, I have a DNS server that handles all of our internal DNS entries and its fine. However we have a software package now that points to a host that exists "publicly" however we are supposed to use a different IP to access this server. I can put an entry in the local machine's host file and the software works but this is going on a lot of systems and I don't want outdated host files everywhere.

If I make a new zone on our DNS to handle this domain i can get the software to work by putting in a record, but then all of the other hosts on that domain break since I don't have records for them. (For instance, the www entry doesn't exist so going to the public website results in not finding a host).

So I'd like to put in one or two entries in our DNS for a zone I have no control/authority on and have it serve those internally but forward everything else out.

share|improve this question
    
What DNS server are you using? –  joeqwerty Mar 19 '13 at 14:30

1 Answer 1

what you could do is the following. Setup a dns server running on 127.0.0.1:5353 resolving the entries you want. In front of that you use a dns cache f.e. dnsmasq. in dnsmasq you could do:

server=/domain.tld/203.0.113.1
server=/host1.domain.tld/127.0.0.1#5353
server=/host2.domain.tld/127.0.0.1#5353

this should direct queries for host1 and host2 to the local instance and all other queries for the same domain to 203.0.113.1 (which represents your providers dns resolver) and all other queries will be forwarded to the servers configured in /etc/resolv.conf.

hth

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.