PDA

View Full Version : How DO I? Setup RDNS


zmenchhofer
03-22-2005, 12:18
To set up RDNS you need to have your IP’s Delegated to you from FDC then you need to add it to named.conf and you will need to also create a new PTR for each IP range
Lets say you have a Class C address and you have 66.90.111.50-75 you will need to add a line like this to named.conf

zone "111.90.66.in-addr.arpa" IN {
type master;
file "/var/named/66.90.111.db";
allow-update { none; };
};

Then you will need to create a new zone file something like this
$TTL 86400
@ IN SOA ns1.yourhost.com. yourcontact.emailaddress.com. (
2005021601 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
IN NS ns.yourhost.com.
50 IN PTR WhatEverYouWant.Com.
51 IN PTR WhatEverYouWant.Com.
52 IN PTR WhatEverYouWant.Com.
53 IN PTR WhatEverYouWant.Com.
54 IN PTR WhatEverYouWant.Com.
55 IN PTR WhatEverYouWant.Com.

And so on…..

Any questions just ask!
Zach

psyxakias
03-22-2005, 13:45
Sticky :)

faqall
03-22-2005, 20:55
thank you for taking the time out to write this! ill be sure to use it when i play around with it.

thanks again.

bykte
04-13-2005, 02:25
Does this means that if you do this, when you go to IRC, your host will be listed as the one you specified such as 50 IN PTR WhatEverYouWant.Com? Kinda reverse dns spoofing huh?

mikron15
04-13-2005, 04:45
You can only apply Rdns for the ips u own, and yes, u can make it resolve whatever u want

SiD
04-13-2005, 10:04
And how bout IPv6 RDnS ? can someone shed some light on that ?



cheers

chandro
08-21-2005, 23:26
really interesting...

allanite
09-08-2005, 05:41
Thx zmenchhofer.

If I have the domains' dns managed at dnsmadeeasy, should the reverse dns be done at the server or at dnsmadeeasy?

zmenchhofer
09-08-2005, 14:48
depends where you have the ips delegated to

allanite
09-08-2005, 16:23
if I have ips delegated,
do I do the reverse dns on my server here at FDC or
I do the reverse dns at dnsmadeeasy the service I use for my dns management for alll my domains but
my server is running dns and bind?

Thx

chandro
09-08-2005, 21:57
you have to do it in your server. ( here in FDC )

ChronoCross
09-08-2005, 22:33
You also have to have FDC delegate reverseDNS Authority to you as normally you have to request them to do it. But they will transfer that power directly to your server if you ask.

SiD
11-18-2005, 15:29
Thanx :) really helped

rdx
03-06-2006, 13:15
You also have to have FDC delegate reverseDNS Authority to you as normally you have to request them to do it. But they will transfer that power directly to your server if you ask.


yep thats one reason why I <3 FDC, I can change my rdns on the fly! wooty woo!!!!!!

rafaelgp
08-11-2006, 23:19
can i set the reverses using WHM tools or just editing files on ssh?

chandro
08-11-2006, 23:33
WHM NO

and editing files NO

u must have ur IP delegated from FDC and then u creathe the zone file. like is in the first post. when u have it, you can do it, just like the tuto says.

rafaelgp
08-12-2006, 00:56
yeah, ok. but whats the best thing to do... ask for FDC to setup the reverses or ask them for delegate the IPs for my server?

chandro
08-12-2006, 01:35
ask one of both, u can ask to make the reverse u want, or u can ask for delegated ips

rafaelgp
08-13-2006, 17:31
i have to do something special to set an A ENTRY for my ips with reverse?

i setup a hostname and it is not resolving...

example:
$ host 123.123.123.123
123.123.123.123.in-addr.arpa domain name pointer srv1.domain.com
$ host srv1.domain.com
Host srv1.domain.com not found: 3(NXDOMAIN)

why its happenin?

chandro
08-15-2006, 06:15
create a A zone for srv1.domain.com in ur control panel

rafaelgp
08-15-2006, 20:53
chandro: before doing it i tryed another thing...

instead of putting SRV1.DOMAIN.COM in the form at WHM, i just put SRV1 and it started working... I dunno why, but it started working.

hehe

thank you for ur attention.

chandro
08-16-2006, 06:35
ur welcome :D

rafaelgp
08-24-2006, 01:04
haha
I'm quite dumb, lol... I dunno why, but in this case I used "srv1.domain.com" instead of "srv1", for example... That's why it wasn't working... I think I was sleepy and put it very fast just to not forget doing, hehehe.

Take it easy chandro, good week. C ya.

Micke
08-27-2006, 17:21
regarding

