Port number in A record in zone file

Matthew Seaman m.seaman at infracaninophile.co.uk
Thu Nov 17 14:52:58 UTC 2011


On 17/11/2011 14:41, Aleksander Kurczyk wrote:
> If not, it is possible to map traffic from 127.0.0.11:53,
> 127.0.0.12:53 and 127.0.0.13:53 to 127.0.0.1:2001, 127.0.0.1:2002 and
> 127.0.0.1:2003 or to setup new loopback interfaces for 127.0.0.11,
> 127.0.0.12 and 127.0.0.13 on Mac OS X or somehow do that?

If you're going to create all those alias IPs on the loopback, why not
just run a named on each of them directly?  No need to worry about port
translation then.

Setting up aliases is easy enough:

seedling:~:% sudo ifconfig lo0 inet 127.0.0.2 alias
Password:
seedling:~:% ifconfig lo0
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
	inet6 ::1 prefixlen 128
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
	inet 127.0.0.1 netmask 0xff000000
	inet 127.0.0.2 netmask 0xff000000

(deleting one is just: sudo ifconfig lo0 inet 127.0.0.2 -alias)

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew at infracaninophile.co.uk               Kent, CT11 9PW

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 267 bytes
Desc: OpenPGP digital signature
URL: <https://lists.isc.org/pipermail/bind-users/attachments/20111117/e08bc861/attachment.bin>


More information about the bind-users mailing list