<quote who="Paul Robinson"> > Firstly, appologies for mail client, I'm currently without a Linux > Desktop. I was wondering if anyone knows how to bind a program to a > particular IP for outgoing communications? Specifically I am setting up > Bind as a secondary DNS and it's grabbing zone info from a master server.. > The master is a Win2k box that is set to accept zone request info from > domain only. For each of the 3 domains he's set the ns2 (the linux box) to > be a different ip so that when reverse lookups are set up it will only > show the relevant domain).
As it happens, I asked a similar question a week or so ago, but with one crucial difference: I just wanted requests to come from the primary IP, not any of the aliases. If you can change your config around to accommodate that, then you can use dummy interfaces instead of aliases (as suggested by Jess). That's all I needed, and I certainly didn't want to go to the trouble of a more complicated solution for that. If you can't, or don't want to do it that way, the best solution is iproute2. You can set up a rule that will do the funky routing that you require. A good intro is the Advanced Routing Howto: http://www.linuxdoc.org/HOWTO/Adv-Routing-HOWTO.html - Jeff -- I used the word 'infrastructure' when describing her cooking style... and she didn't speak to me for a week. -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
