|
List Info
Thread: Irssi IP/Hostname question
|
|
| Irssi IP/Hostname question |
  Switzerland |
2007-04-19 14:44:37 |
Hi there
I'm using Irssi since a few days and I feel lucky with it. I
run it on
my dedicated SuSE server in conjunction with the great
GNU/screen. So
when I'm connected to a IRC server, the /whois command gives
me back
something like that:
21:39 -!- herr_schnegg [herr_schnegg xxx.xxx.xxx.xxx]
(cut)
Is it possible to show just the hostname of my dedicated
server? When
I'm connected using my desktop pc, /whois gives me back the
hostname,
such as, herr_schnegg blabla.provider.tdl
Thank you for your comments!
Daniel
|
|
| Re: Irssi IP/Hostname question |
  Netherlands |
2007-04-19 14:55:07 |
Quoting Herr Schnegg (herr.schnegg gmail.com):
> 21:39 -!- herr_schnegg [herr_schnegg xxx.xxx.xxx.xxx]
> Is it possible to show just the hostname of my
dedicated server?
irssi can use any non-rfc1918 (that is 192.168.x.x,
172.16.x.x,
10.x.x.x, etc) ip that is configured on your machine, and it
will use
the reverse configured for that ip address.
see the -h parameter to irssi, and/or see the /help for
/connect,
/server and /network.
if the ip address you'd like to use is not configured on the
machine you
are running irssi on, you can't make irssi use that
hostname, as this is
not controlled by irssi, but by the irc servers, which
reverse the IP
address the connection is comming from.
> When I'm connected using my desktop pc, /whois gives me
back the
> hostname, such as, herr_schnegg blabla.provider.tdl
That would be because your dedicated server has another IP
address and
another reverse than your desktop pc at home.
HTH,
Sander.
--
| Caterpallor (n.): The color you turn after finding half a
worm in the
| fruit you're eating.
| 1024D/08CEC94D - 34B3 3314 B146 E13C 70C8 9BDB D463 7E41
08CE C94D
|
|
| Re: Irssi IP/Hostname question |
  Sweden |
2007-04-19 14:50:54 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello!
Herr Schnegg wrote:
> Is it possible to show just the hostname of my
dedicated server? When
> I'm connected using my desktop pc, /whois gives me back
the hostname,
> such as, herr_schnegg blabla.provider.tdl
Yes it is, but for that you need to have a PTR in a DNS that
points that
ip to a hostname. Generally, this is done by your ISP.
Regards,
- --
.''`. Torbjörn Svensson, azoff (at) se (dot) linux (dot)
org
: :' : 7EB9 2DC5 61AE DAB5 7099 BAC6 798E E39A DBDB 0CFD
`. `' http://www.azoff.se | http://dev.azoff.se
`-- http://se.linux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGJ8gdeY7jmtvbDP0RAlVeAJ4qU+bHjP4G3rFxYm9PkTIRvsOp8gCg
stWN
Rj6qRVNF3X67H5+AqNySsvE=
=mcid
-----END PGP SIGNATURE-----
|
|
| Re: Irssi IP/Hostname question |
  Switzerland |
2007-04-19 15:20:24 |
Hi Sander
On Thu, 2007-04-19 at 21:55 +0200, Sander Smeenk wrote:
> irssi can use any non-rfc1918 (that is 192.168.x.x,
172.16.x.x,
> 10.x.x.x, etc) ip that is configured on your machine,
and it will use
> the reverse configured for that ip address.
I used yast to configure the hostname for my public ip
address. one of
the entries is:
127.0.0.1 localhost
now I created another with my public ip address (the same as
/whois
gives back), mydomain.tdl as Host Name and also mydomain.tdl
as host
alias.
Is that correct?
Now I started irssi by using the following command:
irssi --hostname=mydomain.tdl --nick=herr_schnegg
--connect=myircserver
but /whois nevertheless gives back my public ip.
|
|
| Re: Irssi IP/Hostname question |
  Netherlands |
2007-04-19 15:30:10 |
Quoting Herr Schnegg (herr.schnegg gmail.com):
> I used yast to configure the hostname for my public ip
address. one of
> the entries is: 127.0.0.1 localhost now I created
another with my
> public ip address (the same as /whois gives back),
mydomain.tdl as
> Host Name and also mydomain.tdl as host alias. Is that
correct?
That is correct, but this only sets the name for your local
system when
it does lookups. This setting does *NOT* affect how the
other hosts on
the internet see your 'hostname'. Read below.
> Now I started irssi by using the following command:
> irssi --hostname=mydomain.tdl --nick=herr_schnegg
--connect=myircserver
> but /whois nevertheless gives back my public ip.
Ok. Your internet connection as a public IP address, say
111.112.113.114. This IP address is provided by your ISP.
The IP
address has a reverse (that is, a hostname, say
111-112-113-114.dsl.isp.net). This 'reverse' is configured
by your ISP.
When you connect to an IRC server (like IRCnet, Undernet,
Efnet, etc),
the IRC server only sees a connection comin from
'111.112.113.114'.
Internet works with IP addresses, hostnames are invented
because people
were too dumb to remember all those ip-addresses.
So when you connect to a server, it sees your IP address and
looks up
what name belongs to that IP address. This name is the
reverse
(hostname) your ISP has configured for that IP.
There is *no* way you can change this reverse name
*yourself* if the
IP-space is not maintained / configured by you. You might
try asking
your ISP, but the chances they'll change the name are slim.
I hope my story is clear ;)
--
| $ perl -e 'length q bless glob and print chr oct ord q
mkdir m and print
| chr ord q xor x and print chr ord q q q and print chr ord
uc q map m and
| print chr ord q qw q and print chr ord q each le and print
chr ord q my
| alarm and print chr oct oct ord uc qw q for q' - Don't
you LOVE perl?
|
|
| Re: Irssi IP/Hostname question |
  Switzerland |
2007-04-20 00:24:41 |
On Thu, 2007-04-19 at 21:50 +0200, Torbjörn Svensson
wrote:
> Yes it is, but for that you need to have a PTR in a DNS
that points that
> ip to a hostname. Generally, this is done by your ISP.
Thank you!
|
|
[1-6]
|
|