Re: [users] PTR records

2008-05-20 Thread Bob Hutchinson
On Tuesday 20 May 2008 11:48, Osvaldo Alvarez Pozo wrote:
 I got your mail, I  thank you very much for all your explanations.

 You use vegadns 1.1.6


 I found a problem  in vegands .0.9.10

 When I do click on domains and then on owner I have the form for
 changing the user I add the email address and then when click on save
 I got
 Notice: Undefined variable: change_group in
 /var/www/vegadns/src/domains.php on line 738

 Notice: Undefined variable: change_group in
 /var/www/vegadns/src/domains.php on line 744

 Warning: Cannot modify header information - headers already sent by
 (output started at /var/www/vegadns/src/domains.php:738) in
 /var/www/vegadns/src/domains.php on line 749

These are notices not errors, you can get rid of it with

ini_set('error_reporting', E_ALL ^ E_NOTICE);

at the top of your index.php


 but the user get changed any way.


 is this solved in vegadns 1.1.6?

 On Tue, May 20, 2008 at 11:44 AM, Dimitri P. Alexandris

 [EMAIL PROTECTED] wrote:
  I use version 1.1.6.
 
  You can find my modified scripts at http://www.ham.gr/vegadns/ (you
  have to rename .txt to .php to use them). Or you can copy and paste
  the relevant sections. You can spot the differences if you search for
  A+PTR or  '=' . I also have changed a bit the creation of the SOA
  record (builds a . record instead of a Z) with limited parameters.
  This way the 1st NS record is included. You only enter NS records for
  the 2nd, 3rd, etc. servers. It works for me.
 
  The normal way to create PTR records is in a _separate_ reverse zone
  (domain). In your case [10.168.192.in-addr.arpa]. You should create it
  of course.
 
  The correct syntax of a PTR record in a reverse zone is the following:
 
  10.168.192.in-addr.arpa  NS  a.ns.test.org   (NS record)
 
  In the _forward_ zone you should have
 
  a.ns.test.org  A  192.168.10.2
 
  and possibly
 
  ns1.test.org  A+PTR  192.168.10.2
 
  Now an IP you only want to have a PTR record (never used by name) will
  be (reverse zone):
 
  100.10.168.192.in-addr.arpa  PTR  dhcp100.test.org
 
  Hope i helped
 
  On Tue, May 20, 2008 at 12:14 AM, Osvaldo Alvarez Pozo [EMAIL PROTECTED] 
wrote:
  thanks yes I want yours  scripts thanks you , but I like to know the
  vegadns's way of creating ptr records.
  Thanks.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Strange behaviour running update-data.sh

2008-01-31 Thread Bob Hutchinson
On Thursday 31 January 2008 07:12, Mário Gamito wrote:
 Hi,

 Bob Hutchinson wrote:
  On Wednesday 30 January 2008 23:32, Mário Gamito wrote:
  Hi,
 
  I've installed vegadns and it's working just fine with MySQL.
 
  However, when I run update-data.sh, a line is inserted in
  /etc/tinydns/root/data file:
 
  Error: Host 192.168.1.50 is not authorized to access this page
 
  add that IP to $trusted_hosts in src/config.php

 I forgot to mention that I've already did that, but the error persists.

 Ideas ?

It is not getting past the check in index.php, circa lines 75 - 91
The error line is generated on line 88
Check for typos in config.php ;-(

try running
wget -O - http://192.168.1.50/index.php?state=get_data
from the command line.


 Any help would be appreciated.

 Warm Regards,
 Mário Gamito

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Strange behaviour running update-data.sh

2008-01-30 Thread Bob Hutchinson
On Wednesday 30 January 2008 23:32, Mário Gamito wrote:
 Hi,

 I've installed vegadns and it's working just fine with MySQL.

 However, when I run update-data.sh, a line is inserted in
 /etc/tinydns/root/data file:

 Error: Host 192.168.1.50 is not authorized to access this page

add that IP to $trusted_hosts in src/config.php


 And make obviously aborts.

 Any ideas why this happening ?

 Any help would be appreciated.

 Warm Regards,
 Mário Gamito

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] PTR Question

