LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   I want to simulate hostnames and ips from my linux machine (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/i-want-to-simulate-hostnames-and-ips-from-my-linux-machine-808549/)

nainesh 05-18-2010 04:05 AM

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.

GlennsPref 05-18-2010 04:23 AM

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

GlennsPref 05-18-2010 04:56 AM

/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

nainesh 05-18-2010 05:19 AM

Quote:

Originally Posted by GlennsPref (Post 3972540)
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.

GlennsPref 05-18-2010 09:12 PM

You're right, I missed the point, sorry.

nainesh 05-26-2010 04:28 AM

Quote:

Originally Posted by GlennsPref (Post 3973478)
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.

GlennsPref 05-26-2010 09:44 PM

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


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