LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-24-2005, 04:21 AM   #1
Paul_Randle
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?

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.
 
Old 08-24-2005, 05:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Put:
Code:
listen-on {10.x.x.222;};
in the options section of /etc/named.conf
 
Old 08-24-2005, 06:43 AM   #3
scowles
Member
 
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
Paul_Randle
LQ Newbie
 
Registered: Aug 2005
Location: Ireland
Distribution: Various
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

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

Cheers,
Paul.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:35 AM.

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