2006-02-27 Thread Bob Hutchinson
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.0 +0100
+++ vegadns-0.9.9-no-in-addr.arpa-check/src/functions.php   2005-08-12 
18:56:29.0 +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
-


Re: [users] Smarty Error: No such file or directory...

2006-01-25 Thread Bob Hutchinson
On Wednesday 25 Jan 2006 17:47, [EMAIL PROTECTED] wrote:
 Hello!

 I have successfully installed tinydns on Suse 10.0 with and tried this with
 PHP5  and PHP4.  After installing VegaDNS, I unfortunately continue to get
 these types of errors when I click on the various links.  I had this
 working perfectly on Suse 9.0 before.  I followed the setup from
 djbdnsrocks.org to perform my installation.  Also tried VegaDNS
 installation.

 I also tried to hardcode the smartydir variables.  This worked to get some
 links available but there were other errors that resulted.  Are there some
 settings I'm overlooking in PHP/SuSE/VegaDNS that can solve this problem?

I'm not sure if this is it, but
in your php.ini
include_path = .:/usr/share/php

the '.'  will make it look in the current directory first


 Thanks a million!

 Errors below:


 **clicking on Domain *
 Warning: main(smarty/internals/core.load_plugins.php): failed to open
 stream: No such file or directory in
 /srv/www/htdocs/vegadns_private/templates_c/%%7F^7F3^7F38CFF1%%list_domains
.tpl.php on line 3

 Fatal error: main(): Failed opening required
 'smarty/internals/core.load_plugins.php' (include_path='/usr/share/php') in
 /srv/www/htdocs/vegadns_private/templates_c/%%7F^7F3^7F38CFF1%%list_domains
.tpl.php on line 3


 **clicking on New Domain *
 Warning: main(src/new_domain_form.php): failed to open stream: No such file
 or directory in /srv/www/htdocs/vegadns/src/domains.php on line 207

 Fatal error: main(): Failed opening required 'src/new_domain_form.php'
 (include_path='/usr/share/php') in /srv/www/htdocs/vegadns/src/domains.php
 on line 207


 **clicking on Edit my Account *

 Warning: main(src/account_form.php): failed to open stream: No such file or
 directory in /srv/www/htdocs/vegadns/src/users.php on line 49

 Fatal error: main(): Failed opening required 'src/account_form.php'
 (include_path='/usr/share/php') in /srv/www/htdocs/vegadns/src/users.php on
 line 49

 **clicking on DNS Query *

 Warning: _compile_source(smarty/Smarty_Compiler.class.php): failed to open
 stream: No such file or directory in
 /srv/www/htdocs/vegadns/smarty/Smarty.class.php on line 1453

 Fatal error: _compile_source(): Failed opening required
 'smarty/Smarty_Compiler.class.php' (include_path='/usr/share/php') in
 /srv/www/htdocs/vegadns/smarty/Smarty.class.php on line 1453

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] PHP errors: Vega DNS 9.9.1

2005-11-28 Thread Bob Hutchinson
On Saturday 26 Nov 2005 14:05, Sanjay Arora wrote:
 List:

 Despite the following errors...additions/deletions seem to be
 happening...how to rectify these? Lesser number of errors after
 upgrading from 9.9 but still getting these..

 Errors adding new account

 Notice: Undefined variable: account_info
 in /home.www/html/vegadns/src/check_account_data.php on line 50

 Warning: Cannot modify header information - headers already sent by
 (output started at /home.www/html/vegadns/src/check_account_data.php:50)
 in /home.www/html/vegadns/src/users.php on line 190

 Errors deleting domain

 Notice: Undefined variable: domain
 in /home.www/html/vegadns/src/domains.php on line 423

 Warning: Cannot modify header information - headers already sent by
 (output started at /home.www/html/vegadns/src/domains.php:423)
 in /home.www/html/vegadns/src/domains.php on line 424

 Erros adding a domain

 Notice: Undefined index: username
 in /home.www/html/vegadns/src/domains.php on line 346

  Warning: Cannot modify header information - headers already sent by
 (output started at /home.www/html/vegadns/src/domains.php:346)
 in /home.www/html/vegadns/src/domains.php on line 350

 With regards.
 Sanjay.

