On Monday 27 Feb 2006 13:50, Robert Singer wrote:
> Hello,
>
> I have a question regarding the PTR input schemata for Vegadns.
> I want to add a PTR Record for a host in the domain test.org
>
> When I do this in djbdns it works fine for me
>
> ^2.10.168.192.in-addr.arpa:a.ns.test.org:300
>
> The dig results display
>
> ; <<>> DiG 9.2.3 <<>> @192.168.10.2 -x 192.168.10.2
> ;; global options: printcmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 19890
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
>
> ;; QUESTION SECTION:
> ;2.10.168.192.in-addr.arpa. IN PTR
>
> ;; ANSWER SECTION:
> 2.10.168.192.in-addr.arpa. 300 IN PTR a.ns.test.org.
>
> When I am trying to do the same with the vegadns gui I get an error
>
> I tried to select the domain test .org and then add the hostname
> a.ns in the field
> put 2.10.168.192.in-addr.arpa. into the field Address
> and select
> Type -> PTR
>
> I get the message PTR "a.ns.test.org does not end .in-addr.arpa.
>
> After that I tried to follow the instruction in the [user] archives for
> The topic PTR Records. Unfortunately I got the same result.
>
> Thanks in advance
> Robert
>
> Ps: using Vegadns 0.9.9
a bit crude but
try this patch: (watch out for wrap)
diff -urN vegadns-0.9.9/src/functions.php
vegadns-0.9.9-no-in-addr.arpa-check/src/functions.php
--- vegadns-0.9.9/src/functions.php 2005-02-04 01:06:11.000000000 +0100
+++ vegadns-0.9.9-no-in-addr.arpa-check/src/functions.php 2005-08-12
18:56:29.000000000 +0200
@@ -269,10 +269,10 @@
}
// verify PTR
- if($type == 'P') {
- if(!eregi("^.*\.in-addr.arpa\.*$", $name))
- return "PTR \"$name\" does not end in .in-addr.arpa.";
- }
+# if($type == 'P') {
+# if(!eregi("^.*\.in-addr.arpa\.*$", $name))
+# return "PTR \"$name\" does not end in .in-addr.arpa.";
+# }
// verify CNAME record
if($type == 'C') {
--
-----------------
Bob Hutchinson
Midwales dot com
-----------------