I have what was a perfectly functioning Ubuntu 13.04 server running a LAMP stack using NAT. A change to the host configuration required that I use bridged networking and a static IP. I've set up a thousand static IPs in Ubuntu versions prior to version 12, but now I can't get a DNS configuration to stick. I can get DNS working fine if I manually add my DNS servers to resolv.conf every session, but that's a pain? 13.04 release notes mentioned a change whereby I insert the line dns-nameservers x.x.x.x into the interfaces file, but that doesn't seem to do anything either. Any ideas what's up with my DNS?
The same approach can be used with static IP's. Instead of editing /etc/resolv.conf, you should be editing /etc/network/interfaces. It should include something like:
The next time you restart your system (or just network services), you'll see the proper entries in /etc/resolv.conf.