Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I first installed my CentOS 7 server everything is fine. I can access my shared files on CentOS using windows client via IP Address and HOSTNAME. But I needed to change my CentOS hostname. I did successfully change it, but the problem is: I cannot access my CentOS server via HOSTNAME but it is working via IP Address.
I really need to access my CentOS server via HOSTNAME.
From where do you want to access your CentOS machine.
It is from that origin that you need to ensure the IP can be resolved from the hostname.
The problem should not be in the CentOS machine.
From where do you want to access your CentOS machine.
It is from that origin that you need to ensure the IP can be resolved from the hostname.
The problem should not be in the CentOS machine.
Thank you for your reply tshimanga..
hmm I want to access it in my windows client.
what do you mean "to ensure my IP can be resolved from the hostname?"
[QUOTE=Habitual;5535009]Open C:\Windows\System32\drivers\etc and edit with notepad.
and put the new hostname in there.
Same format as a Linux /etc/hosts file.
Code:
127.0.0.1 localhost
IP <space> newhostname_of_centos_server
Hello Habitual,
It is working, I can access my CentOS server via HOSTNAME using your idea/code. But the problem is I cannot open the shared folder, it prompt PARAMETER INVALID whenever I'm trying to open the shared file. But when I'm accessing it via IP Address I can perfectly Write/Read the shared file.
And another concern. I have atleast 30 client computers do I need to manually edit the hosts file one by one?
Name resolution maps fully qualified names (or just hostnames) to IP addresses, and reversely.
It is known as DNS for Domain Name System.
How is set up your network?
Hello tshikose!
I configured Samba as my Domain Controller (but I'm not yet implemeting it).
My CentOS server is currently a file server. I installed MySql.
Our company is accessing this file via SQL application. And every image that they access has a default file location which is the default location is starting in the server's HOSTNAME thats why I need the server's HOSTNAME working, else I will change the starting default file location into IP Address and that means I will edit thousands of images
I configured Samba as my Domain Controller (but I'm not yet implemeting it).
My CentOS server is currently a file server. I installed MySql.
Our company is accessing this file via SQL application. And every image that they access has a default file location which is the default location is starting in the server's HOSTNAME thats why I need the server's HOSTNAME working, else I will change the starting default file location into IP Address and that means I will edit thousands of images
Thank you very much!
Hi king1806,
I kind of lost this thread and the question you asked to me.
If you are really planning to use your CentOS server as you Domain Controller, I am strongly advising you to also use it central for services such as DNS, DHCP and NTP.
Configured to work together bind and dhcpd can make your resolution problem totally disappear (even for dynamic hosts).
Finally, if possible use CentOS 7, it has better support integration with Microsoft AD.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.