Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: preg_match(): Unknown modifier '-' in /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php on line 783

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794

Warning: Cannot modify header information - headers already sent by (output started at /home/akl1986/public_html/support/wp-content/plugins/redux-framework/redux-core/inc/extensions/metaboxes/class-redux-extension-metaboxes.php:783) in /home/akl1986/public_html/support/wp-includes/rest-api/class-wp-rest-server.php on line 1794
{"id":2569,"date":"2019-12-06T14:33:40","date_gmt":"2019-12-06T14:33:40","guid":{"rendered":"https:\/\/support.aklwebhost.com\/?post_type=manual_kb&p=2569"},"modified":"2019-12-06T14:38:24","modified_gmt":"2019-12-06T14:38:24","slug":"setting-up-a-name-server-for-ipv6-rdns-in-centos","status":"publish","type":"manual_kb","link":"https:\/\/support.aklwebhost.com\/knowledgebase\/setting-up-a-name-server-for-ipv6-rdns-in-centos\/","title":{"rendered":"Setting up a Name Server for IPv6 rDNS in CentOS"},"content":{"rendered":"

Managing your own IPv6 rDNS is a fairly simple task. After setting up the name server, please open a ticket with support to request that the block is delegated to the name servers setup in this article.<\/strong><\/p>\n

In this guide we will show you how to set up a master only and master and slave system for rDNS.<\/p>\n

Start with setting up a master and slave server first:<\/p>\n

1.<\/strong>\u00a0Log into the your\u00a0Dedicated Servers<\/span><\/a><\/strong>\u00a0as root (or another user with full root privilages).<\/p>\n

2.<\/strong>\u00a0Install bind and bind-utils by executing\u00a0yum install bind bind-utils<\/strong>\u00a0from within the console.<\/p>\n

3.<\/strong>\u00a0Back up of the default configuration file by executing\u00a0cp \/etc\/named.conf \/etc\/named.bak<\/code><\/strong>\u00a0within the console.<\/p>\n

4.<\/strong>\u00a0Edit the configuration file by executing\u00a0vim \/etc\/named.conf<\/code><\/strong>\u00a0within the console. Below the sample of modified file.<\/p>\n

\/\/\r\n\/\/ named.conf\r\n\/\/\r\n\/\/ Provided by Red Hat bind package to configure the ISC BIND named(8) DNS\r\n\/\/ server as a caching only nameserver (as a localhost DNS resolver only).\r\n\/\/\r\n\/\/ See \/usr\/share\/doc\/bind*\/sample\/ for example named configuration files.\r\n\/\/\r\noptions {\r\nlisten-on port 53 { any; };\r\nlisten-on-v6 port 53 { none; };\r\ndirectory \"\/var\/named\";\r\ndump-file \"\/var\/named\/data\/cache_dump.db\";\r\nstatistics-file \"\/var\/named\/data\/named_stats.txt\";\r\nmemstatistics-file \"\/var\/named\/data\/named_mem_stats.txt\";\r\nallow-query { localhost; any; };\r\nallow-transfer { none; };\r\nrecursion no;\r\ndnssec-enable yes;\r\ndnssec-validation yes;\r\ndnssec-lookaside auto;\r\n\/* Path to ISC DLV key *\/\r\nbindkeys-file \"\/etc\/named.iscdlv.key\";\r\nmanaged-keys-directory \"\/var\/named\/dynamic\";\r\n};\r\nlogging {\r\nchannel default_debug {\r\nfile \"data\/named.run\";\r\nseverity dynamic;\r\n};\r\n};\r\nzone \".\" IN {\r\ntype hint;\r\nfile \"named.ca\";\r\n};\r\ninclude \"\/etc\/named.rfc1912.zones\";\r\ninclude \"\/etc\/named.root.key\";\r\n\/\/This bellow will be our rDNS zone.\r\nzone \"B.B.B.B.A.A.A.A.0.8.8.9.5.0.6.2.ip6.arpa.\" IN {\r\ntype master;\r\nfile \"rdns.zone\";\r\nallow-update { none; };\r\nallow-transfer { 2.2.2.2; };\r\nnotify yes;\r\nalso-notify { 2.2.2.2; };\r\n};<\/code><\/pre>\n

*Notes: The Lines “listen-on port 53 { any; };” and “listen-on-v6 port 53 { none; };” can be set to listen on a specific IP address configured on the server i.e. 1.1.1.1; or 1.1.1.2; etc.<\/strong><\/p>\n

The line zone\u00a0\"B.B.B.B.A.A.A.A.0.8.8.9.5.0.6.2.ip6.arpa.\"<\/code><\/strong>\u00a0is your\u00a0\/64 IPv6 block<\/strong>\u00a0in reverse. In this example it represents IPv6 IP block\u00a02605:9880:AAAA.BBBB.<\/code><\/strong><\/p>\n

The IPv6 block assigned by default will be a \/64. To encode IPv6 block\u00a02605:9880:0:1<\/code><\/strong>\u00a0for example, each segment will need to be 4 characters long to take\u00a02605:9880:0:1<\/code><\/strong>\u00a0and make each segment 4 characters long by adding zeros in front of the front like so\u00a02605:9880:0000:0001<\/code><\/strong>. If the IPv6 block is\u00a02605:9880:0:12<\/code><\/strong>\u00a0then the same rule applies to have\u00a02605:9880:0000:0012.<\/code><\/strong><\/p>\n

Now we take\u00a02605:9880:0000:0012<\/code><\/strong>\u00a0and enter it backwards adding a ‘.’ after each value to have\u00a02.1.0.0.0.0.0.0.0.8.8.9.5.0.6.2<\/code><\/strong>\u00a0and append it with\u00a0'.ip6.arpa.'<\/code><\/strong>\u00a0so you know have the rDNS zone for block\u00a02605:9880:0:12 = 2.1.0.0.0.0.0.0.0.8.8.9.5.0.6.2.ip6.arpa.<\/code><\/strong><\/p>\n

‘Type’<\/strong>\u00a0will be set as master as it is the main nameserver.<\/p>\n

The\u00a0‘file’<\/strong>\u00a0specified here will contain our PTR entries.<\/p>\n

The\u00a0‘allow-transfer’<\/strong>\u00a0line will allow to transfer settings from the master to a slave if applicable.<\/p>\n

If you plan to have only one name server with no master, this line and\u00a0‘also-notify’<\/strong>\u00a0can be ignored.<\/p>\n

To add a zone record for\u00a0IPv6 rDNS<\/strong>. Type in the following command:\u00a0vim \/var\/named\/rdns.zone<\/code><\/strong><\/p>\n

The actual zone record Zone Record:<\/strong><\/p>\n

$TTL 1h ; Default TTL\r\n@ IN SOA dns1.example.com admin.example.com. (\r\n1234567890 ; serial\r\n1h ; slave refresh interval\r\n15m ; slave retry interval\r\n1w ; slave copy expire time\r\n1h ; NXDOMAIN cache time\r\n)\r\n;\r\n; domain name servers\r\n;\r\n@ IN NS dns1.example.com.\r\n@ IN NS dns2.example.com.\r\ndns1 IN A 1.1.1.1\r\ndns2 IN A 2.2.2.2\r\n; IPv6 PTR entries\r\n1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.0.0.0.0.0.8.8.9.5.0.6.2.ip6.arpa. IN PTR somesite.com.\r\n2.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.1.0.0.0.0.0.0.0.8.8.9.5.0.6.2.ip6.arpa. IN PTR another.somesite.com.<\/code><\/pre>\n

replace 1.1.1.1 with the master IP and 2.2.2.2 with the slave name server IP.<\/strong><\/p>\n

In this zone file you will see IPs in reverse arpa format. These are part of the PTR records.<\/p>\n

To add a record, just put them in reverse arpa format like we did earlier in the config file and append\u00a0“IN PTR domainname”<\/strong><\/p>\n

http:\/\/rdns6.com\/zone<\/code><\/strong>\u00a0is a useful tool to help create the zone file.<\/p>\n

Once created, this zone file needs to be copied to slave name server under the same directory,\u00a0\/var\/named<\/code><\/strong>\u00a0in this case.<\/p>\n

The serial number will be important as it will be used to update the entries on both servers.<\/p>\n

To configure the slave server:<\/strong><\/p>\n

The reset of the setting will be the same but the rDNS zone will be different.<\/p>\n

\/etc\/named.conf<\/strong><\/p>\n

zone \"B.B.B.B.A.A.A.A.0.8.8.9.5.0.6.2.ip6.arpa.\" IN {\r\ntype slave;\r\nmasters { 1.1.1.1; };\r\nfile \"rdns.zone\";\r\nallow-transfer { 1.1.1.1; };\r\nnotify yes;\r\n};<\/code><\/pre>\n

Change the IP 1.1.1.1 of the master server and “B.B.B.B.A.A.A.A.0.8.8.9.5.0.6.2.ip6.arpa.” to the reverse IP used in the master config.<\/strong><\/p>\n

Once completed, save and start the service on both the master and the slave server by executing service named start within the console.<\/p>\n

On one of the server you may test the server by executing nslookup ipv6add 1.1.1.1<\/p>\n

Replace the\u00a0“ipv6add”<\/strong>\u00a0with the ipaddress that you added a PTR report and 1.1.1 to the master server IP, then you can execute the same command but with the slave server IP to make sure it works.<\/p>\n

To update the zone file:<\/strong><\/p>\n

Open the zone file on the master server and add the and extra line and add the\u00a0PTR record.<\/strong><\/p>\n

Once added you will need to increment the serial by 1 digit and save.<\/p>\n

Once the\u00a0PTR record<\/strong>\u00a0has been saved and the serial incremented, execute rdnc reload within the console. This will will update the master and slave server of the added or removed PTR records.<\/p>\n

Additional notes:<\/p>\n

You can also just have master server. Below is a zone entry in\u00a0\/etc\/named.conf<\/strong>\u00a0for a master only server:<\/p>\n

zone \"B.B.B.B.A.A.A.A.0.8.8.9.5.0.6.2.ip6.arpa.\" IN {\r\ntype master;\r\nfile \"rdns.zone\";\r\nallow-update { none; };\r\nallow-transfer { none; };\r\nnotify yes;\r\nalso-notify {none; };\r\n};<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231],"manual_kb_tag":[354],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2569"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2569"}],"version-history":[{"count":3,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2569\/revisions"}],"predecessor-version":[{"id":2572,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2569\/revisions\/2572"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2569"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2569"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}