LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2011, 03:53 AM   #1
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
DNS and lan application problem.


Hi,

i am new to dns server configuration on linux so i have a little problem with my lan application..

i am working with SUSE SLE distribution 10.2 and 11
i have a lan application say CRS at my server ip say 10.0.0.1
what i am doing now is accessing my lan application by typing
10.0.0.1/CRS on browser and what i want is to run it with a domain name locally on my lan say "myapp/CRS " on my browser

can i have some help here ...anyone ...thnx in advance.
 
Old 11-10-2011, 04:15 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hello,

The easiest way to do that is to edit the file /etc/hosts in the client computer (the computer you're using to access your app) and add
Code:
10.0.0.1  myapp
Regards
 
Old 11-10-2011, 07:00 AM   #3
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
make a entry in hosts
vi /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
xx.xx.xx.xx mail.mailers.in mail
~
 
Old 11-17-2011, 05:29 AM   #4
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
nice suggestion guys but the thing is i already made this entry in /etc/hosts but still when i try to access it from my lan as myapp/crs....it redirects to the search engine ...
 
Old 11-17-2011, 06:38 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Originally Posted by SAbhi View Post
nice suggestion guys but the thing is i already made this entry in /etc/hosts but still when i try to access it from my lan as myapp/crs....it redirects to the search engine ...
What browser are you using?
AFAIK IE does this, while Firefox does not care. Anyway you can write http://myapp/crs (add the http://) in your browser address bar and see what you get

Regards
 
Old 11-17-2011, 11:56 PM   #6
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
I am using Suse linux Enterprise server 10.2 and suse linux enterprise desktops having firefox as a default browser and the baove said problem is coming in firefox ...what actually i want to rectify...
 
Old 11-18-2011, 12:48 AM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
It should work.
Are you sure that host myapp resolves to the correct IP? Check with:
Code:
ping myapp
that you get a response from 10.0.0.1
 
Old 11-18-2011, 02:03 AM   #8
jsaravana87
Member
 
Registered: Aug 2011
Location: Chennai,India
Distribution: Redhat,Centos,Ubuntu,Dedian
Posts: 558
Blog Entries: 5

Rep: Reputation: Disabled
Hi
disable any proxy setting u have in firefox i thing so change it to no proxy setting and try once again
 
Old 11-19-2011, 04:01 AM   #9
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
yes its pinging....
well i some how managed to do that..
but still i have a question can there be a way so that i dont have to add hosts on my lan individually ...i mean it will automatically take the DNS information through server ....

admin may mark this post as SOLVED.

kindly also consider answering my above question.
 
Old 11-19-2011, 02:54 PM   #10
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Glad to see it's working now. You should give more details about what have you done to make it work.
Quote:
but still i have a question can there be a way so that i dont have to add hosts on my lan individually ...i mean it will automatically take the DNS information through server ....
For this you indeed need to setup a dns server, but you also need to use a domain name (eg. .local) and make sure your clients are using that dns for name resolution. In this case your box will be called myapp.local and adding in the /etc/resolv.conf of clients the following
Code:
domain .local
nameserver 10.0.0.1
will allow them to resolve both myapp.local and plain myapp hostnames.
Since you're running Suse this could be of help

Quote:
admin may mark this post as SOLVED.
You should mark the thread SOLVED using the "Thread Tools" on top of the page

Regards
 
Old 11-21-2011, 12:43 AM   #11
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Original Poster
Rep: Reputation: Disabled
thnx Bathory you helped a lot....it solves my prob....
 
  


Reply



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
DNS Server WAN-LAN connection problem DKLeader Linux - Newbie 3 10-08-2009 04:59 PM
DNS problem on system connected to LAN using fedora 10 pavan6754 Linux - Networking 3 06-29-2009 04:01 AM
dns problem in lan cnhawk386 Linux - Networking 4 10-15-2007 06:05 PM
DNS Problem - Can't resolve LAN IP's to names crazee64 Linux - Networking 3 07-12-2006 04:26 PM
DNS is used for which application in LAN ? emailssent Linux - Networking 5 10-13-2004 12:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:05 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