Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 04-27-2013, 09:59 PM   #1
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Rep: Reputation: 34
One ipaddress with two hostnames


How can two hostnames be assigned to a system with one ipaddress & also both the hostnames/ipaddress can be pingable from other system.

Any solution will be appreciated.
Old 04-27-2013, 10:00 PM   #2
Registered: Jun 2009
Distribution: Redhat,CentOS,Ubuntu,Puppet
Posts: 292

Original Poster
Rep: Reputation: 34
Is this can be done through DNS ?
Old 04-27-2013, 10:22 PM   #3
Senior Member
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,192

Rep: Reputation: 340Reputation: 340Reputation: 340Reputation: 340

Look up the various DNS record types, specifically: A, CNAME

"A" is a standard address record, "CNAME" is a "canonical name" record (i.e., an "alias"). Your server should have one "A" record in DNS, and as many "CNAME" records as you require.

Here is some basic info: This is talking about Google stuff, but the descriptions of the DNS record types are useful and simple to understand.

Last edited by haertig; 04-27-2013 at 10:25 PM.
Old 04-28-2013, 06:14 PM   #4
LQ 5k Club
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,570
Blog Entries: 14

Rep: Reputation: Disabled
Shared hosting is a Perfect example of this 1-to-many relationship.


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
IPaddress of wireless pangcake Linux - Newbie 2 07-19-2008 03:49 PM
IPaddress packet xeon123 Linux - Networking 1 03-25-2007 07:01 PM
getting the location through the ipaddress deepclutch Linux - Networking 2 02-11-2007 01:10 AM
ipaddress my program... hegdeshashi Programming 5 07-06-2006 12:11 PM
ipaddress and hostname groverrajiv Linux - Networking 1 04-24-2004 08:29 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:49 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration