View Full Version : Reverse an IP to domain and vice versa
medianet
09-28-03, 10:21 AM
Hello,
I just bought a dedicated server to use for irc shells hosting and I want to make vhosts to be used. I have 32 free ips on the server. How i can make the vhosts work ? if i dns example.com it gives me the ip but when i dns the ip i can get the domain.
What is the best way to fix that. I have make 187.50.69.in-addr.arpa and use PTR but don't seem to be work
Thanxs in advance
Chicken
09-28-03, 12:41 PM
Oddly, I just posted these somewhere else... Does this help?
http://www.dnsstuff.com/info/revdns.htm
http://www.isc.org/ml-archives/bind-users/1999/08/msg00127.html
medianet
09-28-03, 01:12 PM
the server is new there are any specific thinks to configure first in the server ?
dig 127.0.0.1
; <<>> DiG 9.2.1 <<>> 127.0.0.1
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 9118
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;127.0.0.1. IN A
;; AUTHORITY SECTION:
. 9077 IN SOA A.ROOT-SERVERS.NET. NSTLD.VERISIGN-GRS.COM. 2003092800 1800 900 604800 86400
;; Query time: 1 msec
;; SERVER: 69.50.187.34#53(69.50.187.34)
;; WHEN: Mon Sep 29 00:12:11 2003
;; MSG SIZE rcvd: 102
I shouldn't get this, i think something its wrong right ? any help ?
Chicken
09-28-03, 01:28 PM
I really don't know. Maybe posting more information might help someone figure out if there's something wrong.
concreteman
09-28-03, 11:17 PM
that should be a good dig on your server... check with your dac that they have reverse ip's setup for your server on thier upline provider. and when all else fails go check out your site at http://www.dnsreport.com , if you see a warning that says lame nameservers your dac or server people don't had reverse ip setup correctly - it can be a pain. Don't let them convince you that it is your fault. also try dig -x 127.0.0.1 and with the ip address of your server and see what comes up... if it isn't your name server - see above
medianet
09-29-03, 12:53 PM
Can anyone help me step by step to reverse the ips please ?
concreteman
09-29-03, 01:48 PM
pm or email me with your sites address and/or ip addresses. I still believe your dac needs to get there reverse ip's registered, but what do I know. Look for me on aol im or msn and I can help you from there also.
You have to use PTR records on you NS'S.
concreteman
10-14-03, 02:05 PM
Actually I don't believe PTR's are ablosolutely neccessary in the db file for nameservers to work (you may need reverse ip in local but this isn't the cause (i think). You should have reverse IP's internally but I don't think that is what is causing this problem...
You want to use dig on an ip use the -x switch
try with this dig -x 127.0.0.1
amoungst other stuff should be
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 63540
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;1.0.0.127.in-addr.arpa. IN PTR
;; ANSWER SECTION:
1.0.0.127.in-addr.arpa. 86400 IN PTR localhost.
;; AUTHORITY SECTION:
0.0.127.in-addr.arpa. 86400 IN NS ns1.server****.com.
0.0.127.in-addr.arpa. 86400 IN NS ns2.server****.com.
;; ADDITIONAL SECTION:
ns1.server****.com. 14400 IN A xx.xx.xx.xx
ns2.server****.com. 14400 IN A xx.xx.xx.xx
By the way in reference to the originating post i think vhosts use CNAMEs. I am not to sure on how these all work. But i rememebr chatting about them once.
VHosts used CNAMEs and what you described (having ip's resolve to a hostname) uses PTR records.
vBulletin v3.5.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.