Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-13-2012, 06:05 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 4

Rep: Reputation: Disabled
host file two domain name 1 ip address

Hello, I need to map two domain names to one IP address. Is the host file below correct? Are there any other changes I need to make to the resolve file? localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
Old 11-13-2012, 07:25 PM   #2
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,977
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
That should work (on that one host only though)

Old 11-13-2012, 11:09 PM   #3
LQ Newbie
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Okay thank you I will try it tomorrow.
Old 11-14-2012, 12:14 AM   #4
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Although it might work, it's not quite what you're after.
Code: localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
This needs to be setup on the machines that will connect to the server, not necessarily on the server itself.
Old 11-14-2012, 12:52 AM   #5
LQ Newbie
Registered: Aug 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
I will give that a try Wim, thank you.


dns, hosts, ip address

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to get the ip address of host in linux with using of host and nslookup command hussain.s Linux - General 4 10-23-2010 10:12 PM
[SOLVED] Mails are being received on but not on WhisperiN Linux - Server 5 11-26-2009 11:59 PM
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 06:58 AM
Sendmail sending as, i want it to be from just PlatinumRik Linux - Software 5 10-07-2004 05:32 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration