A method, performed by a second node, for handling usage of a Domain Name Service (DNS) server in a communications network, the second node operating in the communications network, the method comprising:
- sending, to a first node operating in the communications network, one or more first indications, the one or more first indications indicating one or more rules on how a device operating in the communications network is to select, based on one or more criteria, a DNS server, out of one or more DNS servers, for use by the device for an application, wherein the one or more first indications comprise an explicit indication of one of:
- a) which applications the one or more rules apply to, and b) that the one or more rules apply to all applications;
- wherein the first indications further indicates one or more of:
- an order of enforcement of the policy, and a type of traffic the policy applies to.