I use this at the top of index.php:

// ini_set('error_reporting', E_ALL ^ E_NOTICE);
ini_set('error_reporting', E_ALL);

use the top one for production (uncommented of course) and the bottom one for 
development purposes.
These are notices only, and will not normally interfere with the running of 
the program, they tell you which line the problem is on and you are of course 
free to fix them ;-)



-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] axfr issues

2005-11-09 Thread Bob Hutchinson
On Wednesday 09 Nov 2005 23:30, Bob Ababurko wrote:
 Scott Muller wrote:
  Bob Ababurko wrote:
  Jason S wrote:
  On 11/8/05, *Bob Ababurko* [EMAIL PROTECTED]
  mailto:[EMAIL PROTECTED] wrote:
 
  Is there any reason that the axfr would not work for me?  I have
  the
  axfr running on the same IP as I do tinydns.  I can do a dnsq of
  the
  domain that I want to transfer using 'soa domain tinydns/axfr_IP'
  and it
  works fine showing that the domain is set up ok.  I have the tcp
  file
  set up with: :allow,AXFR=ricochetmarketing.com
  http://ricochetmarketing.com
 
  When i go to import the domain via the gui, I get:
 
  Error: could not do axfr-get for ricochetmarketing.com
  http://ricochetmarketing.com
 
  I do not know what else I can do.  I actually do not see anything
  in the
  logs of the axfrdns server.  I am thinking that something may
  not be
  working right with the vegadns host.  When I try to run '
  tcpclient -v
  -H -R 24.75.44.210 http://24.75.44.210 53 axfr-get
  ricochetmarketing.com http://ricochetmarketing.com zone
  zone.tmp', I
  get the zone downloaded without a problem.
 
  Anyone have any suggestions?
 
  -Bob
 
 
 
  I think Vegadns is running this command when you try to do axfr from
  the gui (line 565 in src/domains.php).
 
  wget -q -O -
  '$vegadns_url/axfr_get.php?domain=$domainhostname=.$_REQUEST['hostnam
 e'].'
 
 
  Try running that from the command line (substituting actual values)
  and see if it gives you any more clues as to what could be happening.
 
 
  --
 
  Jason
  [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]
 
  Is there any way I can run this from the command line and have it
  populate the db and/or get some type of error message that I can
  figure out rather than Error: could not do axfr-get for
  ricochetmarketing.com:
 
  I need to upload entries to around 400 hosts with 2 A records each so
  about 800 or so entries for the zone.
 
  -Bob
 
  One of the problems I had on FreeBSD was that I had to specify the
  full path to the wget command.

 Good call brother!  I knew someone would come through!!  A thousand
 thanks!...or more like around 800 or so!

Glad an answer arrived, I have attached some scripts that I used a year or so 
ago, they will need editing. They will make bulk imports a bit easier.

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


axfr2data.pl
Description: Perl program


axfr2data.sh
Description: application/shellscript


data2sql.pl
Description: Perl program


Re: [users] tinydns does not like the data file from vegadns

2005-09-20 Thread Bob Hutchinson
On Tuesday 20 Sep 2005 23:16, Christian Anton wrote:
 Hi everybody,

 i tried to install vegadns on my system.

 I have:
 Gentoo Linux, hppa platform (also tested on x86 with identical error),
 apache 2.0.54
 mod_php 4.4.0 with safe_mode and register_globals OFF
 djbdns 1.05
 mysql 4.0.25


 I can access the vegadns via my web browser, i created a domain named:
 example.com, added two A-records and an MX-Record, then i ran
 update-data.sh.

 My data-File for tinydns looks now like this:

 #example.com
 +mail.example.com:192.168.5.1:3600
 +www.example.com:192.168.5.1:3600
 @example.com::mail.example.com:10:3600
 Zexample.com:a.ns.gentix.de:hostmaster.example.com::16384:2048:1048576:2560 
 86400
  ^^^ (fix that)

