Jump to content

unraid rc12a - unable to access server by hostname


Recommended Posts

started unraid box, array is not currently started

 

/boot/config# more network.cfg 
# Generated settings:
USE_DHCP="no"
IPADDR="192.168.0.11"
NETMASK="255.255.255.0"
GATEWAY="192.168.0.1"
DHCP_KEEPRESOLV="no"
DNS_SERVER1="192.168.0.1"
DNS_SERVER2=""
DNS_SERVER3=""

/boot/config# ifconfig
eth0      Link encap:Ethernet  HWaddr d4:3d:7e:4d:e4:89  
          inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2097 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1695 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2370264 (2.2 MiB)  TX bytes:293170 (286.2 KiB)
          Interrupt:43 Base address:0xa000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:13 errors:0 dropped:0 overruns:0 frame:0
          TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:846 (846.0 B)  TX bytes:846 (846.0 B)

 

on win7 box thats connected to the same network,

C:\Windows\System32>ipconfig /flushdns

Windows IP Configuration

Successfully flushed the DNS Resolver Cache.

C:\Windows\System32>nbtstat -R
    Successful purge and preload of the NBT Remote Cache Name Table.

C:\Windows\System32>nslookup husky
1.0.168.192.in-addr.arpa
        primary name server = localhost
        responsible mail addr = nobody.invalid
        serial  = 1
        refresh = 600 (10 mins)
        retry   = 1200 (20 mins)
        expire  = 604800 (7 days)
        default TTL = 10800 (3 hours)
Server:  UnKnown
Address:  192.168.0.1

*** UnKnown can't find husky: Non-existent domain

C:\Windows\System32>ping 192.168.0.11

Pinging 192.168.0.11 with 32 bytes of data:
Reply from 192.168.0.11: bytes=32 time<1ms TTL=64
Reply from 192.168.0.11: bytes=32 time<1ms TTL=64

Ping statistics for 192.168.0.11:
    Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 0ms, Maximum = 0ms, Average = 0ms
Control-C
^C
C:\Windows\System32>tracert 192.168.0.11

Tracing route to 192.168.0.11 over a maximum of 30 hops

  1    <1 ms    <1 ms    <1 ms  192.168.0.11

Trace complete.

 

Link to comment

tried switching unraid to use DHCP but still no change. tried switching back to rc11 (reverted network.cfg -- back to static ip) still same problem.

Do you have the unRAID server set to be the "Local Master" under Settings->SMB ?

 

If not, set it to "Local Master" = "Yes"

 

Joe L.

Link to comment

tried switching unraid to use DHCP but still no change. tried switching back to rc11 (reverted network.cfg -- back to static ip) still same problem.

Do you have the unRAID server set to be the "Local Master" under Settings->SMB ?

 

If not, set it to "Local Master" = "Yes"

 

Joe L.

 

Reverted back to rc11 like I mentioned earlier. Tried both use dhcp and not.

Running ipconfig /flushdns and nbtstat -R to just be certain between all config changes.

Tried setting 'Local Master' to yes (restarted server) and still no change. Tried using dhcp and not.

 

No matter what it appears I just can not get to the unraid box with the hostname.. just ip address.

 

Guess I will just have to resort doing a hosts entry for any computer I want to access the webui with.

Only reason I even notice this problem is that unmenu links always use the hostname (even if you navigate to it using the ip address)

http://lime-technology.com/wiki/index.php/Troubleshooting#Name_Resolution

 

If I start the array.. then the SMB shares work just fine using the hostname.

 

Link to comment

talked to someone that knows about linux, he says the problem is that im relying on samba to resolve the host name, if the array is stopped and smbd/nmbd isn't running, it's not going to work.

 

so set it to use dhcp for ip and dns. set local master to no. rebooted box. logged into the box, checked for smbd, nothing:

root@husky:/var/log# ps -ef | grep smb
root      3873  3022  0 23:06 pts/0    00:00:00 grep smb

 

started array, now i see:

root@husky:/var/log# ps -ef | grep smb
root      4035     1  0 23:08 ?        00:00:00 /usr/sbin/smbd -D
root      4041  4035  0 23:08 ?        00:00:00 /usr/sbin/smbd -D
root      4052  3022  0 23:08 pts/0    00:00:00 grep smb

 

sure enough now net view shows the box and I can get to it via the hostname on the network.

so it just appears that if the array is not running i cant get to the array via hostname.. only ip.

 

Link to comment

no such thing as a 'dns section' in any of the areas I see. its fine, its just as i suspected.. if the array isnt started i have to use the ip address not the hostname because i rely on samba. ill just use the hosts hack for the one computer i care to mess with the unraid box..

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...