Sign up ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

I want all DNS requests that are for *.internalhost to resolve to the same IP address. How is this possible using Ubuntu?

share|improve this question
Do you only need this to happen on one machine, or do you need it to happen for all machines on your local network? – Jim Salter Nov 23 '12 at 23:45
@JimSalter Only on one machine. Thanks. – f.ardelian Nov 24 '12 at 1:43

1 Answer 1

up vote 2 down vote accepted

Try this:

Failing that, set up BIND and create a zone for an "internalhost" TLD with wildcard A record resolution. Which is probably more work than you're looking for. (Wildcard resolution from /etc/hosts, which is probably what you really want, isn't actually possible.)

share|improve this answer
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. – hexafraction Nov 24 '12 at 18:18

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.