$TTL 86400
@ IN SOA ns1.yourhost.com. yourcontact.emailaddress.com. (
2005021601 ; serial
28800 ; refresh
14400 ; retry
3600000 ; expire
86400 ; ttl
)
IN NS ns.yourhost.com.
50 IN PTR WhatEverYouWant.Com.
51 IN PTR WhatEverYouWant.Com.
52 IN PTR WhatEverYouWant.Com.
53 IN PTR WhatEverYouWant.Com.
54 IN PTR WhatEverYouWant.Com.
55 IN PTR WhatEverYouWant.Com.



How can I creat the Zone file?

chandro
08-27-2006, 18:15
HAVE U ur ips delegated from FDC ???

if not, u are losting time, cant modify that.

if yes, read the 1st post of this thread

chandro
10-17-2006, 19:29
mmm having a little problem :p


zone x.90.66.in-addr.arpa/IN: has no NS records
_default/x.90.66.in-addr.arpa/IN: bad zone
dns_rdata_fromtext: /var/named/66.90.98.db:41: near eol: unexpected end of input
zone x.90.66.in-addr.arpa/IN: loading master file /var/named/66.90.98.db: unexpected end of input
_default/x.90.66.in-addr.arpa/IN: unexpected end of input
zone x.159.67.in-addr.arpa/IN: has no NS records
_default/x.159.67.in-addr.arpa/IN: bad zone

underg
02-06-2007, 07:59
Im having troulbe understanding 2 things

$TTL 86400
@ IN SOA ns1.yourhost.com. yourcontact.emailaddress.com.

Ok is that myname@mydomain.com or myname.mydomain.com?

IN NS ns.yourhost.com.
50 IN PTR WhatEverYouWant.Com.
51 IN PTR WhatEverYouWant.Com.
52 IN PTR WhatEverYouWant.Com.
53 IN PTR WhatEverYouWant.Com.
54 IN PTR WhatEverYouWant.Com.
55 IN PTR WhatEverYouWant.Com.
]
Ok so is that ns.mydomain.com or
ns1.mydomain.com
Thank you very much :)

FSS
02-06-2007, 12:37
....... double post. remove pls...

FSS
02-06-2007, 12:42
Im having troulbe understanding 2 things

Ok is that myname@mydomain.com or myname.mydomain.com?
]
Ok so is that ns.mydomain.com or
ns1.mydomain.com
Thank you very much :)

No matter ns. or ns1. its just your nameserver. Put your nameserver.
Also you can use cpanel/WHM DNS edit function.

underg
02-06-2007, 13:44
thenks for your reply

Well I did all that and,

All that happend as a result is named skyrocketed cpu and mem usage HAHA :D

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6731 named 20 0 53436 17m 1964 S 1.3 2.4 0:36.26 named

Dnsstuff.com said broken nameserver cant get result


Server ns1.xxx.xxx is reporting a server failure (it is probably broken).

If anyone has the time to help thanks if not its no biggy Im not a client at fdc now just a community member :P

underg
02-06-2007, 17:58
its ok,
I worked it out all by myself!
I still dont understand how to add bluk like you have explained but I add each ip via directadmin and it works
When I tried doing a bulk database file it wouldnt work!

bic
04-10-2007, 19:34
what do I do if I had FDC add my reverse PTRs in their servers?

I have forward zone ok, is there anything special I need to do for reverse (like resolv.conf, hosts or anything else) as they are doing reverse?

chandro
04-10-2007, 21:43
no, you just create zones with the hostnames, FDC do the reversers, dont have to change anything on resolv.conf

NOTHING!

sticky
05-24-2007, 01:19
If you're looking for IPv6 reverse DNS check this link out -> http://www.fpsn.net/?pg=tools&tool=ipv6-inaddr

sticky
07-15-2007, 03:03
Hmm....

I'm having some troubles. I've done it a dozen times before, but never ran into this problem;

Jul 14 22:03:42 gecko named[31118]: loading configuration from '/etc/bind/named.conf'
Jul 14 22:03:42 gecko named[31118]: zone 15.159.67.in-addr.arpa/IN: has no NS records


Anyone have some suggestions?

psyxakias
07-15-2007, 06:11
Assuming you already have an NS line, you simply have to add a space before the "IN" word at the NS line:
needs_space_here IN NS ns1.yourdomain.com.

sticky
07-15-2007, 06:18
Assuming you already have an NS line, you simply have to add a space before the "IN" word at the NS line:
needs_space_here IN NS ns1.yourdomain.com.

Haha, that's such an easy fix, shame I just sent them my PTR entries 3 minutes ago. :/ Oh well, 3 months down the road I'll need to change them all again ;)

Thanks for the help psyxakias

netfreehost
02-11-2008, 07:47
I want to set rDNS. My current rDNS point to a wrong hostname (maybe previous owner of the IP) giaitri4vn.info



[root@server18 ~]# nslookup server18.hosthat.com
Server: 66.90.68.15
Address: 66.90.68.15#53

