[Answer]-CentOS Server Name does not work

0đź‘Ť

âś…

Looks like a DNS problem, your remote computer cannot resolve nafd to 192.9.200.69. You can check this by running nslookup 192.9.200.69, you probably will not get nafd. As a quick check you can change the remote computer’s hosts file and add 192.9.200.69 nafd at the end, this will hardcode the host name to that IP address. Then restart your browser and try accessing nafd:8001/admin.

This will only make it work in that particular computer, for it to work across all computers in your network you’ll need to set up a DNS server for your network (try these tutorials)

Hope that helps.

👤Yeray Diaz

1đź‘Ť

From the sounds of it here are 3 possible solutions.

DNS or Domain Name Service (or some call it domain name server). The DNS system usually just translates domain name / host names to ip addresses, and depending on your network set up, this may be a bit overkill. Mostly if you don’t have a dedicated DNS server and are using an ISR or something of the like where you can’t manually add a DNS, this would require quite a bit of network reconfiguration.

Netbios/WINS name. Windows by default will attempt communication using WINS/netbios names, however WINS being “Windows Internet Name Service” is not a feature that usually comes with most linux distros. To get this set up, you will need to install Samba and get it set up and opening the needed ports. http://wiki.centos.org/HowTos/SetUpSamba may help you out with this.

Hosts file configuration. It is also possible to get the functionality that you want by manually editing the hosts file of each computer. This would be like putting a manual DNS entry in each computer, and would also require that you make this configuration change for each computer you ever wish to add to the network (if you want to be able to browse by the PC name). in windows 7 the hosts file is located at C:\Windows\System32\drivers\etc\hosts and you would add the line “192.9.200.69 NAFD” to the bottom of the file. You should be able to use notepad, but you may wnat to note, notepad would have to be opened with Admin rights as it is a system file.

Of these 3 options, the one that sounds most like what you want with the least effort, would be setting up the samba service (Netbios/WINS) on the CentOS box.

👤Linx

Leave a comment