and you need to create a NS record for example.com

add A record ns.example.com to the record for example.com, pointing to the 
tinydns ip
this assumes that ns.example.com is going to be the name your server will be 
accessed as


add NS record for example.com pointing to ns.example.com
do one for any others too
add it to default records,easier next time.

export to data and make

from the tinydns/root dir

tinydns-get any example.com
then
dnsq any example.com ip.address.of.dns
and finally
dnsqr any example.com

you might want to edit /etc/resolv.conf


 a manual done make in the directory /service/tinydns/root does not
 fail, only it tells me that data.cdb is already acualized, what sounds
 good.

 from another machine: dig @192.168.5.33 example.com:

 [EMAIL PROTECTED] ~ $ dig @192.168.5.33 example.com

 ;  DiG 9.2.5  @192.168.5.33 example.com
 ; (1 server found)
 ;; global options:  printcmd
 ;; connection timed out; no servers could be reached

couldn't reach ns.gentix.de



 tinydns is definetly reachable at this ip, when i create a domain
 manually with ./add-ns expample2.com 192.168.5.33  make, it resolves
 fine.


 Can anybody help me out please?


 Christian

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] VegaDNS SOA editing problem

2005-05-13 Thread Bob Hutchinson
On Thursday 12 May 2005 21:35, Jason 'XenoPhage' Frisvold wrote:
 Hi all,

 I tried to edit an SOA record and I'm getting the following error :

 Notice: Undefined index: ttl in
 /usr2/webroot/sarah.emcyber.com/html/vegadns-0.9.9/src/functions.php on
 line 302

 Warning: Cannot modify header information - headers already sent by
 (output started at
 /usr2/webroot/sarah.emcyber.com/html/vegadns-0.9.9/src/functions.php:302)
 in /usr2/webroot/sarah.emcyber.com/html/vegadns-0.9.9/src/records.php on
 line 444


 I haven't tried editing an SOA record in a while, so I'm not sure at
 what point I lost this functionality...  I'm currently running version
 0.9.9

 Any ideas?

you have set E_NOTICE on so it's now displaying notices
The function parse_soa needs to be cleaned up to cope with undefined indexes.
It has not been fixed in later versions, so perhaps this has not appeared 
before because something else is not set right, default soa record OK?

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Importing data to vegadns

2005-04-18 Thread Bob Hutchinson
On Monday 18 Apr 2005 15:31, Ariel M. Jolodovsky wrote:
 Hello,

 I'm currently playing with tinydns and vegadns.  I'd like to know if
 there's a way of importing (maybe a script) a hand-editted data file to
 vegadns so I can administrate domains using it.

You might like to try the attached file, I haven't used it for awhile, but I'm 
sure it will work, you'll have to edit the settings at the top.


 Thanks in advance

-- 
-
Bob Hutchinson
Midwales dot com
-


data2sql.pl
Description: Perl program


Re: [users] Importing data to vegadns

2005-04-18 Thread Bob Hutchinson
On Monday 18 Apr 2005 16:20, Ariel M. Jolodovsky wrote:
 El Lun 18 Abr 2005 11:58 AM, Bob Hutchinson escribió:
  You might like to try the attached file, I haven't used it for awhile,
  but I'm sure it will work, you'll have to edit the settings at the top.

 Thank you very much, I've changed the parameters required for the script to
 work, but when I execute it, I get:
 # perl data2sql.pl
 ./tmp/DONELIST.txt NOT found

 So I:
 # mkdir tmp
 # touch tmp/DONELIST.txt
 # perl data2sql.pl
 #

 There's nothing else in tmp and DONELIST.txt is empty

 I don't know if that's the way I should have done things :S
 (I didn't get any error when executed the script the second time)

Did the data go in OK?


 Thanks in advance

I admit the script is a bit rough, not enough checking, I wanted something 
that could be run repeatedly, leave out unwanted lines and only enter data 
into the database if it wasn't already there. The job I had at the time 
required me to pull data from a badly configured Named/Bind server and try to 
shovel it into mysql where I could check things more easily. AXFR is not very 
reliable and tended to croak. 8-|

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] domain add error