Non-authoritative answer:
Name: server18.hosthat.com
Address: 208.53.170.247

[root@server18 ~]# nslookup 208.53.170.247
Server: 66.90.68.15
Address: 66.90.68.15#53

Non-authoritative answer:
247.170.53.208.in-addr.arpa name = giaitri4vn.info.

Authoritative answers can be found from:
170.53.208.in-addr.arpa nameserver = NS3.FDCSERVERS.NET.
170.53.208.in-addr.arpa nameserver = NS4.FDCSERVERS.NET.
NS3.FDCSERVERS.NET internet address = 66.90.66.137
NS4.FDCSERVERS.NET internet address = 66.90.66.138

[root@server18 ~]#


I need rDNS changed to server18.hosthat.com

On asking FDC support, they told me


For reverse authority over your IPs, please provide the following:

Put your ips in the following format:

subnet: 66.90.68

69 IN NS ns2.blah.com. <--- put dot
70 IN NS ns2.blah.com. <--- put dot


OR you can supply us with the PTR entires.

Please do so in this format:
Subnet 66.90.112

4 IN PTR blah.domain.com. <--- put dot
5 IN PTR another.domain.com. <--- put dot

Thank you,


Can anyone tell what i have to do ?

I need the rDNS of IP 208.53.170.247 set to server18.hosthat.com

Thanks,

Yujin

jasonaward
02-11-2008, 11:48
Subnet 208.53.107

247 IN PTR server18.hosthat.com.


Unless you want to configure the PTRs within your own nameserver, and then you can do so using the first method (better if you plan to make changes in the future).

netfreehost
02-13-2008, 19:34
Thanks for the reply.


Subnet 208.53.107


How you get this ? First 3 digit of my IP ?

My IP is 208.53.170.247, so subnet is 208.53.170 (you posted 208.53.107, that is mis type ?)

jasonaward
02-14-2008, 12:10
Thanks for the reply.



How you get this ? First 3 digit of my IP ?

My IP is 208.53.170.247, so subnet is 208.53.170 (you posted 208.53.107, that is mis type ?)

Sorry, yes, that was a typo.

new2bsd
08-08-2009, 14:20
hi there i've read this thread several times yet it sounds chinese to me, can someone please help me out this is my first time to use a dedicated server thats unconfigured so this i really frustrating i've done some searching and read some manuals yet i cant figure it out i need someone to show me step by step please if they're free ofcourse

netfreehost
08-08-2009, 14:50
They should make it easy, for example, If you open a ticket saying,

Please set rDNS

12.182.190.19 > server1.yourdomain.extn

They should just set that. Most datacenter will do that. With FDC you need to do it in complex way. Some data center allow you to do it in their control panel.

new2bsd
08-09-2009, 16:34
They should make it easy, for example, If you open a ticket saying,



They should just set that. Most datacenter will do that. With FDC you need to do it in complex way. Some data center allow you to do it in their control panel.

like who ?

sticky
08-09-2009, 18:25
If unsure how to do your own DNS PTR entries on your own server this is how FDC Likes it done in ticket for PTR's.

subnet 123.123.123

25 IN PTR some.domain.com.
26 IN PTR some.other.domain.com.
27 IN PTR some2.domain.com.
28 IN PTR some2.other.domain.com.
And if you're wanting to have NS entries done... it assume's you are doing 2 nameservers.

Try the following:

subnet 123.123.123

25 IN NS n1.yourdomain.com.
25 IN NS n2.yourdomain.com.

26 IN NS n1.yourdomain.com.
26 IN NS n2.yourdomain.com.

27 IN NS n1.yourdomain.com.
27 IN NS n2.yourdomain.com.

28 IN NS n1.yourdomain.com.
28 IN NS n2.yourdomain.com.



And another Example for IPv6 -- this requires you to have NS entries for your ipv6.
$ORIGIN 7.a.4.0.1.1.2.1.0.3.4.0.1.0.0.2.ip6.arpa.
$TTL 3d ;
@ IN SOA ns1.fakedomain.net. dns.fakedomain.net. (
2009071003 ; Serial number (YYYYMMdd)
24h ; Refresh time
30m ; Retry time
2d ; Expire time
3d ) ; Default TTL
IN NS ns1.fakedomain.net.
IN NS ns2.fakedomain.net.
IN NS ns3.fakedomain.net.

b.d.3.9.6.0.e.f.f.f.8.5.5.1.2.0 IN PTR dom0.fakedomain.us. ; dom0/debian
d.6.5.f.1.5.e.f.f.f.e.3.6.1.2.0 IN PTR web6.fakedomain.us. ; web6/debian
a.e.6.b.a.3.2.d.a.b.b.5.4.8.5.9 IN PTR beaver.fakedomain.us. ; beaver/windows7