LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 05-18-2010, 04:05 AM   #1
nainesh
LQ Newbie
 
Registered: May 2010
Location: Ahmedabad-Gujarat
Distribution: Fedora
Posts: 27

Rep: Reputation: 0
Question I want to simulate hostnames and ips from my linux machine


I want to simulate or make virtual hostnames & ips for winbind service to login in ADS from my one linux machine to ADS Server. So, Please if any one have this like tool, please provide me.Thanks in advance.
 
Old 05-18-2010, 04:23 AM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Smile

Quote:
Hi, Welcome to LQ!

LQ has a fantastic search function that may save you time waiting for an answer to a popular question.

With over 3 million posts to search it's possible the answer has been given.
you may be able to set hostnames in various ways, I am by no means a network engineer, but I have found...

editing the /etc/hosts text file, see 'man hosts' for the man page (may require root priv, use su or sudo),

the file it'self my contain some config help.

host.allow and host.deny work with this file.

Another way is to name the kernel build for each machine with the kernel name modified to reflect the host machine/system.

first few lines of /usr/src/linux/Makefile
Code:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 32
EXTRAVERSION = .3-2mnbGamesBox
NAME = GamesBox.GlennsPref.net
uname -a
Code:
Linux GamesBox.GlennsPref.net 2.6.32.3-2mnbGamesBox #4 SMP 
Sat May 8 12:55:56 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
Another more direct way is to use the /network-settings/ip-settings/ "search domain" to your desired hostname.

like,
MusicBox.GlennsPref.net
GamesBox.GlennsPref.net
GateBox.GlennsPref.net

I do this on my machines, and always know which machine I am talking to.

a site I have found useful...
http://www.linuxhomenetworking.com/

hope this helps, Glenn

Last edited by GlennsPref; 05-18-2010 at 04:25 AM. Reason: spelling
 
Old 05-18-2010, 04:56 AM   #3
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
/etc/hosts.allow
Code:
#
# hosts.allow	This file describes the names of the hosts which are
#		allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
192.168.0.2	GamesBox.GlennsPref.net GamesBox
127.0.0.1	GamesBox.GlennsPref.net GamesBox Localhost
192.168.1.0	tp-link computer
ALL:	GamesBox.GlennsPref.net
ALL:	localhost
ALL:	GlennsPref.net
/etc/hosts.deny
Code:
#
# hosts.deny	This file describes the names of the hosts which are
#		*not* allowed to use the local INET services, as decided
#		by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!
ALL:	ALL
That's all I know about it.

Regards Glenn
 
Old 05-18-2010, 05:19 AM   #4
nainesh
LQ Newbie
 
Registered: May 2010
Location: Ahmedabad-Gujarat
Distribution: Fedora
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
you may be able to set hostnames in various ways, I am by no means a network engineer, but I have found...

editing the /etc/hosts text file, see 'man hosts' for the man page (may require root priv, use su or sudo),

the file it'self my contain some config help.

host.allow and host.deny work with this file.

Another way is to name the kernel build for each machine with the kernel name modified to reflect the host machine/system.

first few lines of /usr/src/linux/Makefile
Code:
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 32
EXTRAVERSION = .3-2mnbGamesBox
NAME = GamesBox.GlennsPref.net
uname -a
Code:
Linux GamesBox.GlennsPref.net 2.6.32.3-2mnbGamesBox #4 SMP 
Sat May 8 12:55:56 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
Another more direct way is to use the /network-settings/ip-settings/ "search domain" to your desired hostname.

like,
MusicBox.GlennsPref.net
GamesBox.GlennsPref.net
GateBox.GlennsPref.net

I do this on my machines, and always know which machine I am talking to.

a site I have found useful...
http://www.linuxhomenetworking.com/

hope this helps, Glenn
Dear Glenn
Thanks for reply. But you are not getting me clearly. i would get the tool or trick to simulate the machine for ADS domain controller as new domain. means ADS seems it like another host & user.and make session entry for different hostname & user.
 
Old 05-18-2010, 09:12 PM   #5
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
You're right, I missed the point, sorry.
 
Old 05-26-2010, 04:28 AM   #6
nainesh
LQ Newbie
 
Registered: May 2010
Location: Ahmedabad-Gujarat
Distribution: Fedora
Posts: 27

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by GlennsPref View Post
You're right, I missed the point, sorry.
hi glenn have u find any solution ? if it is please guide me. it will be to much help full to me.
 
Old 05-26-2010, 09:44 PM   #7
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,654
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
No!

I suggest look up masquerade, but I'm not sure this is what you mean.

"Masquerading ip addresses with squid and iptables."

Regards Glenn
 
  


Reply


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
Want different hostnames and IPs for PCs booting from 1 nfs goillini Linux - Networking 3 12-25-2008 11:32 PM
ssh using hostnames, not IPs shanenin Linux - Networking 3 04-11-2005 12:39 PM
howto block IPs from my machine totaly w0lv3rin3 Linux - Software 4 02-22-2005 06:49 PM
IPCop : Limit incoming traffic to selected IPs and hostnames lothario Linux - Networking 0 01-28-2005 06:35 PM
Can ping MyDNS1.FQDN and IPs but no other hostnames? leecason Linux - Networking 3 10-06-2003 03:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

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