2005-04-17 Thread Bob Hutchinson
On Sunday 17 Apr 2005 11:21, Bogdan wrote:
 I tryed to add a new domain and I got this:

 Notice: Undefined variable: records_array in
 /var/www/html/vegadns/src/domains.php on line 319

 Notice: Undefined index: username in
 /var/www/html/vegadns/src/domains.php on line 340

 Warning: Cannot modify header information - headers
 already sent by (output started at
 /var/www/html/vegadns/src/domains.php:319) in
 /var/www/html/vegadns/src/domains.php on line 344

 anyone has any ideea??

which version of vegadns?


 thanks.



 __
 Do you Yahoo!?
 Plan great trips with Yahoo! Travel: Now over 17,000 guides!
 http://travel.yahoo.com/p-travelguide

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] update-data.sh writes strange data file

2005-04-04 Thread Bob Hutchinson
On Monday 04 Apr 2005 17:30, Andrea Benedetto wrote:
 When I change something in the vegadns database and then use the
 update-data.sh script it doesn't work.

 It gives me this error:

 tinydns-data: fatal: unable to parse data line 1: unrecognized leading
 character
 make: *** [data.cdb] Error 111

 and if I open the data file I can read in the first lines this strange
 things:

 br /
 bNotice/b: Undefined variable: qname in
 b/var/www/vegadns-1.1.3/src/functions.php/b on line b510/b
 br /

Here is a quick hack that will get rid of that notice:
add this line to /var/www/vegadns-1.1.3/src/functions.php, just above line 510
$qname = ;

That should do it ;-)


 The second time (after this error) I try to execute the update-data.sh
 script it doesn't give me the error, but off course the data.cdb file is
 not created.

 What I have to do?

 Thanks

 Andrea

-- 
-
Bob Hutchinson
Midwales dot com
-


[users] small bug in records.php

2005-03-15 Thread Bob Hutchinson
A small bug appeared in vegadns-1.1.2/src/records.php

It only showed because I'm running E_ALL in php.ini
It only affects the 'success' message after adding a record
Attached is the diff

HTH
-- 
-
Bob Hutchinson
Midwales dot com
-
--- records.php.old	2005-02-15 04:30:53.0 +
+++ /var/www/vegadns-1.1.2/src/records.php	2005-03-15 10:05:00.0 +
@@ -404,7 +404,8 @@
  
 }
 $db-Execute($q) or die($db-ErrorMsg());
-$smarty-assign('message', Record added successfully!);
+$message = Record added successfully!;
+	$smarty-assign('message', $message);
 header(Location: $base_urlmode=recordsdomain=.urlencode($domain).message=.urlencode($message));
 exit;
 }


Re: [users] whois addon for vegadns

2005-02-22 Thread Bob Hutchinson
On Tuesday 22 Feb 2005 22:40, Bill Shupp wrote:
 Bob Hutchinson wrote:
 I would like to suggest a minor improvement to DNS query.
 If the input is an ip, run dnsname instead of dnsq. Handy for reverse dns
 checks.

 I don't have a problem with this.  But it's lower on my priority list.
 If you care to submit a patch, that would be great.

OK, I'll do that.


 :)

 Bill

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] whois addon for vegadns

2005-02-22 Thread Bob Hutchinson
On Tuesday 22 Feb 2005 22:40, Bill Shupp wrote:
 Bob Hutchinson wrote:
 I would like to suggest a minor improvement to DNS query.
 If the input is an ip, run dnsname instead of dnsq. Handy for reverse dns
 checks.

 I don't have a problem with this.  But it's lower on my priority list.
 If you care to submit a patch, that would be great.

