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

I registered a domain name abc.com with godaddy.com and I am hosting a website in Amazon EC2 with Elastic IP

Right now I am forwarding the request to abc.com to ip (browser returns 301)

I want to skip the forwarding part entirely, meaning I want the request to abc.com to hit immediately.

Does this mean I have to setup a DNS (bind9) which has the record that maps abc.com <-> ?

Or is there easier ways to do this (in Ubuntu)?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Yes -- This is the canonical use of DNS. At your DNS provider, create an A record that maps abc.com to e.g.:

abc.com. 43200 IN A

Unless you are running the authoritative nameserver for your domain, this will be managed through a control panel of some sort, otherwise, you will configure BIND yourself (outside the scope of this answer).

Alternatively, you can use the /etc/hosts file on your machine for a temporary fix (while DNS is changed and propagated, as your local DNS server has likely already cached this record).

# /etc/hosts    abc.com alias.for.abc.com another-alias

and so on and so forth.

share|improve this answer
right, there is a control panel where I can specifiy things. –  user32425 Nov 5 '10 at 19:06

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.