so you should just need to define a nameserver in /etc/resolv.conf. Your router should probably provide one, so the following should work:
echo "nameserver 192.168.1.1" >> /etc/resolv.conf
However, your distro might provide some other way of managing that file. Have a look in your reslov.conf to see if there are any comments/instructions.