here it is. only alters dnsquery.php

http://midwales.com/hutch/downloads/vegadns/dnsquery.patch

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] whois addon for vegadns

2005-02-22 Thread Bob Hutchinson
On Wednesday 23 Feb 2005 00:17, Bill Shupp wrote:
 Bob Hutchinson wrote:
 On Tuesday 22 Feb 2005 22:40, Bill Shupp wrote:
 Bob Hutchinson wrote:
 I would like to suggest a minor improvement to DNS query.
 If the input is an ip, run dnsname instead of dnsq. Handy for reverse
  dns checks.
 
 I don't have a problem with this.  But it's lower on my priority list.
 If you care to submit a patch, that would be great.
 
 here it is. only alters dnsquery.php
 
 http://midwales.com/hutch/downloads/vegadns/dnsquery.patch

 Got it, thanks!

 I did swap your preg_match() with the validate_ip() function in
 functions.php, as it's just simpler to use that.

Ah yes, I had forgotten that it was there


 Regards,

 Bill

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Error: you do not appear to be logged in.

2005-02-21 Thread Bob Hutchinson
On Monday 21 Feb 2005 18:04, Allen Parker wrote:
 yah, they are. I can't seem to figure out exactly what the problem is,
 i've turned off all caching, double checked my php.ini (seems to be
 pretty sane) i'm not getting any strange errors that would be caused
 by vegadns...


More longshots
clear the active_sessions table in the mysql db. I use phpmyadmin.
attempt log in and watch that table
switch on mysql logging if you can
compare the old and new config.php. (already have I guess)
can you log into mysql from the command line using the db settings in config?

Can't think of anything else offhand

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Error: you do not appear to be logged in.

2005-02-21 Thread Bob Hutchinson
On Monday 21 Feb 2005 21:21, Allen Parker wrote:
 4.1.8 (have been even when it worked with 0.9.7)
 also, haven't changed any mysql settings, and it's funny that the only
 problem is that it's telling me that i'm not logged in when i log
 in... after populating a new domain by hand (mysql query browser  ssh
 tunnel = joy) the update-data.sh worked flawlessly.

update-data does not have to log in.
It's falling over on function verify_session I think

Change the passwd?




 On Mon, 21 Feb 2005 16:08:41 -0500, Jason 'XenoPhage' Frisvold

 [EMAIL PROTECTED] wrote:
  Allen Parker wrote:
  already cleared the active_sessions table, can login via commandline
  as mysql... when i have a moment, i'm going to kill php and rebuild it
  from scratch again.
 
  Before you go to that extreme..  What version of MySQL are you using?
 
  --
  ---
  Jason 'XenoPhage' Frisvold
  Engine / Technology Programmer
  [EMAIL PROTECTED]
  RedHat Certified - RHCE # 803004140609871
  MySQL Pro Certified - ID# 207171862
  MySQL Core Certified - ID# 205982910
  ---
  Something mysterious is formed, born in the silent void. Waiting alone
  and unmoving, it is at once still and yet in constant motion. It is the
  source of all programs. I do not know its name, so I will call it the Tao
  of Programming.

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] question about and ns records.. and wildcards

2005-02-01 Thread Bob Hutchinson
On Tuesday 01 Feb 2005 18:58, Brian wrote:
 Ok.. (like you didn't know this was coming.. )

 Where would I find out how to do it?

 hostname *.blah.domain.name
 type A
 address 192.168.1.200

 gives this error:
   *.blah.domain.name. is not a valid A record name

You will need to edit functions.php
line 135 in the function check_domain_name_format
 $result = ereg(^[\.a-z0-9-]+$, strtolower($name));
 $result = ereg(^[\*\.a-z0-9-]+$, strtolower($name));

in other words add a \* to the regex. the backslash escapes the * so that it 
is evaluated literally

Then in records get rid of all subdomains if any, then add one with * and it 
goes in to the database, at least it just did here...

Wether it will appear correctly in the tinydns data file I shall leave to you 
to report back ;-)


 when I use \*.blah.domain.name I get this error:

 \\*.blah.domain.name. is not a valid A record name

 the tinydns-data page looks like it's an A record.

 where would I be able to find that information on how to add a wildcard
 entry?  I didn't see anything in the archives.

 Thanks in advance

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] FC3 Problem

