LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-01-2014, 03:44 PM   #1
Cobro
LQ Newbie
 
Registered: Jul 2011
Posts: 6

Rep: Reputation: Disabled
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..
 
Old 05-01-2014, 03:49 PM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
You either need to set up a DNS server or add the entry in your client's "/etc/hosts" file
 
Old 05-01-2014, 03:50 PM   #3
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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.
 
Old 05-01-2014, 03:55 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143Reputation: 2143
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.
 
Old 05-01-2014, 04:21 PM   #5
Cobro
LQ Newbie
 
Registered: Jul 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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
 
Old 05-01-2014, 04:24 PM   #6
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,278

Rep: Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694Reputation: 1694
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
 
Old 05-01-2014, 07:48 PM   #7
Cobro
LQ Newbie
 
Registered: Jul 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
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 ..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix problem on local intranet Phaethar Linux - Server 1 05-30-2007 07:13 PM
directing HTTP traffic to local intranet kennmurrah Linux - Networking 6 01-27-2007 12:44 PM
ping: unknown host in local intranet linuxjustin Linux - Networking 3 04-04-2004 03:03 PM
I can't get my Website to work on my local intranet. tivoli pete Linux - Newbie 9 10-13-2003 04:23 PM
Using Konqueror to Browse Local Intranet sacants Linux - Newbie 1 02-21-2003 07:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration