DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-11-19 13:17:43

shahkb
Member
From: California
Registered: 2007-05-15
Posts: 25

DNS-323 name being reset

Hello DNS323 enthusisasts,

A strange, intermittent issue:

When I boot DNS323, my router shows the correct name in DHCP client table (to whatever I had set in DNS323 box Steup -> device -> Name). But after a few days, I find that I cannot access DNS323 from my windows XP machine. When I check the DHCP client table in my router, the name of the box has been reset to original name "DNS-323"!

What's happening?!!!

Thanks

Offline

 

#2 2007-11-25 23:48:42

shahkb
Member
From: California
Registered: 2007-05-15
Posts: 25

Re: DNS-323 name being reset

Hi All,

Can anyone please help me to diagnose this issue? The server name gets reset to the default "DNS-323" (from "spock") after a few days (as seen on router's DHCP active IP table). When I do 'hostname' on the dns-323, it reports "spock", which is correct. Now I am even more confused. Is it the router or dns-323 that is the problem? I am using Linksys WRT54GS router. When I reset dns-323, the router shows the server name ("spock") correctly for a few days then reverts back to "dns-323". I have the latest firmware on both the router and dns-323.

I did a configuration backup to see what configs dns-323 has. I found 2 strings that have contain server name but both seem to be commented out? It seems user override appears first followed by factory defaults.

I would greatly appreciate any idea on how I can fix this. Thanks. Here is a snippet from backup config file.

Version = v2.5
;CF-SYS-MODEL-STR = "spock"
CF-WEB-IDLE-TIME = "30"
CF-IP-DHCP-ENABLE = "1"
CF-IP-STATIC-IP = "192.168.1.100"
CF-IP-STATIC-IP-NETMASK = "255.255.255.0"
CF-IP-STATIC-IP-GATEWAY = "192.168.1.1"
.
.
.
deleted
.
.
;CF-SYS-MODEL-STR = "DNS-323"
CF-WEB-IDLE-TIME = "10"
CF-IP-DHCP-ENABLE = "1"
CF-IP-STATIC-IP = "192.168.0.32"
CF-IP-STATIC-IP-NETMASK = "255.255.255.0"
CF-IP-STATIC-IP-GATEWAY = "192.168.0.1"

Offline

 

#3 2007-11-26 01:27:47

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: DNS-323 name being reset

The hostname for the DNS-323 is set by the startup script /etc/rc.d/rc.init.sh

This script 'rc.init.sh' is created (I think?) by the web GUI and stored in flash
memory. The /etc/rc.sh script copies 'rc.init.sh' out of flash memory to hard
drive and executes the 'rc.init.sh' script.

If you have telnet enabled (Fonz's fun_plug) you can inspect the /etc/rc.d/rc.init.sh script

Here is what my 'rc.init.sh' looks like: (I use a static IP address)

Code:

#!/bin/sh

/sbin/ifconfig egiga0 192.168.1.11  netmask 255.255.255.0
route add default gw 192.168.1.1
HOSTNAME='olympus'
echo "Setting hostname .... $HOSTNAME"
/bin/hostname $HOSTNAME

DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#4 2007-11-27 08:23:15

shahkb
Member
From: California
Registered: 2007-05-15
Posts: 25

Re: DNS-323 name being reset

Thanks for the tip.

I already have fonz's fun_plug. I will try your suggestion. Thanks again.

Offline

 

#5 2007-11-27 10:30:47

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: DNS-323 name being reset

There is one more place you should check to see if the hostname is correct.
In the file /etc/samba/smb.conf there is a line that begins with netbios name =
that should be set to 'spock'

Here is the beginning of my smb.conf

Code:

# cat /etc/samba/smb.conf
[ global ]
client code page = 850
character set = 850
workgroup = mignet
netbios name = olympus
server string = DNS-323 %v
hosts allow =
...

DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#6 2007-12-16 23:55:15

shahkb
Member
From: California
Registered: 2007-05-15
Posts: 25

Re: DNS-323 name being reset

Thank you all. I did all that has been suggested so far - but still the same intermittent problem.

Now, I am using static IP instead of router issues dynamic IP - so things are little better. With one XP computer I am always able to acces my box - but with another XP machine, I still have problems when I try to access share using name. Instead, I use the static IP which works fine. I guess I just have to live with this workaround.

Thanks again.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB