Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i'm searching 2 days for this question, and i can't resolv this.

I have a debian, BIND9 server running, so i create a zone for example and point the domain to my server /var/www/site. the domain have an external IP like, when i create a zone for this domain, i use my server ip, but when i use the dns on my pc, and ping ,sure, it's return my server ip,

i would like to know, it's possible point the "external ip" of to my server, so when im using the dns on pc and ping, returns the real ip, and dont show my server ip? resolving the ip on my server?


share|improve this question
What have you tried? – Michael Hampton Feb 26 '13 at 23:16
IP MY SERVER: IP i created a zone on my server, with A record to 100.100.100, ok, its working, when i access trought dns using other pc, i go to somewebsite with ip But i need to point the A record to, so when clients request for be redirected to my server but with ip, i want my server supose to have this ip on localhost or something like it – Fred Leuic Feb 28 '13 at 18:40

I'm not sure if you're hosting your own name server or if you're talking about managing an internal DNS server. Regardless, the answer is the same. Create an A record for and point it to your public IP.

Note: depending on your routing on your network, you may not be hitting the server when you ping or try to access it via browser; especially if you are behind a router. You will need to open your firewall and forward port 80 to your web server as well.

share|improve this answer
hi, thanks for reply. I'm managing an dns server. If i create an A Record for to point to my server ip example, when i'm using my own dns, and ping will show my server ip . I would like i'ts return (the real ip). I want to create A Record for and POINT to real ip, i need some route code, im trying with rinetd, to redirect my clients traffic queries of the real ip to my server. – Fred Leuic Feb 27 '13 at 13:48
dnsmasq can do the trick? – Fred Leuic Feb 27 '13 at 15:10
If you have your DNS A record for set to, when you ping, it will ping It doesn't make sense to set it to if you want it to point to Are you wanting the DNS A record for to point to, but when people ping, responds? That's not how DNS is meant to work... – CIA Feb 27 '13 at 17:54
If you want to keep the A record pointed to, so all public users who ping get, but for whatever reason you want to ping instead from only your computer, you can edit your host file for you computer and make a manual entry there. On Linux: /etc/hosts. On Windows: c:\windows\system32\drivers\etc\hosts. – CIA Feb 27 '13 at 17:59
I cant edit host pc by pc, there's a lot of pcs... i need route the query's traffic under to local, like creating a fake local interface with this ip, or something, because the clients ask to my dns the ip of and i want return the real ip, but route users to my server. – Fred Leuic Feb 27 '13 at 19:08

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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