Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Multiple "named" instances

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
10 posts • Page 1 of 1
Author
Message
Dr_Stein
Guru
Guru
Posts: 303
Joined: Fri Mar 21, 2003 3:12 am
Location: Mountain View, CA
Contact:
Contact Dr_Stein
Website

Multiple "named" instances

  • Quote

Post by Dr_Stein » Thu Mar 27, 2003 4:32 pm

Greetings, all!

I'm moving a box to a colo facility, and I want to run 2 "named" instances, 1 listening on each card.

named-internal = eth1 (handling internal DNS)
named-external = eth0 (handling external DNS)

Each will have its own directory for zone files/etc. I don't want to use BIND views because this is a slave DNS server and views are a pain to set up.

What's the best way to do this? can I just re-name the startup scripts?

Anybody done something like this before? :)
Top
rtn
Guru
Guru
Posts: 427
Joined: Fri Nov 15, 2002 6:57 pm

  • Quote

Post by rtn » Thu Mar 27, 2003 4:41 pm

Sure, it's really a piece of cake. Just make sure that you don't leave
ambiguous references around, like /etc/init.d/named and /etc/named.conf.
Rename everything to that they reflect the instance that they support, it will
really help in the long run to eliminate confusion. The other option, of course,
would be to put all of the config files in their own directory, like /var/named/eth0/
or something, and use the command-line to point named to the correct conf
file.

--rtn
Top
kashani
Advocate
Advocate
User avatar
Posts: 2030
Joined: Mon Sep 02, 2002 6:38 am
Location: San Francisco
Contact:
Contact kashani
Website

running two instances of bind

  • Quote

Post by kashani » Thu Mar 27, 2003 7:49 pm

I'd probably do something to similar to the following

/var/named
/var/named2/
/etc/bind/
/etc/bind2/
/var/log/named/
/var/log/named2/

In the config file I'd set the logging to specific dir and to bind to on of the the IP's. Otherwise you'll have two servers sending logs to /var/log/messages and you'll never be able to tell what's going on.

For a good logging config that auto-rotates check out
http://www.badapple.net/tech/bind-logging.html

the startup script should look roughly like
named -c /etc/bind2/named.conf

kashani
Will personally fix your server in exchange for motorcycle related shop tools in good shape.
Top
gfdsa
n00b
n00b
Posts: 74
Joined: Mon Jul 01, 2002 8:33 pm
Contact:
Contact gfdsa
Website

  • Quote

Post by gfdsa » Thu Mar 27, 2003 7:56 pm

r u sure u need to binds? may be its internal options will suit you? did you hear about "views"?
Top
Dr_Stein
Guru
Guru
Posts: 303
Joined: Fri Mar 21, 2003 3:12 am
Location: Mountain View, CA
Contact:
Contact Dr_Stein
Website

  • Quote

Post by Dr_Stein » Thu Mar 27, 2003 10:39 pm

Yeah, I don't want to use views because one of the interfaces is going to be on a site-to-site VPN while the other one is going to be a public interface (behind a static NAT..fw-1 box)
Top
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

  • Quote

Post by vikwiz » Fri Mar 28, 2003 2:09 am

Don't you chroot named? 8O
Top
Dr_Stein
Guru
Guru
Posts: 303
Joined: Fri Mar 21, 2003 3:12 am
Location: Mountain View, CA
Contact:
Contact Dr_Stein
Website

  • Quote

Post by Dr_Stein » Fri Mar 28, 2003 3:03 am

I suppose I could.
chrooting BIND isn't a foolproof solution, tho. Merely another step. :)

Honestly, I've never had *any* trouble with BIND. I have never personally met anyone that's had trouble with BIND. Those that I encountered elsewhere on the net that had BIND problems, were running waaay outdated versions.

It's also firewalled to the point where it really couldn't *do* anything. The only traffic that can go to/from the interface is DNS traffic anyway.
Top
vikwiz
n00b
n00b
User avatar
Posts: 50
Joined: Sat Mar 01, 2003 12:42 am
Location: Budapest
Contact:
Contact vikwiz
Website

  • Quote

Post by vikwiz » Fri Mar 28, 2003 8:38 am

Dr_Stein wrote:Honestly, I've never had *any* trouble with BIND. I have never personally met anyone that's had trouble with BIND. Those that I encountered elsewhere on the net that had BIND problems, were running waaay outdated versions.
I actualy had, and also I'm getting the habit to chroot everything I can easily, so less trouble I *can* have later. And bind was one of the most often used backdoor, together with sendmail. Hadn't you have the experience that after reading an advisory and check your machine, the man is already in? :x Last week my time was spent to clean up an infected machine, and it's still not fully functional. Yes, it was outdated (about 4 years ;), but even your developement machines are outdated. Keep in mind that when you see the advisory, it's already late. Your system was vulnerable then since it's existence, and I'm sure there are people who did know it. Yes, I'm not paranoid, and why should these people hunting me? but it's a fact you should know about: your system is always vulnerable fully, at least you don't know about :?

So these 'small steps' could have reasonable profit later.

But about the topic: I run multiple DNS on one machine, BIND on loopback interface with internal domains, and PDNS on external interfaces for the other servers (not publicaly available). PDNS queries BIND for internal domain requests. It works pretty well.
Top
mglauche
Retired Dev
Retired Dev
User avatar
Posts: 564
Joined: Thu Apr 25, 2002 9:55 am
Location: Germany
Contact:
Contact mglauche
Website

  • Quote

Post by mglauche » Fri Mar 28, 2003 12:24 pm

a good solution is to run bind on an internal network machine and install dns-cache from the djb-dns tools on a border router .. so the external machines only access the dnscache client :)
Top
Dr_Stein
Guru
Guru
Posts: 303
Joined: Fri Mar 21, 2003 3:12 am
Location: Mountain View, CA
Contact:
Contact Dr_Stein
Website

  • Quote

Post by Dr_Stein » Tue May 06, 2003 7:48 pm

I went ahead and chrooted named. Got bored. Fun project. :-)
Top
Post Reply

10 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic