From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <7fab231cb5161a626f80f2177dcc15a8.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199708061641.JAA25459@rtl.cygnus.com> Date: 6 Aug 1997 16:47:09 -0000 From: Eric Smith Subject: Re: IP aliasing > I assign an IP address to my alpha, say XXX.yyy.zzz.80, then alias 81 82 and > 83. From the outside world, I can ping, telnet to, ftp to, httpd to any of > the IP address with no problem. I have a nameserver running on the machine > and I can only use the 80 (real ethernet) address in resolv.conf on other > machines on the same network that don't have named running. If I try any of > the alias address it hang and will not resolv. > > I moved the nameserver over to my intel box, did the same thing with the > aliasing and it work perfectly, I can use any of the alias address for the > nameserver on my remote machines and they work. I brought this very same subject up in Sept. '96, and no one seemed to care. There's a bug in BIND 4.9.3 (and perhaps later versions) in the way that the interfaces are enumerated. In the fine named/ns_main.c, the line cp += sizeof (ifr->ifr_name) + my_size(ifr->ifr_addr)) { should be changed to cp += sizeof (struct ifreq)) { I don't know why they are assuming that the increment should be just the size of the ifr_name and ifr_addr fields, or whether this change will break on non-Linux platforms, so I changed it to #ifdef linux cp += sizeof (struct ifreq)) { #else cp += sizeof (ifr->ifr_name) + my_size(ifr->ifr_addr)) { #endif The net result is that when they scan the list of interfaces, they don't get all of them, and they get some bogus ones. In my case, I only want named to respond on one IP alias, and it happened to be an IP alias that named wasn't finding at all. So I fixed the bug described above, and I added a feature to allow a single IP address to be used. I think BIND version 8 may have that capability as a standard feature. Cheers, Eric -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com