My Pi will connect to different routers. They all provide the same network with the same SSID.
Now I would like to set up the dns server of my Pi with the IP of those routers, (there's a dns server running on them). The challenge is that they don't have the same IP.
From the search that I've done I found that I need to edit
/etc/dhcp/dhclient.conf and add something like:
Is there a way that I can get the IP of the router and set it in this file?
EDIT: here you have the output of cat /etc/resolv.conf:
domain lan nameserver 10.44.55.1 //my router's IP nameserver 18.104.22.168 nameserver 22.214.171.124