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 got two domains, which are pointing on the same IP address, I can use both to connect to the server or certain port (TeamSpeak), the problem is that I would like the only one domain from those two to be working while connecting to a certain port.

Eg. points at the -- allow connection to the certain port from this domain. points at the -- disallow connection to the port specified above from this domain.

I know this would be possible for the IP addresses, but would it be possible for the domains?

share|improve this question
up vote 0 down vote accepted

On the OS level, no, it's not possible, because firewall is not going to do DNS lookup for every packet, as it would slow the processing down unacceptably. It may however be possible in the application you're using, if it does DNS lookup for each connection and supports connection filtering based on DNS names. It depends on the application.

share|improve this answer
I bet the Teamspeak doesn't allow DNS loopup though. Thank you. – Scott Dec 3 '12 at 16:04

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.