routing DNS requests using multiple nics

Hi all,

Im new to the wide world of FreeBSD, and was wondering how you could have lets say 2 or 3 nics installed in a server, and have all 3 connected to same router, but have 1 listen and serve up webpages, email etc. but have one bound to TCP requests for DNS, and have one bound for UDP for DNS, to minimize packet collison/errors. I am fairly new to FreeBSD, but have worked with Windows servers for a while. Any advice/comments/configuration info and tutorial site are appreciated.
 
Greetings,
As far as "packet collisions" go, PF(4) might be of some help here. You could also leverage it to route requests by protocol, as well as IP address.

HTH

Best wishes.
 
Don't worry about collisions until you have scrappy hardware.
But if you want to separate traffic across IP addresses use ifconfig(8)() aliases.
Keep in mind interface aliases have always a 255.255.255.255. netmask where windows want the same mask as the main IP and not all deamons support bind to IP X (ntpd for example)
 
ohauer said:
Keep in mind interface aliases have always a 255.255.255.255.

Only if those aliases are in the same network as the primary IP address. You can alias a separate (non-related) IP/network with its own netmask on an interface.
 
Back
Top