LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-22-2008, 10:19 PM   #1
iseeuu
LQ Newbie
 
Registered: Jun 2007
Location: Missouri, USA
Distribution: Debian / Ubuntu / Slackware
Posts: 22

Rep: Reputation: 15
Resolving Intranet Server Name


I'm in way over my head on this project. I think its what I don't know I don't know (not a typo...think about it :})) to the point that I don't know if this can even be done.

I have setup a home network (Debian etch) with a virtual web server for my own web development (using webmin to manage) and practice. The first time I setup webmin (apt-get) I was able to use "https://ServerName:10000/" to gain access to webmin. From then on I have to use my intranet address, you know 192.168.0.?. I liked the "serverName" because my server could get a different address from my router but "serverName" would still go my virtual web server.

Question: Can I create access with the "nameServer" without using a specific IP address, like a static address? If possible, what is the simplest way to do this?

If I could figure out what happens after I restart the computer that prevents the "serverName" from being recognized, I think I could answer my own questions. Just not smart enough.

Cheers :})
 
Old 05-22-2008, 11:05 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
On the machine you are trying to access FROM, edit /etc/hosts and add a line

IP.ADDRESS.GOES.HERE servername

Don't play around with the existing lines

Edit - on reflection, maybe I misread. I think what you need is a DNS (nameserver) talking to your DHCP server (or on the same machine), to keep track of the new IP. If you're DHCP is your router, you may be stuffed. To get around that you may need to set a DNS/DHCP combo up.

A DNS is effictivley and index of names and IPs. Nothing is "stopping" this, you just don't have the indexing working. However, because you're using DHCP, you need the DHCP server to tell the DNS what the IP/Name combinations are when addresses are assigned. That's your problem

Last edited by billymayday; 05-22-2008 at 11:20 PM.
 
Old 05-22-2008, 11:20 PM   #3
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Another thought - your router may allow you to set a fixed IP for a particular machine (by MAC maybe?). This would enable you to use the hosts method I suggested first.
 
Old 05-23-2008, 01:35 PM   #4
iseeuu
LQ Newbie
 
Registered: Jun 2007
Location: Missouri, USA
Distribution: Debian / Ubuntu / Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Billy
Thanks very much for your quick response. I edited 'hosts' but still does not recognize "serverName", only ip address: 192.168.1.?

I did some reading on this forum before I posted. And I installed 'bind dns server' and tried a few things. Dns seems to be overkill for what I want. Everything I could see required an ip address. My router does allow the use of a MAC address for id, but still requires an ip address. Adding the line to the hosts file seemed a really easy solution, I wished it had worked.

Later!
 
Old 06-18-2008, 01:50 PM   #5
iseeuu
LQ Newbie
 
Registered: Jun 2007
Location: Missouri, USA
Distribution: Debian / Ubuntu / Slackware
Posts: 22

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by iseeuu View Post
If I could figure out what happens after I restart the computer that prevents the "serverName" from being recognized, I think I could answer my own questions.
Why are the simple solutions so hard to see? I started setting up a second server box and as usual, tried to uninstall excess baggage. Noticed right after I removed the samba and smb modules that "ServerName" stopped working. Reinstalled modules and no more problem! I believe the root of the issue lies with this being a home network with virtual or test server that doesn't use a dns to resolve names. I wonder if a module or app could be written to mimic a dns in such a test environment?

Many thanks, billymayday!

:})
 
  


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
How to make DNS Server work with intranet with web site on Unbutu Server? explorer1979 Linux - Server 6 04-04-2007 10:50 AM
Trying to setup intranet server sc2sick Linux - Newbie 9 05-10-2006 12:55 PM
Caching DNS server error (lame server resolving) Iggyboo Linux - Networking 1 02-24-2005 03:43 AM
Configure for intranet server screach Linux - Newbie 3 09-08-2004 09:34 AM

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

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