Adding a Multihomed Host

2.11.1 Problem

You want to add a multihomed host to DNS.

2.11.2 Solution

Add multiple A records to the host's domain name, one per IP address. For example, for a file server with two network interfaces, you might add these records: IN A IN A

To handle reverse mapping for the host, add one PTR record to each of the appropriate two reverse-mapping zones: IN PTR

and IN PTR

2.11.3 Discussion

Clients looking up the address of will see both IP addresses, and can choose which one to use (though most clients will just use the first address returned). Remember that, by default, they'll be returned in round robin order.

For troubleshooting purposes, you may want to add two more A records, each of which maps to just one of your multihomed host's addresses. For example: IN A IN A

This lets you test whether a particular network interface on the file server is up, by pinging, for instance. You probably shouldn't add PTR records mapping the addresses back to these interface-specific names, though: most software can't handle multiple reverse mappings for a single IP address.

2.11.4 See Also

Section 2.8 for the behavior of round robin, and Chapter 4 of DNS and BIND.

Getting Started

Zone Data

BIND Name Server Configuration

Electronic Mail

BIND Name Server Operations

Delegation and Registration


Interoperability and Upgrading

Resolvers and Programming

Logging and Troubleshooting


DNS & BIND Cookbook
DNS & BIND Cookbook
ISBN: 0596004109
EAN: 2147483647
Year: 2005
Pages: 220
Authors: Cricket Liu © 2008-2020.
If you may any questions please contact us: