How to make DNS listen on specific IP address?

Hello,

I have Cobalt RaQ 4 with Rackshack and I decided to host my own primary and secondary DNS on this machine.

I got 2 additional IP addresses from Rackshack for primary and secondary DNS. From Cobalt control panel I setup DNS for a number of domains, it was pretty straightforward.

Now, how do I bind 2 IP addresses I got for DNS to my actual named server? /sbin/ifconfig shows that I have 3 IPs attached to eth0, eth0:0 and eth0:1 interfaces. How do I make primary DNS to listen on eth0:0 and secondary DNS - on eth0:1?

In named manpage there was a mention of 'listen-on' option of named.conf file, but no any explanation how to use it. I am not even sure if it is the one I need to use.

 

 

 

 

Top