Register a domain and help support LQ
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-24-2005, 04:21 AM   #1
LQ Newbie
Registered: Aug 2005
Location: Ireland
Distribution: Various
Posts: 5

Rep: Reputation: 0
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?


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

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?

Old 08-24-2005, 05:09 AM   #2
LQ Guru
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,474

Rep: Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480Reputation: 1480
listen-on {10.x.x.222;};
in the options section of /etc/named.conf
Old 08-24-2005, 06:43 AM   #3
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
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.
Old 08-24-2005, 08:44 AM   #4
LQ Newbie
Registered: Aug 2005
Location: Ireland
Distribution: Various
Posts: 5

Original Poster
Rep: Reputation: 0

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Binding multiple IP Addresses to same NIC Harlin Linux - Networking 4 10-26-2005 05:10 AM
Binding a ethernet module to a NIC RickRalph Linux - Networking 1 03-31-2005 04:00 AM
binding linuxconf port to one NIC the_cyber_boss Linux - Security 1 12-18-2003 10:51 AM
binding multiple IPs to single NIC? lok1 Linux - Networking 2 11-16-2003 02:58 PM
Binding multiple IP addresses to a nic card Natalie Linux - Networking 9 08-12-2003 08:27 PM

All times are GMT -5. The time now is 05:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration