Accessing a DNS server fails on an alternate IP address

Tom H tomh0665 at gmail.com
Thu Aug 12 14:29:43 UTC 2010


On Thu, Aug 12, 2010 at 8:43 AM, Steve Searle <steve at stevesearle.com> wrote:
> I have a DNS server running on a physical server 192.168.126.1. However
> I like to split all my services onto their own IP addresses for ease of
> migration, so I logically assign 192.168.126.154 to this server using
> the following lines in /etc/rc.d/rc.local
>
>  ifconfig eth0:2 192.168.126.154
>  route add -host 192.168.126.154 dev eth0:2
>
> This makes it more straightforward if I ever want to move the service to
> a different physical server - I just reassign the logical IP address.
>
> However I cannot access the server using the alternate address. In other
> words:
>
>  $ dig @192.168.126.1 capercaillie
> works as expected, but:
>
>  $ dig @192.168.126.154 capercaillie
> returns a "no servers could be reached" message. This happens even if I
> take down the firewall on the server.

Add a "listen-on" directive in bind.


More information about the users mailing list