LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 05-15-2018, 10:52 AM   #1
king dev
LQ Newbie
 
Registered: May 2018
Posts: 4

Rep: Reputation: Disabled
Creating Parking Page through Name servers


Hello,

i want to create a DNS server to host all expired domain names with Custom Page.

So when domain expire, the DNS change to expired1.exemple.com, expired2.exemple.com

the server who host those DNS will show a Custom Page created by me.

Do you have an idea how to do that.
 
Old 05-15-2018, 01:24 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Custom Page implies a web server not a DNS server (though they can be on the same server).

If it is an "expired" domain it won't matter if you have a page for it as no traffic would go to it since it would no longer resolve to your DNS server after the root servers no longer see it as valid.

Most of the Registrars DO point to an expiration page for a short period of time after registration expires to give you a grace period to renew the registration but prevent traffic from going to your real web page during that grace period.
 
Old 05-15-2018, 01:29 PM   #3
king dev
LQ Newbie
 
Registered: May 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
i'am a cctld registrar, all of our domains remains active for 30 days.

Do you have an idea to do that:

every domain point to expired1.myvompany.com, expired2.myvompany.com will show the custom page
 
Old 05-15-2018, 02:16 PM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
We aren't a Registrar.

What I have seen Registrars do when we allow domains to expire is they change the name servers of the domain to something like:
ns1.pendingdeletion.com & ns2.pendingdeletion.com or if parked to ns1.parked.com and ns2.parked.com. I imagine that is simpler than changing other records. What they do behind the scenes after changing the Name Servers I can't say.

You could just set up an alias zone file then update your named.conf on those servers to add each of the zones to that alias zone. In the alias zone file you could have it point to a single IP then insure your web server accepts all the zone URLs (e.g. expirezone1.example.com, expiredzone2.example.com etc... along with www for each.

So for BIND DNS servers (I set name of domain YOU use to expiredzones.com - you would of course change it to the real zone
you use and edit the name servers and MX (if desired) accordingly.)

Zone file expiredzone-aliases:
Code:
@               IN SOA  ns1.expiredzones.com. admin.expiredzones.com. (
                        2018051501      ; serial number
                        7200            ; refresh
                        3600            ; retry
                        604800          ; expire
                        2400 )          ; Minimum TTL


; Name Servers
;
                IN NS   ns1.expiredzones.com.
                IN NS   ns2.expiredzones.com.
;
; Mail Servers
        300     IN MX   20  smtp.expiredzones.com.
;
;
; Addresses (A records) - Point to the IP of the web server
;
localhost       IN A    127.0.0.1
;
@               IN A    x.x.x.x ; Web server IP
www             IN A    x.x.x.x ; Same web server IP
;
And in named.conf (in addition to the normal stuff):
Code:
zone "expiredzone1.com" {
        type master;
        file "expiredzone-aliases";
        allow-query { any; };
};

zone "expiredzone2.com" {
        type master;
        file "expiredzone-aliases";
        allow-query { any; };
};
In the above zone file "@" is used instead of actual expired domain names so that it gets replaced with the expired domain names from named.conf when they are queried. (e.g. @ becomes "expiredzone1.com" if someone is querying that but becomes expiredzone2.com if someone is instead querying that. This simplifies setup so that you only need one zone file for multiple domains (which are called zones in named.conf - zone and zonefile can be and often are different as shown in my example).

Last edited by MensaWater; 05-15-2018 at 02:20 PM.
 
2 members found this post helpful.
Old 05-16-2018, 06:11 AM   #5
king dev
LQ Newbie
 
Registered: May 2018
Posts: 4

Original Poster
Rep: Reputation: Disabled
Hello MensaWater,

Thank you, i'll test that and go back to you

Kind regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSL and web page files on different servers sbarkey Linux - Newbie 2 07-03-2008 06:59 AM
creating man page database student04 Linux - General 4 01-03-2005 07:08 PM
Creating page tabs w/ php linux_pioneer Programming 1 07-22-2004 12:58 PM
Creating a Web Page lxandrthegr8 Linux - Software 2 08-12-2003 07:29 PM
Creating HTML page with link in C jorgedf Programming 3 08-01-2003 02:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 08:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration