Re: multiple hostnames
--On January 25, 2006 2:07:57 PM -0500 Chris Knadle
On Wednesday 25 January 2006 13:40, Rodney Richison wrote:
Is it possible to have debian answer the second interface card with a
differant hostname? I've got a gentleman that'd like to have me
secondary as backup dns under his "private" label so to speak.
ie 1 network address on eth0 and another on eth1, both using the same
This sounds to me like a job for either A) a chrooted environment
B) a virtual machine or C) a different machine.
Not sure why you'd need any of these three, or even why anyone would need
an additional address just for DNS. It's a silly requirement.
That said, if the IP is on the same network or switcch you don't need a
second ethernet interface at all. Just configure an alias IP on your
existing eth0. If the gateway and network+netmask are different but you're
still plugging into the same virtual lan or switch then just add all those
particulars to the eth0:1 interface. Only time you need a second interface
in Linux is when you need a completely physically separate network or need
more bandwidth than a single interface can provide. The example below is
fictional, using an INVALID address.
iface eth0:1 inet static