Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-01-2014, 03:44 PM
|
#1
|
LQ Newbie
Registered: Jul 2011
Posts: 6
Rep:
|
Changing intranet ip to hostname local.local
We have a Centos intranet ( small business ) server and i was wondering if there was possible to access it like typing to the browser something.local ? DNS is not enabled on the server ? could that be the problem ? if anyone know could you please teach me how i could change it . semi novice here
Thank you for all the help..
|
|
|
05-01-2014, 03:49 PM
|
#2
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
|
You either need to set up a DNS server or add the entry in your client's "/etc/hosts" file
|
|
|
05-01-2014, 03:50 PM
|
#3
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
You could add something.local to your windows hosts file.
@ \windows\system32\drivers\etc\hosts
Or you can set up a simple DNS server on your centos box and point your workstations to it. Dnsmasq is easy for this.
|
|
|
05-01-2014, 03:55 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
Computers work using IP addresses, not names. When you type in a name the OS needs help to map this back to an IP address. The first thing the computer will check is its local hosts file, to see if the name you typed has an entry. If it does, you're golden, if it doesn't, then the next thing the computer does is ask its DNS server to interpret the name.
So, you have two places you can add this entry:
1) the hosts file on the machine
2) the DNS server that the machine is using for name resolution
If you run your own local DNS server, then #2 would probably be the easiest option. If you're using a public DNS, eg: openDNS, google, or the DNS server(s) from your ISP, then you'll need to use #1, and add an entry in the hosts file of every machine you want to do this on.
|
|
|
05-01-2014, 04:21 PM
|
#5
|
LQ Newbie
Registered: Jul 2011
Posts: 6
Original Poster
Rep:
|
well this is on a intranet local network and they have dns running but i have set up a few server and all using dhcp with no problem and hostname resolve to correct hostname so this puzzels me but i did not set up the server so maby that could also be the problem
|
|
|
05-01-2014, 04:24 PM
|
#6
|
Senior Member
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278
|
If what you say is true, then you are likely using dynamic dns to send the hostname to the dns server. You will want to make sure your configuration is correct for that to work.
I forget exactly how to do it, but google turned this up:
https://www.centos.org/forums/viewtopic.php?t=27039
|
|
|
05-01-2014, 07:48 PM
|
#7
|
LQ Newbie
Registered: Jul 2011
Posts: 6
Original Poster
Rep:
|
Well i will try something out.. and meanwhile thank you all for the help and if you know of anything else that might help please do tell ..
|
|
|
All times are GMT -5. The time now is 08:37 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|