Help with setting DNS on server

I may be just shooting in the dark again as usual when I ask about servers and how to's

Maybe someone will help.. please

I have PE2650 at home that runs RMS and couple sites.

If I reboot this server the times default to 2006, when unit was made. I have checked the batteries and diagnostics indicate they are OK.

I can manually fix this just wondering if anyone else is/has Dell server at home.

Another mystery is I keep loosing my DNS, I have set up the necessary conf file in 

/etc/network/interfaces

and this is what is in the file


# The loopback network interface

auto lo eth0

iface lo inet loopback


# The primary network interface

iface eth0 inet static

        address 192.168.1.105

        netmask 255.255.255.0

        network 192.168.1.0

        broadcast 192.168.1.255

        gateway 192.168.1.1

dns-nameserver 75.75.75.75 75.75.76.76

dns-search local

dns-domain local.domain

 

I've done many changes to this configuration and still I loose the nameserver.

This is my only solution to the problem, which I have to manually run each reboot.

echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

and I'm good to go.

Should I add that above line to 

/etc/rc.local

!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

cd /opt/ray_server

./run_daemon.sh

/usr/sbin/htcacheclean -d30 -n -t -p /var/cache/apache2/mod_disk_cache -l 100M $


exit 0

 

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 14 Nov 2012

What OS and version of the OS are you running ?

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 14 Nov 2012

 

What OS and version of the OS are you running ?

 Thanks Jay,

 Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-32-generic-pae i686)

This is the setup I followed long ago for this server. It only happens if it is "Forcefully Rebooted"

http://boonexsupport.com/thread-2.html

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 14 Nov 2012

Sure sounds like the RTC battery is gone.  Those things are only good for 10 years tops.  You should probably replace all the on board batteries, regardless of what diagnostics say.   It may not fix your problem, but at least you'll have eliminated batteries as a cause.

My opinions expressed on this site, in no way represent those of Boonex or Boonex employees.
Quote · 14 Nov 2012

 

Sure sounds like the RTC battery is gone.  Those things are only good for 10 years tops.  You should probably replace all the on board batteries, regardless of what diagnostics say.   It may not fix your problem, but at least you'll have eliminated batteries as a cause.

 OK, thanks will do..

ManOfTeal.COM a Proud UNA site, six years running strong!
Quote · 14 Nov 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.