Why do you want to do that? If it is for a 192.168.x.y
it means a private IP on your network so it will depend on how you run your local recursive nameservers (and you will need to do basically what is in Mikhail answer).
If it is for a public IP (what you call the real ip ?) you will need to ask the owner of the IP block in which your IP is, so that he will either, do the reverse resolution for you, or delegate this handling to your nameservers if you have more than one IP address from them and you want to handle the reverse resolution yourself. Hard to help you more without knowing the real IP we are speaking about.