LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Binding named to only one NIC of a dual NIC machine - possible? (https://www.linuxquestions.org/questions/linux-networking-3/binding-named-to-only-one-nic-of-a-dual-nic-machine-possible-356419/)

Paul_Randle 08-24-2005 04:21 AM

Binding named to only one NIC of a dual NIC machine - possible?
 
Hi There,

I am wondering whether it is possible (and if so how) to specify that 'named' should only bind to one of the two NICs in a machine?

Reasoning:

I want to run dnsmasq (for the ability to serve names/ip from the hosts file) on one card ip 10.x.x.222 - not a challenge since I can tell dnsmasq to only serve for this ip.

On the other card (ip 10.x.x.221) I would like to run BIND as a cacheing only name server (dnsmasq does not do recursive look-ups)and have dnsmasq use this as the 'upstream' DNS server (I can specify the server to use in the .conf file as 127.0.0.1).

However when running BIND 'named' attaches to both NICs and so dnsmasq will not start (failed to bind listening socket: Address already in use).

is there a way to tell 'named' not to bind to 10.x.x.222:53 so that this is available for dnsmasq?

Thanks.

bathory 08-24-2005 05:09 AM

Put:
Code:

listen-on {10.x.x.222;};
in the options section of /etc/named.conf

scowles 08-24-2005 06:43 AM

Also, you might consider looking at bind "views". Based on my understanding of your post, you could configure multiple views in named.conf and accomplish the same goal without even using dnsmasq.

Paul_Randle 08-24-2005 08:44 AM

thanks to you both for the information - I'll look at both.

Cheers,
Paul.


All times are GMT -5. The time now is 11:22 AM.