Cached DNS Resolution Error

The DNS entry for a server used in our build has been cached with an old value which causes the builds to fail repeatedly. Is there any way to force the DNS cache to clear?

Using ubuntu 12.04 with Java and Maven

I’ve tried restarting dnsmasq with “sudo /etc/init.d/dnsmasq restart” which failed.