I have only an A record for a domain (the nameserver is somewhere else but they pass me an A record) and I want to point it off my server to a url such as www.example.com/mypage.
Is that possible? If so, how?
I have only an A record for a domain (the nameserver is somewhere else but they pass me an A record) and I want to point it off my server to a url such as www.example.com/mypage.
Is that possible? If so, how?
I believe you're asking if you can, given only the ability to specify the domain name of your host, force a redirect to a particular page on a separate server.
You could do this by running a redirect on your server. Use Apache and mod_rewrite. The docs show you could use the following in your Apache conf:
RewriteEngine On
RewriteRule /.* http://www.example.com/mypage [R]
P.S. In this case the A record is irrelevant. Specify whatever you want. You may have been thinking of CNAME records, I'm not sure; you might want to look them up. In any case, CNAME records and everything else in DNS are only for the part before the /. You would still need a redirect for anything other than the server name.
You can't point DNS to a URL. You can create an A record for the host server but you'll need to do the URL redirection on your web server.
As others have stated, the A record could point to mypage.mydomain.com or to www.mydomain.com or to mydomain.com but it can't point to www.mydomain.com/mypage
The A record will only be able to point to www.example.com or even mypage.example.com, but not www.example.com/mypage.