2005-01-26 Thread Bob Hutchinson
On Wednesday 26 Jan 2005 18:29, Leo Gorauskas wrote:
 I recently installed VegaDNS on a Fedora Core 3 machine and I am having
 some php errors:



 Notice: Undefined index: ttl in /var/www/html/vegadns/src/functions.php on
 line 296

edit php.ini

error_reporting  =  E_ALL  ~E_NOTICE
display_errors = Off
log_errors = On
error_log = /var/log/php.log

then create the log
touch  /var/log/php.log

restart apache

and make sure it is getting written to


 Warning: Cannot modify header information - headers already sent by (output
 started at /var/www/html/vegadns/src/functions.php:296) in
 /var/www/html/vegadns/src/records.php on line 444



 I followed the installation instructions and set all the php flags
 correctly. Has anyone experienced similar problem?



 Although I get the error messages, the record that I am trying to edit does
 get modified.



 Thanks,



 Leo Gorauskas

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] VegaDNS 0.9.8

2004-12-09 Thread Bob Hutchinson
On Thursday 09 December 2004 19:30, Georg Gell wrote:
 great.
 There is one thing I would like to have added. I use my own template,
 because then vegaedns fits perfectly in my CI. But with each update I
 have to do a diff to find out which templates where changed. Could you
 add this information to the changelog?
 Thanks for your work, I am very glad to have vegadns.


diff -u vegadns-0.9.7/templates/ vegadns-0.9.8/templates/

will reveal all

 Regards,
 Georg Gell

 Bill Shupp schrieb:
  All,
 
  I have posted VegaDNS 0.9.8 to http://vegadns.org.  This will likely be
  the last release before 1.0, unless anyone finds any problems.  Please
  help test if you have time.
 
  The next thing after 1.0 to do will be adding SRV support.  I have a
  version of 0.9.8 with the SRV patch added, but have not tested it yet.
  If anyone has an interest in this, please let me know and I'll get you a
  copy.  I plan to start on the SRV testing next week.
 
  Regards,
 
  Bill Shupp

-- 
-
Bob Hutchinson
Midwales dot com
-


Re: [users] Fresh vegadns and djbdns, config problem (www.nich.ch)

2004-10-13 Thread Bob Hutchinson
On Wednesday 13 October 2004 15:38, NORA CENTRAL wrote:
 Hallo
 I am new with djbdns and vegadns. I installed it  on two subnet:

 The registrar (www.nic.ch)  say: nameserver-check-error.

 Thanks for helping.
 nora

 212.254.240.69==  ns1.designa.ch
 #designa.ch
 +designa.ch:212.254.241.30:3600
 +mail.designa.ch:212.254.240.78:3600
 +ns1.designa.ch:212.254.240.69:3600
 +www.designa.ch:212.254.241.30:3600
 @designa.ch::mail.designa.ch:0:3600
 designa.ch::ns.preismarkt.ch:3600
 designa.ch::ns1.designa.ch:3600
 Zdesigna.ch:ns1.designa.ch:hostmaster.designa.ch::16384:2048:1048576:2560:8
6400


 212.254.241.30==  ns.preismarkt.ch
 #preismarkt.ch
 +mail.preismarkt.ch:212.254.241.30:3600
 +ns.preismarkt.ch:212.254.241.30:3600
 +preismarkt.ch:212.254.241.30:3600
 +www.preismarkt.ch:212.254.241.30:3600
 @preismarkt.ch::mail.preismarkt.ch:0:3600
 preismarkt.ch::ns.preismarkt.ch:3600
 Zpreismarkt.ch:ns.preismnarkt.ch:hostmaster.preismarkt.ch::16384:2048:10485
