Sounds very much like /etc/resolv.conf does not have a nameserver entry.
I often find that problem with Ubuntu using dhcp and with static IP's.
The file warns you that it will be overwritten by NetworkManager, but removing that or resolvconf so they are not executed has not solved the problem on some systems.
You can use resolvconf like /etc/resolv.conf by editing /etc/resolvconf/resolv.conf.d/base, which NetworkManager appends to for its dynamic nameserver resolution.
-- Robert Ying
how are you setting up the dns while manually setting the local ip address as 192.168.2.99?
t you try with dhcp? If thats quit ing keeping the ip address then you may check the renewal time for which it binds to that ip address from your dhcp configurations…