Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-27-2010, 08:25 AM   #1
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 { 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 :// 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 08:26 AM.
Old 01-27-2010, 09:01 AM   #2
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.


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

All times are GMT -5. The time now is 04:29 AM.

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