@Oximoron said in Setting DNS with static IP config:

route add default gw 192.168.1.1

I tried that solution but I noticed that the Gateway configuration dissapears when the wifi disconnects from an AP.

Has anyone found a better solution?