I've used IRC for a long time and I've seen people with really unique hostnames. I'm wondering how they are able to have those?

My theory is that one sets up a server as part of the efnet/freenode network and somehow masks his real identity behind that custom server.

Could someone explain layman's terms how this is done?

And on a related note, how easy is it to customize your hostname if you're say, running an irc client on your domain and would like to use your domain name instead of the internal vps address?

Example: if I'm using linode, it'll say I'm member_whatever@members.linode.com as my hostname. I host several sites so I'm pointing a few A records to my server, I want my hostname to be something like 'meder@medero.org' for example, instead of the default linode one.

migrated from serverfault.com Jul 6 '10 at 22:35

This question came from our site for system and network administrators.


There are two types of "vhosts": real and fake.

Real vhosts are usually called "reverse DNS" (also called rDNS)—it's basically a DNS record for your IP address, pointing to some domain name with a PTR record, which is looked up by the server upon connection (be it ircd, httpd, or anything else). This is the "Looking up your hostname..." notice you see immediately after connecting to IRC.

If a user connects from 2001:db8::42, for example, a DNS lookup is performed for If the user connected from, the equivalent DNS name will be The reverse DNS can be changed by whoever controls the IP address block. If you have a single IPv4 address for your home network, you usually have to annoy your ISP to get the rDNS changed.

To avoid spoofing, an ircd (the IRC server program) will compare reverse and forward DNS—that is, it will make sure your rDNS hostname points back to your IP address—before displaying it to other users.

For those who are unable to change their real rDNS, most IRC networks offer "virtual hosts" or "cloaks".

Almost every IRC daemon has the ability to change user's displayed hostname at any time; usually this is restricted to operators, or even to services. For example, with the IRC command /chghost joeuser joes-fake-hostname.net (assuming sufficient privileges).

On most networks this process is automated by services—once an operator assigns you a vhost (cloak), you get it set every time you identify to your services account.

(I'm saying "services", not "NickServ" or "HostServ", because most of the time it is a single program presenting itself as all of the *Servs.)

  • The /chghost command does not work with all IRC clients or servers, FYI, although the commons ones should. – Mistiry Jul 7 '10 at 19:32
  • @Mistiry: That's why I said "most" (it's not a RFC-defined command). As for the client side, some clients reject unrecognized commands instead of passing them directly to the server - in such cases /raw chghost or /quote chghost will surely work. – grawity Jul 8 '10 at 13:11
  • nice explanation. – meder omuraliev Jul 15 '10 at 21:05

If the server is using IRC services (Anope, Atheme, etc.), there is usually a V-Host service, usually named 'HostServ' or a variant thereof.

Most servers running this type of service allow users to specify their own v-host (virtual host).

A typical IRC network consists of several pieces of software working together. First, there is the daemon, which controls connections, binding to specific ports, etc. Most networks run some type of software known as 'services' to handle channel registration, nickname registration, etc.

Part of the most common services software is a service called (usually) HostServ. On the IRC server, do '/whois HostServ' and see if there's a user by that name. You may also want to find a IRC Operator (usually a channel for help) and ask them.


you are trying to use your custom hostname instead of the fixed one. This is possible on some networks and many people contracts some bouncer services to do so.

Since time ago, IRC networks are implementing the "hidden hostname" or "custom vhost" which has two main points: - Hide you real hostname to prevent any DoS/DDoS from anyone to you - Hide spam hostnames

If the network has that policy you cannot do anything. They saves the "real hostname" and the "faked hostname/vhost" on a internal data structure and only propagates the faked one. The real is used when checking bans, k-lines, etc.

Oh! Another line of defense is checking your reverse DNS. If you have an A record pointing to with "test.example.tld" as hostname, "test.example.tld" must resolv to "" using a PTR record. Some servers may deny your connection or kill you if that check is not satisfied.


So you can report your hostname as being anything. But since that is true, pretty much no-one pays attention to that, and instead they reverse-resolve your IP address to a hostname, and use that.

To affect the hostname on these systems, you need to have control over what your IP address reverse resolves to. Typically that means you need to have a very friendly ISP and a static IP address, control over a large block of IP addresses, or...?

Reverse resolution uses the DNS system to resolve IP addresses by first reversing them (placing most significant portion last, as the DNS system does) and tacking on in-addr.arpa to the end before resolving them. Thus becomes Then it is resolved normally to a PTR record pointing to the "correct" hostname.

Of course, the vhost / etc. options are much easier if you have them available.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.