A network controller for automatically define forwarding rules to configure a computer networking device, whereby said network controller is connected to a sub-network of a communication network and comprises:
- a controller manager that receives a request for a given service and defines, by executing an algorithm, forwarding rules related to said service and installs the defined forwarding rules into a computer networking device of the sub-network of the communication network in order to configure the computer networking device for said given service,
- characterized in that the network controller further comprises:
- a deciding module configured to communicate with the controller manager and configured to interact with a DNS server to receive a determined resolution for a DNS request of said request for said given service, and with a database to retrieve information supplementary for the DNS request, in order to assist the controller manager in performing the defining of the forwarding rules;
- and
- a plurality of interfaces for allowing the communication of the deciding module with the controller manager, the DNS server and the database.