sshum
03-22-2008, 09:06 AM
Hello,
I need a little help. I need to set up a kind of 'Parking Page'
I have a VPS and I have set one of my IPs to show a single page.
Now what I want is so I can change any domain's nameserver to ns1.mydomain.com and then the domain will either display that page or redirect to the IP address. (With out me adding that domain to the DNS)
A little bit like if you have a cPanel server and dont set up an account, it will show that cPanel/Apache page.
I do not have any DNS service installed, but I could install BIND or another one if I need to.
I have CentOS too
Thanks for any help!
-Stu
Well, you can do it either or, but not both.
For example, if you want to use your ns1.YOURDOMAIN.com, you must have BIND on your VPS so that you can add the domain.
If you dont want to use BIND on your VPS, you need to use your registrar's nameservers ns1.YOURREGISTRARDNS.com and then either change the A record of the domain to your VPS IP or use the domain forwarding option and forward it to the VPS IP. If you dont want people to "see" so to speak the IP then just use the A record method.
sshum
03-22-2008, 08:23 PM
Thanks, but i want it for Any domains with out adding an A record to the DNS.
I want to know how to do that.
ebay-nut
03-22-2008, 09:16 PM
Thanks, but i want it for Any domains with out adding an A record to the DNS.
I want to know how to do that.
Has to be a nameserver somewhere directing the domain to that IP. Either @ the server or from the registrar, or even from a third party. ISPs will look @ the root tld for the nameservers for the domain name, if no nameservers or A records are set for the domain it's just going to return an error.
ebay-nut
03-22-2008, 09:20 PM
You may possibly be able to forward any domain calling up a certain nameserver to your page by setting a wild card A record, at the nameserver I'm not sure if this is possible or not but maybe worth looking into.
Thanks, but i want it for Any domains with out adding an A record to the DNS.
I want to know how to do that.
You need the A record somewhere. Whether it'd be at your registrar's DNS or your VPS DNS. If you do not want to deal with DNS in anyway, the best thing to do is to use your registrar's nameservers and just redirect the domain to the IP of the parked page. Depending on your registrar, they might offer you a frame redirection method.
sshum
03-23-2008, 06:32 AM
I have installed BIND on my vps, but can't seem to get it working.
I have looked at wildcard A record thanks,
I just need to get BIND working then ill try soing the wildcard.
Thanks!
what do you mean BIND is not working? did the installation go through successfully? If so, did it start?
Run the command "pstree" and see if you can see "named".
sshum
03-24-2008, 09:39 AM
I did
yum install bind
and to start it i did
'#service named start
Starting named: [FAILED]'
and it doesn't show any errors or anything.
And named isnt in pstree
Hmmm...do you remember if it said the installation was successful at the end?
I would recommend paying someone, like 10 bucks, and they could do it for you. Also ask them to include the records you want.