Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm used to use /etc/hosts to fake "example.com" or other domains to point to my local web servers to make tests.

I'm trying to do some filtering tests on a multi-domain postfix and I need to fake several domain names to check how it responds without touching the real thing.

Is possible to do so, in a easy way, to make configuration test with a local mail server?

If it is not as easy tell me how to do it also :)

share|improve this question
add comment

1 Answer 1

up vote 5 down vote accepted

Set up a local DNS server that hosts a few sample domains (nonexistant in reality), complete with MX records and all. Then create a group of test mail servers with addresses as listed in the test domains.

If you know DNS etc., it's really easy.

share|improve this answer
    
Yeah, that will be the standard way to do so. I only was wondering if there's an easy way that doesn't involve a DNS server a'la /etc/hosts file –  theist Jul 19 '11 at 18:07
add comment

Your Answer

 
discard

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.