LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2010, 07:25 AM   #1
akash_softnotions
LQ Newbie
 
Registered: Oct 2009
Posts: 23

Rep: Reputation: 0
Calling an ip address by a name "DNS"


Hi all,
we are running a small LAN in my office. here we are using ftp along with ip address {ftp://192.168.0.xxx) to access the data which have to be transfered in our LAN.How can i change the method of calling IP address to a domain name like http/ftp ://example.com. Which are the configuration file changes that i have change to attain this.
Pls help me

Last edited by akash_softnotions; 01-27-2010 at 07:26 AM.
 
Old 01-27-2010, 08:01 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you accessing your FTP server from inside the LAN or from the internet? Do you have a fixed IP address and a registered domain name? If so, you don't need to configure anything. Just use ftp://<yourdomianname>.

If inside the LAN and you aren't running a DNS server, you could add an entry into the computers /etc/hosts file. Windows computers also have a hosts file.

Since you have a small LAN, you might consider installing the "dnsmasq" package. It uses it's own hosts file to provide LAN hostname/IP mappings. For external dns requests, it passes the request on to your ISPs dns server.

Another option is to use avahi. It is Linux's implementation of zeroconf in MS or Bonjour in Apple. You could use the address <hostname.local>.

At home, I use hosts files for this. It is quicker. I also use my routers dhcp server, and added static MAC to IP mappings in the routers configuration. If I need to reset the router, the IP addresses for all of my computers stay the same, so I don't need to edit all of my hosts files.
 
  


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
Occasionally-- "connected with self-assigned address," "deactivating device eth0" MaxIBoy Debian 4 10-04-2009 10:50 AM
ns:"error when calling class OldSim"&tclsh:"invalid command+child process exits abn." shojaru Linux - Newbie 0 03-05-2009 04:23 AM
odd recursion: calling "by hand" vs calling by cronscript... prx Programming 4 02-12-2005 04:59 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"host" ok, but "ping" can't find ip address hardigunawan Linux - Networking 2 05-16-2002 05:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:33 AM.

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