76:2560:86400

I'm not clear what the problem is. Here is the output of dnsqr:

# dnsqr any designa.ch
255 designa.ch:
197 bytes, 1+5+2+1 records, response, noerror
query: 255 designa.ch
answer: designa.ch 7195 A 212.254.240.100
answer: designa.ch 7195 MX 10 mail.designa.ch
answer: designa.ch 7195 SOA ns1.paycode.ch sk.kosak.ch 4 7200 3600 172800 7200
answer: designa.ch 7195 NS ns.kosak.ch
answer: designa.ch 7195 NS ns1.paycode.ch
authority: designa.ch 7195 NS ns1.paycode.ch
authority: designa.ch 7195 NS ns.kosak.ch
additional: mail.designa.ch 7195 A 212.254.240.78

# dnsname 212.254.240.100
adsl-240-100-fixip.tiscali.ch

# dnsqr any preismarkt.ch
255 preismarkt.ch:
211 bytes, 1+5+2+2 records, response, noerror
query: 255 preismarkt.ch
answer: preismarkt.ch 7192 A 212.254.241.30
answer: preismarkt.ch 7192 MX 10 mail.preismarkt.ch
answer: preismarkt.ch 7192 SOA ns1.paycode.ch sk.paycode.ch 8 7200 3600 172800 
7200
answer: preismarkt.ch 7192 NS ns2.preismarkt.ch
answer: preismarkt.ch 7192 NS ns1.paycode.ch
authority: preismarkt.ch 7192 NS ns1.paycode.ch
authority: preismarkt.ch 7192 NS ns2.preismarkt.ch
additional: mail.preismarkt.ch 7192 A 212.254.240.78
additional: ns2.preismarkt.ch 7192 A 212.254.241.30

# dnsname 212.254.241.30
adsl-241-30-fixip.tiscali.ch
# dnsname 212.254.240.78
adsl-240-78-fixip.tiscali.ch
# dnsip ns1.paycode.ch
212.254.240.70
# dnsname 212.254.240.70
adsl-240-70-fixip.tiscali.ch
# dnsip ns.kosak.ch
213.133.108.118
# dnsname 213.133.108.118
toanti.com
# dnsip ns2.preismarkt.ch
212.254.241.30

All the reverse dns works


Your soa record does not match up with what is in the data.cdb
eg

# dnsqr soa preismarkt.ch
6 preismarkt.ch:
146 bytes, 1+1+2+2 records, response, noerror
query: 6 preismarkt.ch
answer: preismarkt.ch 6142 SOA ns1.paycode.ch sk.paycode.ch 8 7200 3600 172800 
7200
snip
Where is hostmaster.preismarkt.ch

Perhaps the 'Z' records are not right:

Zdesigna.ch:ns1.designa.ch:hostmaster.designa.ch::16384:2048:1048576:2560:86400

There is no nameserver ns1.designa.ch

Zdesigna.ch:ns1.paycode.ch:hostmaster.designa.ch::16384:2048:1048576:2560:86400

might work better

The germans frown on using the same machine (or same subnet) for two 
nameservers (quite right too). Perhaps the .ch authority is just as strict, 
quite likely I'd have thought...

That might be what they mean by

The registrar (www.nic.ch)  say: nameserver-check-error.



snip

-- 
-
Bob Hutchinson
Midwales dot com
-


[users] sort patch for vegadns

2004-10-09 Thread Bob Hutchinson
I have written some code to enable sorting by column in domains.php, 
records.php and users.php

It patches the above three files and their respective templates, 
list_domains.tpl, list_records.tpl and show_users.tpl

It consists of a patch file, a README, install.sh and a couple of small images

It should patch cleanly on vegadns-0.9b1

unpack the tarball in the application root, run ./install.sh and you're done.

It can be found at
http://midwales.com/downloads/vegadns/vegadns-0.9b1-sortpatch-0.1.tar.gz

Comments/flames/LOL invited

bye
-- 
-
Bob Hutchinson
Midwales dot com
-